Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does any one can give example of how to write dll in vfp
Message
 
To
11/02/2000 02:13:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00330547
Message ID:
00330593
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform