Thanks for helping Cool_Dev I did think about doing this in a similar manner - setting a 1 second timer running and checking to see the position of playback to see if the end of file had been reached. It did strike me as being a bit in-elligent. I was hoping for there to be a 'MCI_NOTIFY_PLAYBACK_FINISHED' type of message that I would need to capture. I don't know if you have seen my reply to my own post - I have had some success in getting a message, but I just have the value - it would be nice to know its definition. Thanks for lookingg and your advice Mike
MikeRWinter
Posts
-
MCI playback ended -
MCI playback endedRight I have had some success, but still need a bit of advice! I have overridden WindowProc, and when the wav file starts and stops, I recieve message 1224. I can then check the wParam and lParam to see the value. lParam is 525 when the wav file finishes playing. Does anyone know what is the definition of message 1224, and what are returned in wparam \ lparam? Thanks for any advice on this Regards Mike
-
MCI playback endedHi All! I am trying to playback a '.wav' file, which I have no problem with doing using the MCI. What I need to do is know when playback has finished. I have now spent a day looking in to this and not found anything anywhere - please help!!! Is using MCI the best way of doing this - I only wish to play, stop and pause sound files (mp3, wav and spx), nothing too clever, but detecting the end of the soundfile has proven to be a problem. I am using VC6 & Windows XP Any help and advice would be greatly appreciated! Regards Mike
-
CAsyncSocket server questionsHi all i have been experimenting with CAsyncSocket and have derived my own class. I am able to connect a client to a server app that I have written (VC6) and all is working well. My first question is why does the server have to accept on another socket? My second question is if the server is to be designed to accept 64 clients connecting to it, does that mean I need to define 128 sockets Thanks for having a look at this! Regards Mike
-
VB6 Project to VC6well, Im part of the way there! I have tried this: HINSTANCE hDLL = NULL; FARPROC DLLFunc; hDLL = LoadLibrary("MyDLL.dll"); if(hDLL) { DLLFunc = GetProcAddress(hDLL,"MyFunction"); FreeLibrary(hDLL); } I get a handle to the dll, but GetProcAddress fails. I have tried this with a different dll, and this appeared to work, so may be there is something unusual with MyDLL.dll - is there a way of finding out what functions are in the dll? The VB program declares a variable as well - "Dim WithEvents obj As CVeronixCtl" how would this be handled? Thanks again for your time and patience! Mike
-
VB6 Project to VC6no - just looking them up!
-
VB6 Project to VC6Thanks for taking the time to help! Previously when I have done a similar thing to this, I have had an associated header and lib file. I would normally go to Projects, settings, and add "MyLib.lib" to object\library modules. Is there another way of adding the dll to the project? Again thanks for any help Mike
-
VB6 Project to VC6Hi all I have a VB project that I wish to port to VC. The VB project makes use of a dll file, for which I do not have a .lib or .h file. is there any way I can do what I am trying to do? Sorry if this is a dumn question! Cheers Mike
-
Stopping multiple copies of application from openingHi all I have a program written in VC6 (running on XP) that I want to stop from having multiple copies open. I want it to check whether there is another instance of itself running on start up and close if there is. Using FindWindow() doesnt work as it finds itself! Thanks for any help Mike
-
How do I find out if a new file exists in a directoryExcellent - thanks very much - using the example got exactly what I wanted! Thanks very much Mike
-
How do I find out if a new file exists in a directoryHi I have an application written in VB that checks whether a new wav file has been added to a folder by using the following: MyFile = Dir("C:\MyDirectory\*.wav") If MyFile contains a string, the file is then moved to another directory to manipulate. I wish to do the same in VC (6.0) - have you any suggestions? Thanks for any help that you can give! Mike