March 24, 2005 Re: Window procedure declaration | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath | Regan Heath wrote:
> On Wed, 23 Mar 2005 15:08:00 -0800, John Reimer <brk_6502@yahoo.com> wrote:
>
>> Regan Heath wrote:
>>
>>> Remove "CALLBACK". Add extern(C) eg.
>>> extern (C) LRESULT wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
>>> {
>>> }
>>> CALLBACK is typically a define for __stdcall which is replaced in D with extern (C), see:
>>> http://www.digitalmars.com/d/interface.html
>>> Regan
>>
>>
>> Oops. Good point, Regan. I missed the CALLBACK. Don't need that there!
>
>
> Is it extern (C) or extern (Windows) though? I'm not sure.
>
> Regan
Windows
_______________________
Carlos Santander Bernal
|
January 07, 2009 Re: Window procedure declaration | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | John Reimer wrote: <snip> > There are many win32 functions missing from std.c.windows.windows. Check www.dsource.org/projects/core32 for a more complete D win32 import. That one's old and, by the looks of it, no longer maintained. You want this one: http://www.dsource.org/projects/bindings/wiki/WindowsApi Stewart. |
January 07, 2009 Re: Window procedure declaration | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote:
> John Reimer wrote:
> <snip>
>> There are many win32 functions missing from std.c.windows.windows. Check www.dsource.org/projects/core32 for a more complete D win32 import.
>
> That one's old and, by the looks of it, no longer maintained. You want this one:
> http://www.dsource.org/projects/bindings/wiki/WindowsApi
Silly me, should've realised I was replying to an old thread. I guess it's one of the natural consequences of switching newsreaders.
Stewart.
|
Copyright © 1999-2021 by the D Language Foundation