difficulties getting SetTimer () to work

Don Clugston dac at nospam.com.au
Tue Jul 11 08:07:08 PDT 2006


llee wrote:
> There has to be a simple explanation for this. I've tried to compile the
> following code several times, but the compiler doesn't recognize the SetTimer
> identifier. Each time I've tried the following compiler settings:
> 
>> dmd timer.d gdi32.lib user32.lib winsamp.def
> 
> The msdn site says that SetTimer is defined under user32.lib.
> the error that I get in return is as follows:
> 
>> timer.d(46): undefined identifier SetTimer
>> timer.d(46): function expected before (), not SetTimer of type int

The windows headers supplied with DMD are horribly incomplete. More 
complete ones are available in the win32 section of the bindings project 
at www.dsource.org.



More information about the Digitalmars-d mailing list