|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - PlaySound
Hi group, I recently shifted to the Digital Mars C++ compiler and I do think I like it. But when compiling a Windows app I couldn't use the PlaySound function anymore. It seems to be missing in GDI32.LIB. -X Sep 16 2003
"Agent Mulder" <mbmulder_remove_this_ home.nl> wrote in news:bk6ktl$qe8$1 digitaldaemon.com:Hi group, I recently shifted to the Digital Mars C++ compiler and I do think I like it. But when compiling a Windows app I couldn't use the PlaySound function anymore. It seems to be missing in GDI32.LIB. -X Sep 16 2003
call this winmm32.def
LIBRARY winmm
EXETYPE NT
SUBSYSTEM WINDOWS
EXPORTS
_WSACleanup 0 = WSACleanup
_PlaySoundA 12 = PlaySoundA
_joyReleaseCapture 4 = joyReleaseCapture
_joySetCapture 16 = joySetCapture
_joyGetDevCapsA 12 = joyGetDevCapsA
_joyGetPos 8 = joyGetPos
_joyGetNumDevs 0 = joyGetNumDevs
run implib /s winmm32.lib winmm32.def
then add winmm32.lib to the command line.
try it in wxwindows, where it is already added.
chris
Agent Mulder wrote:
Sep 16 2003
run implib /s winmm32.lib winmm32.def then add winmm32.lib to the command line. chris Sep 16 2003
"Agent Mulder" <mbmulder_remove_this_ home.nl> wrote in news:bk7ib3$lgt$1 digitaldaemon.com:My Borland implib has no /s option. Which one do you mean? Sep 17 2003
<Włodzimierz Skiba>There is implib in Digital Mars. http://www.digitalmars.com/ctg/implib.html Sep 27 2003
Its not in GDI32.LIB.. the function is in: user32.lib and the protoype is in windows.h ;) Dec 12 2006
|