SetTimer function not found?
John Chapman
johnch_atms at hotmail.com
Sat Jun 2 03:28:34 PDT 2012
On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
> On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
>> On Sat, 02 Jun 2012 11:46:39 +0200, Godlike
>> <darkandan at windowslive.com> wrote:
>>
>>> Hi
>>>
>>> Im experiencing problems with writing a windows program in D
>>> language, it's really good language width C++ speed and C#
>>> easy of use but why there's no critically important for
>>> windows programmers function SetTimer? Is there a
>>> reimplementation or something?
>>>
>>> Regards
>
> I cant manage it to work, compiled it but conflict errors on
> import. I really need this function otherwise im cooked.
Just add these declarations to the appropriate module:
extern(Windows) {
alias void function(HWND, uint, uint, uint) TIMERPROC;
uint SetTimer(HWND hWnd, uint uIDEvent, uint uElapse, TIMERPROC
lpTimerFunc);
BOOL KillTimer(HWND hWnd, uint uIDEvent);
}
More information about the Digitalmars-d
mailing list