How to load OCX file in VC++ Project
-
Hi all... I have a third party OCX , which i want to use in my application. Can someone help me out , how to do this. I have never done any such stuff , but i know VC++ a bit. Also tried to search on net but no useful help is there. It'll be really helpful if i can get any help from you guys.
It's not enough to be the best, when you have capability to be great....
-
Hi all... I have a third party OCX , which i want to use in my application. Can someone help me out , how to do this. I have never done any such stuff , but i know VC++ a bit. Also tried to search on net but no useful help is there. It'll be really helpful if i can get any help from you guys.
It's not enough to be the best, when you have capability to be great....
If you're using
MFC
then, on Visual Studio, select theProject->Add Class
menu item and (in the newly appeared window) chooseMFC Class From ActiveX Control
. It will allow you to browse for the.OCX
file (or select it form the ones in the registry) and finally will generate theMFC
wrapper class. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
If you're using
MFC
then, on Visual Studio, select theProject->Add Class
menu item and (in the newly appeared window) chooseMFC Class From ActiveX Control
. It will allow you to browse for the.OCX
file (or select it form the ones in the registry) and finally will generate theMFC
wrapper class. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Thanx a Zillion ...I didn't even know it was so easy .. :) I have burned almost the day in this rubbish thing ..... :( :) Thanx Again ...
It's not enough to be the best, when you have capability to be great....
-
Thanx a Zillion ...I didn't even know it was so easy .. :) I have burned almost the day in this rubbish thing ..... :( :) Thanx Again ...
It's not enough to be the best, when you have capability to be great....
You are welcome. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]