Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPx+Ctl32+CodeBook Declare DDL call caused an exception
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
VFPx+Ctl32+CodeBook Declare DDL call caused an exception
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01347522
Message ID:
01347522
Views:
82
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.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform