|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.dtl - [WINAPI] Window in D
My english is not good. Apologize for this.
I start programming in D and i have a problem.
When I try make a window procedure and register class window. Compiler show
error:
"Error: cannot implicitly convert expression (& WindowProcedure) of type
intWindows function(HANDLE, uint, uint, int) function(HANDLE hwnd, uint
message, uint wParam, int lParam) to intWindows function(HANDLE, uint, uint,
int)"
Window Procedure:
"WNDPROC WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_DESTROY:
PostQuitMessage (0);
break;
default:
return cast(WNDPROC) DefWindowProcA (hwnd, message, wParam,
lParam);
}
return cast(WNDPROC) 0;
}"
How must look window procedure in order to it's work?
Jan 01 2009
Daniel Wojdak wrote: Jan 01 2009
On Thu, 01 Jan 2009 19:34:42 +0300, Daniel Wojdak <danielwojdak gmail.com> wrote: Jan 02 2009
|