when i'm using this code:

invoke SendMessage,ampHWND,WM_USER,1,105
mov edx,60
idiv edx

i get this message when i'm using my dll:

"Undantag unknown software exception (0xc0000095) uppstod i programmet p? adress 0x016c1087."

some text of the error message is in swedish.

invoke SendMessage,ampHWND,WM_USER,1,105 <--- returns length of the the song i'm playing in winamp, result in seconds
now i want to get these seconds in to minutes and seconds.
Posted on 2003-11-23 05:34:19 by bj1500
The result of a division is always in eax:edx. eax being the whole numbers and edx the remainder. Before a division you need to clear edx and therefore you can't use it to divide eax with it.

Use this instead:

invoke SendMessage.....
xor edx,edx
mov ecx,60
idiv ecx
Posted on 2003-11-23 06:55:29 by JimmyClif
thank you...
Posted on 2003-11-23 08:07:39 by bj1500