Click here to Skip to main content
15,900,502 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Plz help call vb dll in vc++ Pin
Christian Graus3-Aug-05 19:45
protectorChristian Graus3-Aug-05 19:45 
GeneralRe: Plz help call vb dll in vc++ Pin
Tom Archer3-Aug-05 20:13
Tom Archer3-Aug-05 20:13 
GeneralRe: Plz help call vb dll in vc++ Pin
Christian Graus3-Aug-05 20:17
protectorChristian Graus3-Aug-05 20:17 
GeneralRe: Plz help call vb dll in vc++ Pin
ABDDGADSFSDFSFSF3-Aug-05 20:53
ABDDGADSFSDFSFSF3-Aug-05 20:53 
GeneralRe: Plz help call vb dll in vc++ Pin
Christian Graus4-Aug-05 17:13
protectorChristian Graus4-Aug-05 17:13 
GeneralPlaying Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 14:24
allenmpcx3-Aug-05 14:24 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 14:38
protectorChristian Graus3-Aug-05 14:38 
GeneralRe: Playing Sound with Managed C++ .NET Pin
pcxboy3-Aug-05 14:40
pcxboy3-Aug-05 14:40 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 14:47
protectorChristian Graus3-Aug-05 14:47 
GeneralRe: Playing Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 14:52
allenmpcx3-Aug-05 14:52 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 14:58
protectorChristian Graus3-Aug-05 14:58 
GeneralRe: Playing Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 15:05
allenmpcx3-Aug-05 15:05 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 15:09
protectorChristian Graus3-Aug-05 15:09 
GeneralRe: Playing Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 15:14
allenmpcx3-Aug-05 15:14 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 15:15
protectorChristian Graus3-Aug-05 15:15 
GeneralRe: Playing Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 15:22
allenmpcx3-Aug-05 15:22 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 15:23
protectorChristian Graus3-Aug-05 15:23 
GeneralRe: Playing Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 15:25
allenmpcx3-Aug-05 15:25 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 16:11
protectorChristian Graus3-Aug-05 16:11 
GeneralRe: Playing Sound with Managed C++ .NET Pin
allenmpcx3-Aug-05 16:20
allenmpcx3-Aug-05 16:20 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Christian Graus3-Aug-05 16:24
protectorChristian Graus3-Aug-05 16:24 
GeneralRe: Playing Sound with Managed C++ .NET Pin
Trollslayer3-Aug-05 22:05
mentorTrollslayer3-Aug-05 22:05 
GeneralRe: Playing Sound with Managed C++ .NET Pin
GKarRacer5-Aug-05 9:52
GKarRacer5-Aug-05 9:52 
To answer the original question (at least for C++):

If all you want to do is play wave files, then you can simply call the PlaySound function. If you need to anything more sophisticated like mixing sound files together, etc. then you'll probably need DirectX. But for basic wave files, the PlaySound function is very easy.

From regular C++ (someone else will have to help with proper imports for the managed environment):

#include "mmsystem.h"
#pragma comment( lib, "winnmm.lib" )

void SomeFunction()
{
    PlaySound( szSoundFileName, NULL, SND_FILENAME | SND_ASYNC | SND_NOWAIT );
}

Questionhow to draw a line on a CStatic control Pin
ginognaus3-Aug-05 13:58
ginognaus3-Aug-05 13:58 
AnswerRe: how to draw a line on a CStatic control Pin
Christian Graus3-Aug-05 14:01
protectorChristian Graus3-Aug-05 14:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.