General information
Category:
COM/DCOM and OLE Automation
Title:
Convert VB syntax to VFP
Hi,
I am trying to convert some VB code to VFP.
This is the VB Syntax:
Private Declare Function OFAC_Tracker Lib "ofac.dll" (params As PARAM_STRUCT) As Long
I am trying this:
Declare long OFAC_Tracker IN ofac.dll object@params
and included this code:
params=CREATEOBJECT("PARAM_STRUCT")
params.cName="SUZI TAYLOR"
params.Address=""
params.City=""
params.Country=""
params.nLevel=75
params.valid_country=0
DEFINE CLASS PARAM_STRUCT as Custom
cName = ""
Address =""
City =""
country =""
nLevel = 0
Valid_Country =0
ENDDEFINE
I think my Declare statement is wrong. Can anyone help me with this ?
THANKS
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only