Using a VB From in a VC Container. 
Author Message
 Using a VB From in a VC Container.

Is there a way I can use a VB From in mij VC program?

I have a an ActiveX dll written in VB by somebody else. He had some trouble
writting a full ActiveX control, so we uses a class enrty where I could get
the windows handle of the form and display it in my container like
application written in VC. This works fine except for some message handlling
like Tab-Stop. Using a keyboard hook I was able to solve this problem, i
thought :-(

In the form is a component "SizerOne" form "ComponentOne" wich does not
seems to react on the tab-stop messages. But starting the code from VB on
allmost the same way as I do in VC, so with the windows handle all seems to
work fine.

I gues I need to write a container window wich support some interfaces used
by the form, but I don't know which. And how can I attach the form to that
container, by the windows handle or bij an exported interface to the form ?

I someone can help I would be very thankfull..

Regards,
Dennis



Sun, 20 Nov 2005 17:26:13 GMT  
 Using a VB From in a VC Container.
Have a look at:

http://www.microsoft.com/msj/1299/Containment/Containment.aspx

Brian


Quote:
> Is there a way I can use a VB From in mij VC program?

> I have a an ActiveX dll written in VB by somebody else. He had some
trouble
> writting a full ActiveX control, so we uses a class enrty where I could
get
> the windows handle of the form and display it in my container like
> application written in VC. This works fine except for some message
handlling
> like Tab-Stop. Using a keyboard hook I was able to solve this problem, i
> thought :-(

> In the form is a component "SizerOne" form "ComponentOne" wich does not
> seems to react on the tab-stop messages. But starting the code from VB on
> allmost the same way as I do in VC, so with the windows handle all seems
to
> work fine.

> I gues I need to write a container window wich support some interfaces
used
> by the form, but I don't know which. And how can I attach the form to that
> container, by the windows handle or bij an exported interface to the form
?

> I someone can help I would be very thankfull..

> Regards,
> Dennis



Sun, 20 Nov 2005 23:18:17 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem using Crystal report ActiveX installed with VB and used in VC.

2. VC-COM from VB/VC/Script

3. Using VB .Net and VC at the same time in .Net

4. Using the vb component in vc++

5. ? regarding passing data from VC to VB using ActiveX control

6. Using VB DLLs OCXs with VC

7. Edit VB dialogs using VC

8. Thread API in VB using VC Debugger

9. EASY Way to Pass SAFEARRAY from VC to VB using COM

10. VC -> VB .DLL using safearrays

11. Thread API in VB using VC Debugger

12. Embedding OLE container using vb.NET

 

 
Powered by phpBB® Forum Software