Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview ActiveX
Message
From
23/11/1998 14:44:19
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00160596
Message ID:
00160616
Views:
13
>I have created a form using the treeview ActiveX control. I am getting an OLE object not registered when I run the compiled version of the application on a machine that does not have VFP installed on it. I expect that is due to the fact that VFP registers the control when you set it up from the menu under tools->options->controls. In addition, I am also getting the same error message when running the application on a third machine with VFP installed, and the only difference I can find is the dates on the files for the comctl.ocx being used.
>
>How do I correctly register the OLE?
>
>Thanks for any help in advance,
>Dan Madero

Hi,

You need to copy the ocx file into the windows system directory and run the following code:
cWinSysDir = 'c:\winnt\system32\' &&insert the windows system directory
cOCXControl = 'mscomm.ocx' &&insert your control name
cWhatToRun = "regsvr32 " + cWinSysDir + cOCXControl
run &cWhatToRun

Hope it works...

Erin
Previous
Reply
Map
View

Click here to load this message in the networking platform