Calling a VB ActiveX DLL 
Author Message
 Calling a VB ActiveX DLL

How can I ( if I can ) make calls to a Visual Basic ActiveX DLL from
C++. Do I treat it as a COM object and get a reference to it though
IUNKNOWN?

I would be grateful for any help.

         Thanks,
              Joe

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Tue, 12 Nov 2002 03:00:00 GMT  
 Calling a VB ActiveX DLL
Hi Joe,
basically, your right. But the "base"-interface you want to use is IDispatch
instead of IUnknown.
You should also look at the #import-statement that is espacially suitable
for
ActiveX-Components. It produces wrapper - classes and uses smart pointers
to "simulate" VB coding style in VC. (Althought that does not free you from
knowing what you are doing when it comes to COM - it just makes things
easier)

--
Markus Geiger

#define THE_QUESTION ((bb) || (!bb))   -- W. Shakespeare



Quote:
> How can I ( if I can ) make calls to a Visual Basic ActiveX DLL from
> C++. Do I treat it as a COM object and get a reference to it though
> IUNKNOWN?

> I would be grateful for any help.

>          Thanks,
>               Joe

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Tue, 12 Nov 2002 03:00:00 GMT  
 Calling a VB ActiveX DLL

Quote:

> #define THE_QUESTION ((bb) || (!bb))   -- W. Shakespeare

This would be safer:

#define THE_QUESTION ((bb) || !(bb))

:)
Sergei



Thu, 14 Nov 2002 03:00:00 GMT  
 Calling a VB ActiveX DLL
I don't suppose you have an example lying around do you?

       Thanks,
            Joe



Quote:
> Hi Joe,
> basically, your right. But the "base"-interface you want to use is
IDispatch
> instead of IUnknown.
> You should also look at the #import-statement that is espacially
suitable
> for
> ActiveX-Components. It produces wrapper - classes and uses smart
pointers
> to "simulate" VB coding style in VC. (Althought that does not free
you from
> knowing what you are doing when it comes to COM - it just makes things
> easier)

> --
> Markus Geiger

> #define THE_QUESTION ((bb) || (!bb))   -- W. Shakespeare



> > How can I ( if I can ) make calls to a Visual Basic ActiveX DLL from
> > C++. Do I treat it as a COM object and get a reference to it though
> > IUNKNOWN?

> > I would be grateful for any help.

> >          Thanks,
> >               Joe

> > Sent via Deja.com http://www.deja.com/
> > Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.


Sat, 16 Nov 2002 03:00:00 GMT  
 Calling a VB ActiveX DLL
Well to have the best of both worlds here...

#define THE_QUESTION ((bb) || !(bb))        // W. Shakespeare

;)

Mark



Quote:

> > #define THE_QUESTION ((bb) || (!bb))   -- W. Shakespeare

> This would be safer:

> #define THE_QUESTION ((bb) || !(bb))

> :)
> Sergei



Sun, 17 Nov 2002 03:00:00 GMT  
 Calling a VB ActiveX DLL
There's nothing here of two worlds. Just _my_ blunder.

Thank you.
Sergei

Quote:

> Well to have the best of both worlds here...

> #define THE_QUESTION ((bb) || !(bb))        // W. Shakespeare

> ;)

> Mark





> > > #define THE_QUESTION ((bb) || (!bb))   -- W. Shakespeare

> > This would be safer:

> > #define THE_QUESTION ((bb) || !(bb))

> > :)
> > Sergei



Mon, 18 Nov 2002 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Call/Use VB ActiveX Dll in Visual C

2. How can I call a VB ActiveX dll from VC++

3. How to call a VB ActiveX DLL from VC++

4. Can call a VB ActiveX DLL's method using Invoke, but not directly

5. Calling a VB ActiveX dll from MFC

6. Call/Use VB ActiveX Dll in Visual C

7. Creating c dll calling vb ActiveX dll

8. Atl NT service calling VB ActiveX dll had problem when clean-up

9. How do you call VB ActiveX DLL functions from VC

10. calling vb activex dll

11. call vb ActiveX DLL in VC++

12. Help - Calling ActiveX DLL function from VB and C++ returns different values

 

 
Powered by phpBB® Forum Software