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
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
Firebird
Application:
Desktop
Divers
Thread ID:
01365915
Message ID:
01365948
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
>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.

Check Re: Dlls and Reportpreviewer Thread #1337987 Message #1337988

and

Re: Declare DLL call caused an exception (!!!) Thread #506373 Message #506390
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform