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 <darkan...@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);
}

Reply via email to