I have this:
VB Code:
  1. SetLastError 0
  2.         .oldWndProc = SetWindowLong(hWnd, GWL_WNDPROC, AddressOf WndProc)
  3.         MsgBox GetLastError
I have no idea why it doesn't work, but the error returned is number 5?! *sigh*
Anyone got any tips?