Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
September 16, 2003 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 |
September 16, 2003 Re: PlaySound | ||||
---|---|---|---|---|
| ||||
Posted in reply to Agent Mulder | "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 Uhhhh... that seems to be an X-File case! :) PS: Sorry couldn't help it! ;))) |
September 16, 2003 Re: PlaySound | ||||
---|---|---|---|---|
| ||||
Posted in reply to Agent Mulder | 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:
> 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
>
>
|
September 16, 2003 Re: PlaySound | ||||
---|---|---|---|---|
| ||||
Posted in reply to chris elliott | > run implib /s winmm32.lib winmm32.def
> then add winmm32.lib to the command line.
> chris
My Borland implib has no /s option. Which one do
you mean?
Borland Implib Option Description
-a Add '_' alias for cdecl functions for compatibility with Microsoft libraries
-c Warnings on case sensitive symbols
-f Force imports by name
-w No warnings.
-X
|
September 17, 2003 Re: PlaySound | ||||
---|---|---|---|---|
| ||||
Posted in reply to Agent Mulder | "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? There is implib in Digital Mars. http://www.digitalmars.com/ctg/implib.html ABX |
September 27, 2003 Re: PlaySound | ||||
---|---|---|---|---|
| ||||
Posted in reply to W³odzimierz Skiba | <W³odzimierz Skiba>
> There is implib in Digital Mars. http://www.digitalmars.com/ctg/implib.html
</>
Thank you for the link. The /s option of Digital Mars implib is
equivalent to the -a option of Borland implib. Is there a way to
DIRECTLY link with the appropriate Windows-DLL's? I need
functions like LineTo, MoveTo, TextOut, PlaySound(!) etc.
Which libraries do I need?
Regards,
-X
|
December 13, 2006 Re: PlaySound | ||||
---|---|---|---|---|
| ||||
Posted in reply to Agent Mulder | Its not in GDI32.LIB.. the function is in: user32.lib and the protoype is in windows.h ;) |
Copyright © 1999-2021 by the D Language Foundation