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