Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does any one can give example of how to write dll in vfp
Message
 
À
11/02/2000 02:13:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00330547
Message ID:
00330593
Vues:
11
Do you Have VFP 6? (Maybe 5?). Then:

1- Craete a project (Example MyServer)
1- Buil a class (Example MyClass). Add a metho name GetPerson() and write:

RETURN 'FirstaName'+'LastName'

3- In properties of the class, selec OLE PUBLIC
4- Build Project, and selec BUILD DLL COM

In Command Window:

oCom=CREATEOBJECT('MyServer.MyClass')
?oCom.GetPerson() &&'FirstNameLastName'

Note: In VFP, is ONLY posibble write Automation Servers (.DLL o .Exe), not simple DLL. Look for 'Dll/Build' in MSDN help....
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform