|
|
#1 |
|
Junior Member
Join Date: Feb 2005
Location: Singapore
Posts: 3
|
Activate Winamp using VC++
Can someone advice me how to use Visual C++ to call out Winamp to play an audio file? thks.
|
|
|
|
|
|
#2 |
|
Forum King
Join Date: Dec 2000
Location: Somewhere, USA
Posts: 2,233
|
Winamp supports command line stuff, use the WinExec function.
Or you could use windows messages to be cool about it. http://www.winamp.com/nsdn/winamp/sdk/ SDK knows all. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2005
Location: Singapore
Posts: 3
|
thks.. to all, I manage activate Winamp using ShellExec() command.
Now I have another problem, after compiling and building, there is always a C:\Debug\Wave.exe windows pop up with message : "Press any key to continue". Can deactivate it? thks. |
|
|
|
|
|
#4 |
|
Banned
Join Date: Jan 2001
Location: Norway
Posts: 927
|
You're probably compiling a console type application.
If you have downloaded Microsoft Visual C++ Express 2005 BETA, then all Win32 projects are console applications by default. You must specify Win32 GUI in the New project/solution screen. That's my best advise. There should also be a configuration option available if I'm not remembering wrong. I don't have access to VC++ 2005 Express BETA at the time of writing this so I can't really check. Search on Microsoft.com... (though you won't find much). |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2005
Location: Singapore
Posts: 3
|
Hi saivert, you are right. Is a console appl. However, I'm only using Visual C++ version 6.0. Pls attachment.
Last edited by 3377; 3rd February 2005 at 01:56. |
|
|
|
|
|
#6 |
|
Banned
Join Date: Jan 2001
Location: Norway
Posts: 927
|
I just thought you were...
...using VC++ 2005 Express Beta since when you are creating a new project in VC++ 6.0 there is much clearer what is console and what is GUI.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|