accessing objects in a c++ DLL from a c++ activeX control placed in a VB application 
Author Message
 accessing objects in a c++ DLL from a c++ activeX control placed in a VB application

i have VB application that has a c++ activeX control and accesses a c++ DLL
both of
 which make use of the same userdefined class. can i pass the address of
this
 object from the dll to the VB application which in turn passes it to the
 activeX control? and can the control then access the members/data  and
 functions of that object (which is in the DLL's memory) ??

 any help wud be appreciated,
 thanks,
 Julian.



Tue, 30 Nov 2004 03:41:28 GMT  
 accessing objects in a c++ DLL from a c++ activeX control placed in a VB application
Who passes what to whom is not very clear in your post, but in general you
can pass anything to VB that is a COM object derived from IDispatch. C++
classes you cannot pass.

. . . . . . . . . . . . . . . . . . . . . .
Klaus H. Probst, MVP
   http://www.vbbox.com/

Please post/reply to the newsgroup(s)


Quote:
> i have VB application that has a c++ activeX control and accesses a c++
DLL
> both of
>  which make use of the same userdefined class. can i pass the address of
> this
>  object from the dll to the VB application which in turn passes it to the
>  activeX control? and can the control then access the members/data  and
>  functions of that object (which is in the DLL's memory) ??

>  any help wud be appreciated,
>  thanks,
>  Julian.



Tue, 30 Nov 2004 13:47:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Calling a C++ DLL function which takes an C++ object as parameter

2. VB-ActiveX-DLL access violation error when call from C++

3. Access (read and write) C++ classes and structures in VB through ActiveX control

4. C++ ActiveX dll in VB

5. Rewrite VB activeX dll to C++

6. VB and C++ clients declaring the same ActiveX .dll

7. VB and C++ Clients declaring the same ActiveX .dll

8. Calling VB ActiveX DLL from Visual C++ problem

9. SPEED: VB5 ActiveX DLL vs C++ ATL COM DLL

10. Creating Objects in VB from C++ DLL

11. Passing Structure Containing Strings From VB to C/C++ DLL and Printer Object

12. Accessing VB OLE server from C/C++ DLL

 

 
Powered by phpBB® Forum Software