Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Sorc_Polgara on May 20, 2004, 08:03 PM

Title: [C++] Can you use VB ActiveXs and DLLs...
Post by: Sorc_Polgara on May 20, 2004, 08:03 PM
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?
Title: Re:[C++] Can you use VB ActiveXs and DLLs...
Post by: Mephisto on May 20, 2004, 08:12 PM
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.
Title: Re:[C++] Can you use VB ActiveXs and DLLs...
Post by: Eibro on May 20, 2004, 09:19 PM
Quote from: Mephisto on May 20, 2004, 08:12 PM
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.
ocx files are dll files.
Title: Re:[C++] Can you use VB ActiveXs and DLLs...
Post by: Maddox on May 20, 2004, 09:54 PM
Yes, they should be able to be used in any application supporting COM.
Title: Re:[C++] Can you use VB ActiveXs and DLLs...
Post by: Mephisto on May 20, 2004, 10:50 PM
Quote from: Eibro[yL] on May 20, 2004, 09:19 PM
Quote from: Mephisto on May 20, 2004, 08:12 PM
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.
ocx files are dll files.

I never knew that.  I always assumed .ocx files were specific .dll-like files designed and engineered for the Visual Basic development environment.