Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a simple DLL
Message
 
To
16/10/2001 07:38:17
Ashish Patel
Hindustan Petroleum
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00568925
Message ID:
00568935
Views:
14
Hello Asish,
haven't coded one in a while but here goes


Define Class Myclass as Custom OLEPUBLIC
Function Init()

Set Exclusive Off
Set Path to whatever_your_path_is
Use Customer Order cust_id
EndFunc

Func GetName(cCust_Id)

Return(Seek(cCust_Id,'Customer'))

EndFunc

Func Destroy()

Use In Customer

EndFunc

EndDefine


Add the prg file to a new project and build it as a Dll

In the calling program


ox = Createobject('yourprg.Myclass')
cCust_Id = 'E12345'

If ox.GetName(cCust_Id)
some code
Else
some other code
EndIf


hope that helps

Pete Kane
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform