Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFPx+Ctl32+CodeBook Declare DLL error in exe not VFP IDE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
VFPx+Ctl32+CodeBook Declare DLL error in exe not VFP IDE
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
Firebird
Application:
Desktop
Divers
Thread ID:
01365915
Message ID:
01365915
Vues:
138
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
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform