Hi all, do you know how to add a ActiveX control to a WTL main frame? I searched quite a lot and it seems all samples are using a dialog inheriting CAxDialogImpl while I do not want to use dialogs. Is it possible to host ActiveX control directly from main frame (which inherits from CFrameWindowImpl)?
Come to think of it I seem to remember ATL or WTL has window templates designed to host ActiveX controls. I think there's an example on the net that designs and implements a 'Bullseye' ActiveX control.
The result of the above command will produce the string:
which is obviously not what you want; the format string should be "%s\0%s\0\0".
You also say that this is not updating in registry; do you get the error message or see some other problem? Are you running this code with administrator privileges and have you opened your registry key with the correct permissions for updating values?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
Thank You. I've fixed this issue.
But If i register my Activex using command "Regsvr32 /s MyActiveXCtrl.ocx", then its working. Is there any other way to register this ActiveX? Currently I'm calling this ActiveX methode in java scrpit.