Hi all
I have recently added Ctl32 (which in turn uses VFPx) to my CodeBook application for the statusbar. Though the thing works fine at design-time (DO main.prg) but as soon as I create an exe and try to execute it (on the development machine, so the environment is the same) I get the following error:
Error #: 2027
Message: Declare DLL call caused an exception.
Line #: 11
Method: _msghandler
I can't debug as it is in the exe but looking at the code in vfpx.vcx bindwindowseventsproxy._msghandler the following call to the api is generating the error:
m.lnResult = apiCallWindowProc(This._WindowProc, m.HWnd, m.Msg, m.wParam, m.lParam)
The declaration apiCallWindowProc is done both in VFPx and Ctl32 libs, I have tried to double declare the API, w/ and w/o ALIAS, in one and both classlibs, also tried to remove the declaration from Ctl32 but nothing seems to get the error to go away. The parameters seems to be passing okay, at least not nulls in both design and exe times.
Of course I can ignore the error 4 times and the application will work, though I don't know where this will trouble again.
Please advise.