Call/Use VB ActiveX Dll in Visual C 
Author Message
 Call/Use VB ActiveX Dll in Visual C

  We have created an ActiveX Dll in VB6 (SP4). Can this be used in
Visual C+? How do we call or load the DLL in a C compiler or
specifically a Visual C+ compiler?

  If it can't be directly loaded or used how can we "wrap" it to make
it work?

  Thanks for your help in advance.

Justin

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



Fri, 28 Mar 2003 03:00:00 GMT  
 Call/Use VB ActiveX Dll in Visual C

Greets,

    Yes, you can use ActiveX DLLs written in VB in Visual C++.  The easiest
way is to get the ClassWizard to create a wrapper class for you (if you are
using MFC) or use the #import directive to take advantage of the compiler's
COM support.  It will generate the various interface definitions and class
wrappers for you.

Regards,

Joe

Quote:

>   We have created an ActiveX Dll in VB6 (SP4). Can this be used in
> Visual C+? How do we call or load the DLL in a C compiler or
> specifically a Visual C+ compiler?

>   If it can't be directly loaded or used how can we "wrap" it to make
> it work?

>   Thanks for your help in advance.

> Justin

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



Fri, 28 Mar 2003 03:00:00 GMT  
 Call/Use VB ActiveX Dll in Visual C

Thanks Joe! Can you post some source for the #import method? I am still
hazy on the solution.

Thanks!

justin hall

Quote:
>     Yes, you can use ActiveX DLLs written in VB in Visual C++.  The
easiest
> way is to get the ClassWizard to create a wrapper class for you (if
you are
> using MFC) or use the #import directive to take advantage of the
compiler's
> COM support.  It will generate the various interface definitions and
class
> wrappers for you.

> Regards,

> Joe




Quote:

> >   We have created an ActiveX Dll in VB6 (SP4). Can this be used in
> > Visual C+? How do we call or load the DLL in a C compiler or
> > specifically a Visual C+ compiler?

> >   If it can't be directly loaded or used how can we "wrap" it to
make
> > it work?

> >   Thanks for your help in advance.

> > Justin

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

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


Sat, 29 Mar 2003 03:00:00 GMT  
 Call/Use VB ActiveX Dll in Visual C
I'm having a similar problem.  I (finally) generated a wrapper class
following instructions in MSDN article Q194873.  This article also has
instructions for using the #import (I haven't tried those
instructions).  Here's the URL:

http://support.microsoft.com/support/kb/articles/Q194/8/73.ASP

I'm having trouble passing parameters using the wrapper class.

Many of the VB functions pass string parameters by reference.  This
generates a BSTR type parameter in C++.  I haven't been successful in
passing parameters to any functions.  Any suggestions/samples for
simply populating a BSTR variable and passing it as a parameter?

Thanks,
Brent


Quote:

> Thanks Joe! Can you post some source for the #import method? I am
still
> hazy on the solution.

> Thanks!

> justin hall

> >     Yes, you can use ActiveX DLLs written in VB in Visual C++.  The
> easiest
> > way is to get the ClassWizard to create a wrapper class for you (if
> you are
> > using MFC) or use the #import directive to take advantage of the
> compiler's
> > COM support.  It will generate the various interface definitions and
> class
> > wrappers for you.

> > Regards,

> > Joe



> > >   We have created an ActiveX Dll in VB6 (SP4). Can this be used in
> > > Visual C+? How do we call or load the DLL in a C compiler or
> > > specifically a Visual C+ compiler?

> > >   If it can't be directly loaded or used how can we "wrap" it to
> make
> > > it work?

> > >   Thanks for your help in advance.

> > > Justin

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

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

--
Brent

http://members.aol.com/brent1507

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



Mon, 31 Mar 2003 08:40:51 GMT  
 Call/Use VB ActiveX Dll in Visual C


Quote:
> I'm having a similar problem.  I (finally) generated a wrapper class

Thanks!

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



Thu, 03 Apr 2003 09:36:49 GMT  
 Call/Use VB ActiveX Dll in Visual C
There's a code example at
www.geocities.com/codesolutions
Quote:

>   We have created an ActiveX Dll in VB6 (SP4). Can this be used in
> Visual C+? How do we call or load the DLL in a C compiler or
> specifically a Visual C+ compiler?

>   If it can't be directly loaded or used how can we "wrap" it to make
> it work?

>   Thanks for your help in advance.

> Justin

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



Sat, 10 May 2003 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Call/Use VB ActiveX Dll in Visual C

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

3. Creating c dll calling vb ActiveX dll

4. Problem using VB 5 activex DLL in a VC++ activex control

5. Question: Catching errors from a VB ActiveX control in Visual C++ using MFC

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

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

8. calling vb activex dll

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

10. Calling a 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