>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement