Home > database >  VFP statement outside of the function in the DLL file, compile time positioning function
VFP statement outside of the function in the DLL file, compile time positioning function

Time:10-04

In the form, I use the external DLL file, use the Declare statement in the DLL function, there is no problem, use at compile time, however, is to locate the file, can be ignored in the past, there is no problem, and there are no problems with use, just I don't understand, why I Declare functions, but also to locate it? And in the compile errors, there is a corresponding message

Compiled after the error information is as follows:
Form: D: \ \ 2017 resource \ form \ omrtype SCX contains the following error:
The unknown OMRINIT - undefined
I declare the DLL function:
Lcdriver=". \ DLL \ OmrComm DLL "
DECLARE an INTEGER OmrInit IN & amp; LcDriver INTEGER tn
Lnret=OmrInit (I)
I have replaced the statement with
DECLARE an INTEGER OmrInit IN & amp; LcDriver as OmrInit INTEGER tn
Is the same: no, I'm not sure, please advice. Thanks!

CodePudding user response:

DECLARE an INTEGER OmrInit IN & amp; LcDriver INTEGER tn
Instead of
* DECLARE an INTEGER OmrInit (lcdriver) INTEGER IN tn
Or
DECLARE an INTEGER OmrInit IN "\ DLL \ OmrComm DLL" INTEGER tn

CodePudding user response:

Add code:
IF. F.
PUBLIC OmrInit (1)
ENDIF
Or:
.
RETU
PROC OmrInit
RETU

CodePudding user response:

Ten beans three moderators conclusion is correct. But I want to know, these three call way, why are available, but the VFP is differentiated between reason, please feel free to comment!!!!!
  •  Tags:  
  • VFP
  • Related