>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only