Old 1st February 2005, 15:50   #1
3377
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.
3377 is offline   Reply With Quote
Old 1st February 2005, 18:11   #2
lunarboy1
Forum King
 
lunarboy1's Avatar
 
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.
lunarboy1 is offline   Reply With Quote
Old 2nd February 2005, 05:29   #3
3377
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.
3377 is offline   Reply With Quote
Old 2nd February 2005, 14:30   #4
saivert
Banned
 
saivert's Avatar
 
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).
saivert is offline   Reply With Quote
Old 3rd February 2005, 00:32   #5
3377
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.
Attached Images
File Type: jpg consoleapp.jpg (9.5 KB, 194 views)

Last edited by 3377; 3rd February 2005 at 02:56.
3377 is offline   Reply With Quote
Old 3rd February 2005, 09:26   #6
saivert
Banned
 
saivert's Avatar
 
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.
saivert is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump