|
-
Jul 6th, 2000, 08:54 PM
#1
Thread Starter
Frenzied Member
Im just learning C/C++ (got the compiler 2 days ago) but to loop stuff forever. Its value (i think value, or loop amount) should be -1
-
Jul 8th, 2000, 04:51 PM
#2
Junior Member
sorry, but you don't get it, i'm not looping like you think. in your case i'd be done with
while(TRUE)
{
// do stuff
}
but what i'm talking about is using a function declared in mmsystem.dll (winmm.lib) to play a specified midi file. this means that i have no control on the midi except for stopping, pausing and resuming (with other mmsystem functions). to know when it's done i included the "notify" option in the command string i sent with mciSendString(). using that option the function should send a windowmessage to the hWnd i specified. the message is processed by my window procedure ( LONG FAR PASCAL WndProc(HWND hWnd,unsigned message,unsigned wParam,LONG lParam) ), the message is MCI_NOTIFY (i think), but that occurs only once and has a wParam (more message info or as in this case a code further describing the message) of 0 and not MCI_NOTIFY_SUCCESSFUL as it should be. the lParam (for extended info) had some strange value that isn't MCI_NOTIFY_ABORTED, MCI_NOTIFY_FAILURE, MCI_NOTIFY_SUCCESSFUL or MCI_NOTIFY_SUPERSEDED.
that's my problem but then a in a bit more words...
maybe you can help me now,
Doomstar
http://surf.to/Doomstar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|