Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPx+Ctl32+CodeBook Declare DLL error in exe not VFP IDE
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
VFPx+Ctl32+CodeBook Declare DLL error in exe not VFP IDE
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
Firebird
Application:
Desktop
Miscellaneous
Thread ID:
01365915
Message ID:
01365915
Views:
139
Hi all

I get the following error when I run the application as an exe, but does not happen when I run the same application in a VFP IDE neither as an exe or DO main:
Error#: 2027
Message: Declare DLL call caused an exception
Line#: 11
Method: _msghandler
In VFPx.vcx bindwindowseventsproxy._msghandler
...
If Isnull(This._Result) Then
	m.lnResult = apiCallWindowProc(This._WindowProc, m.HWnd, m.Msg, m.wParam, m.lParam)  && THIS IS THE LINE WHERE THE ERROR HAPPENS
Else
...
It is defined twice (if it matters) in ctl32_api.prg
Function apiCallWindowProc
	Lparameters lpPrevWndFunc, nhWnd, Msg, wParam, Lparam
	Declare Integer CallWindowProc In win32api As apiCallWindowProc ;
		Integer lpPrevWndFunc, ;
		Integer nhWnd, ;
		Integer msg, ;
		Integer wParam, ;
		Integer Lparam
	Return apiCallWindowProc(m.lpPrevWndFunc, m.nhWnd, m.Msg, m.wParam, m.lParam)
Endfunc
and in VFPx.vcx bindwindowseventsproxy.init()
Declare Integer CallWindowProc In win32api As apiCallWindowProc ;
	Integer lpPrevWndFunc, ;
	Integer HWnd, ;
	Integer Msg,;
	Integer wParam,;
	Integer Lparam
I don't know how to handle this error that happens only in the exe.

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