Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a simple DLL
Message
 
À
16/10/2001 07:38:17
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00568925
Message ID:
00568935
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform