Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiate ActiveX object programmatically
Message
From
08/01/2009 16:06:10
 
 
To
08/01/2009 15:23:09
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01372176
Message ID:
01372184
Views:
22
The trick is to find the moniker, which is sometimes non-obvious. If the control can be dropped on a form, you can find it (most of the time; at least some of the ChilKat controls differ on this, and you have to use the moniker provided in their help pages for VFP) in the OleClass property. If there is a .1 or .2, etc., on the end, you can usually ignore that, which will make your program a little more robust.

And of course, the control must be registered using regsvr32.exe, in your %winsys% directory.

Hank

>yeah...what the title says.
>
>I've tried CREATEOBJ, but VFP keeps telling me that it can't find the class definition
Previous
Reply
Map
View

Click here to load this message in the networking platform