digitalmars.D - SetTimer function not found?
- Godlike (7/7) Jun 02 2012 Hi
- Martin Nowak (6/12) Jun 02 2012 The core.sys.windows.* modules are translated by hand.
- Godlike (10/26) Jun 02 2012 'Nowak' Are you from Poland? If yes im too.
- John Chapman (8/23) Jun 02 2012 Just add these declarations to the appropriate module:
- Kevin Cox (3/12) Jun 02 2012 Better yet, put them into std.windows and submit a pull request :P
- Dmitry Olshansky (5/24) Jun 02 2012 Better check this callback definition - it might be extern(System) or
- John Chapman (3/30) Jun 02 2012 No, it's extern(Windows). And actually it's already defined in
- Dmitry Olshansky (5/26) Jun 02 2012 Right, which is exactly the same as extern(System) "expands" to on
- Dmitry Olshansky (4/29) Jun 02 2012 Ah bleh. I've failed to spot extern(Windows){ ...}, carry on.
- John Chapman (2/22) Jun 02 2012 Done.
Hi Im experiencing problems with writing a windows program in D of use but why there's no critically important for windows programmers function SetTimer? Is there a reimplementation or something? Regards
Jun 02 2012
On Sat, 02 Jun 2012 11:46:39 +0200, Godlike <darkandan windowslive.com> wrote:Hi Im experiencing problems with writing a windows program in D language, there's no critically important for windows programmers function SetTimer? Is there a reimplementation or something? RegardsThe core.sys.windows.* modules are translated by hand. They're not yet complete and would benefit from your contribution. https://github.com/D-Programming-Language/druntime/tree/master/src/core/sys/windows martin
Jun 02 2012
On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:On Sat, 02 Jun 2012 11:46:39 +0200, Godlike <darkandan windowslive.com> wrote:'Nowak' Are you from Poland? If yes im too. I dont have knowledge about making bindings or other low-level things so i cant help you, im just surprised that there's no that important function but there are others not important if compared to this. How about this? http://www.dsource.org/projects/bindings/browser/trunk/win32 I cant manage it to work, compiled it but conflict errors on import. I really need this function otherwise im cooked.Hi Im experiencing problems with writing a windows program in D easy of use but why there's no critically important for windows programmers function SetTimer? Is there a reimplementation or something? RegardsThe core.sys.windows.* modules are translated by hand. They're not yet complete and would benefit from your contribution. https://github.com/D-Programming-Language/druntime/tree/master/src/core/sys/windows martin
Jun 02 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 windowslive.com> wrote:Hi Im experiencing problems with writing a windows program in D easy of use but why there's no critically important for windows programmers function SetTimer? Is there a reimplementation or something? RegardsI 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); }
Jun 02 2012
On Jun 2, 2012 6:33 AM, "John Chapman" <johnch_atms hotmail.com> wrote:On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:lpTimerFunc);On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote: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, TIMERPROCBOOL KillTimer(HWND hWnd, uint uIDEvent); }Better yet, put them into std.windows and submit a pull request :P
Jun 02 2012
On 02.06.2012 14:35, Kevin Cox wrote:On Jun 2, 2012 6:33 AM, "John Chapman" <johnch_atms hotmail.com <mailto:johnch_atms hotmail.com>> wrote: > > 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: > > Just add these declarations to the appropriate module: > > extern(Windows) { > > alias void function(HWND, uint, uint, uint) TIMERPROC;Better check this callback definition - it might be extern(System) or extern(C).> > uint SetTimer(HWND hWnd, uint uIDEvent, uint uElapse, TIMERPROC lpTimerFunc); > > BOOL KillTimer(HWND hWnd, uint uIDEvent); > } Better yet, put them into std.windows and submit a pull request :P-- Dmitry Olshansky
Jun 02 2012
On Saturday, 2 June 2012 at 10:47:37 UTC, Dmitry Olshansky wrote:On 02.06.2012 14:35, Kevin Cox wrote:No, it's extern(Windows). And actually it's already defined in core.sys.windows.windows.On Jun 2, 2012 6:33 AM, "John Chapman" <johnch_atms hotmail.com <mailto:johnch_atms hotmail.com>> wrote:Better check this callback definition - it might be extern(System) or extern(C).On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:wrote:On Saturday, 2 June 2012 at 10:00:07 UTC, Martin NowakJust 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); }Better yet, put them into std.windows and submit a pull request :P
Jun 02 2012
On 02.06.2012 14:55, John Chapman wrote:On Saturday, 2 June 2012 at 10:47:37 UTC, Dmitry Olshansky wrote:Right, which is exactly the same as extern(System) "expands" to on windows platform. -- Dmitry OlshanskyOn 02.06.2012 14:35, Kevin Cox wrote:No, it's extern(Windows). And actually it's already defined in core.sys.windows.windows.On Jun 2, 2012 6:33 AM, "John Chapman" <johnch_atms hotmail.com <mailto:johnch_atms hotmail.com>> wrote:Better check this callback definition - it might be extern(System) or extern(C).On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:wrote:On Saturday, 2 June 2012 at 10:00:07 UTC, Martin NowakJust add these declarations to the appropriate module: extern(Windows) { alias void function(HWND, uint, uint, uint) TIMERPROC;
Jun 02 2012
On 02.06.2012 15:08, Dmitry Olshansky wrote:On 02.06.2012 14:55, John Chapman wrote:Ah bleh. I've failed to spot extern(Windows){ ...}, carry on. -- Dmitry OlshanskyOn Saturday, 2 June 2012 at 10:47:37 UTC, Dmitry Olshansky wrote:Right, which is exactly the same as extern(System) "expands" to on windows platform.On 02.06.2012 14:35, Kevin Cox wrote:No, it's extern(Windows). And actually it's already defined in core.sys.windows.windows.On Jun 2, 2012 6:33 AM, "John Chapman" <johnch_atms hotmail.com <mailto:johnch_atms hotmail.com>> wrote:Better check this callback definition - it might be extern(System) or extern(C).On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:wrote:On Saturday, 2 June 2012 at 10:00:07 UTC, Martin NowakJust add these declarations to the appropriate module: extern(Windows) { alias void function(HWND, uint, uint, uint) TIMERPROC;
Jun 02 2012
On Saturday, 2 June 2012 at 10:35:17 UTC, Kevin Cox wrote:On Jun 2, 2012 6:33 AM, "John Chapman" <johnch_atms hotmail.com> wrote:Done.On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:lpTimerFunc);On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote: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, TIMERPROCBOOL KillTimer(HWND hWnd, uint uIDEvent); }Better yet, put them into std.windows and submit a pull request :P
Jun 02 2012