Valhalla Legends Forums Archive | C/C++ Programming | [C++] Can you use VB ActiveXs and DLLs...

AuthorMessageTime
Sorc_Polgara
Question, can you use ActiveXs and DLLs that are for VB in a C++ program also? For example .ocx files.

If so, how would you do it?
May 21, 2004, 1:03 AM
Mephisto
I don't think you can use an .ocx for other languages other than VB because of the nature of how they are created. As far as I know, a .dll can be used with any language if you properly use it.
May 21, 2004, 1:12 AM
Eibro
[quote author=Mephisto link=board=30;threadid=6900;start=0#msg61070 date=1085101924]
I don't think you can use an .ocx for other languages other than VB because of the nature of how they are created. As far as I know, a .dll can be used with any language if you properly use it.
[/quote]ocx files are dll files.
May 21, 2004, 2:19 AM
Maddox
Yes, they should be able to be used in any application supporting COM.
May 21, 2004, 2:54 AM
Mephisto
[quote author=Eibro[yL] link=board=30;threadid=6900;start=0#msg61082 date=1085105984]
[quote author=Mephisto link=board=30;threadid=6900;start=0#msg61070 date=1085101924]
I don't think you can use an .ocx for other languages other than VB because of the nature of how they are created. As far as I know, a .dll can be used with any language if you properly use it.
[/quote]ocx files are dll files.
[/quote]

I never knew that. I always assumed .ocx files were specific .dll-like files designed and engineered for the Visual Basic development environment.
May 21, 2004, 3:50 AM

Search