hey im having a problem with the PlaySound APi call;
i am used to using sndPlaySound from user32.dll (when i program in vb) but for some reason in c++ (M$ VC++6.0ent) even though i include all the necessary headers i cant get either call to work; ive tried including the complete windows.h header without the 'lean_and_mean' comment but although it recognises the calls it still finds problems with the externals,
maybee its just my code? this is what im using:
am i calling enough headers? any help would be great or else i'l have to use the anoying mci calls.Code://example code #include "windows.h" int DoSound() { PlaySound("c:\\a.wav",NULL,SND_FILENAME); //have also tried the PlaySoundA rerefrence and the //sndPlaySound call but it still dont work!!!! return 1; }
thanx



LinkBack URL
About LinkBacks


