I am attempting to load an MP3 file into winamp from within VFP. I have taken the syntax from the Universal Thread example as below.
DECLARE integer ShellExecute IN Shell32.dll ;
INTEGER HWND;
STRING lpverb;
STRING lpfile;
STRING lpPrameters;
STRING lpDirectory;
LONG nshowcmd
No errors with the declaration but the following line returns an error.
=SHELLEXECUTE((hand1),"open","d:\sounds\allnight.mp3","","",0)
ERROR
"Cannot find entry point shellexecute in the DLL"
Questions
1. What causes the error?
2. Is there a more suitable API function for this purpose?
3. Does ShellExecute support "LOAD" as a verb
DECLARE integer ShellExecute IN Shell32.dll ;
INTEGER HWND;
STRING lpverb;
STRING lpfile;
STRING lpPrameters;
STRING lpDirectory;
LONG nshowcmd
No errors with the declaration but the following line returns an error.
=SHELLEXECUTE((hand1),"open","d:\sounds\allnight.mp3","","",0)
ERROR
"Cannot find entry point shellexecute in the DLL"
Questions
1. What causes the error?
2. Is there a more suitable API function for this purpose?
3. Does ShellExecute support "LOAD" as a verb