howv to load vb activex dll in vc++
-
hi friends, please help me...
-
hi friends, please help me...
COM
components are loaded viaCoCreateInstance
[^]. If you need to use an ActiveX control and you're writing an MFC application, Visual Studio may create a wrapper for you: chooseProject->Add Class
menu item and then selectMFC Class From ActiveX Control
(at least onVS 2005
). :)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] -
hi friends, please help me...
To understand this better, let's look at a simple example: Suppose I have a VB ActiveX DLL with a class called Test, which has a method called TestItOut(). You can create the object and call the method like this: #import "test.dll" no_namespace named_guids _TestPtr pTest = 0; HRESULT hres = pTest.CreateInstance ( __uuidof(Test) ); pTest->TestItOut();
-
To understand this better, let's look at a simple example: Suppose I have a VB ActiveX DLL with a class called Test, which has a method called TestItOut(). You can create the object and call the method like this: #import "test.dll" no_namespace named_guids _TestPtr pTest = 0; HRESULT hres = pTest.CreateInstance ( __uuidof(Test) ); pTest->TestItOut();
hi thanks yar...i want some information... #import "test.dll" no_namespace named_guids // this is given compilation error please help me friend....