Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access running VFP COM
Message
From
25/06/2008 09:52:31
 
 
To
24/06/2008 13:17:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01326415
Message ID:
01326613
Views:
14
When you run an exe even classes defined as olepublic are not necessarily instantiated as public OLE objects. If you CreateObject("YourOlePublicClass") with the simple VFP class name the normal VFP class instanciation is in effect. Only if you instanciate it with the OLE class name (typically "YourExeFileName.YourOlePublicClass") it will be visible to OLE and eg GetObject.

Therefore, if you want to make your exe available for OLE automation, you need more than make all it's classes OLEPUBLIC and recompile.

Take a look here:
http://blogs.msdn.com/calvin_hsia/archive/2006/04/07/570958.aspx

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform