amazing function behavior

Zarathustra adam.chrapkowski at gmail.com
Wed Oct 21 15:00:57 PDT 2009


I resolved my access violation problem by including at the begin of wndProc inside Window class, the following code:
//____________________________________________________
  private dword wndProc(ptr o_hwnd, dword o_msg, ...
  {
    asm{
      push 0x00000000;
      push [o_hwnd];
      call [user32.getWindowLong];
      mov  [EBP - 0x04], EAX;
    }

    switch(o_msg){
      ...
  }
//____________________________________________________


More information about the Digitalmars-d-learn mailing list