Hello,
Will a form from VB4 that has vbx controls work in VB6?
Pls reply As soon as possible.
Thanks in advance.
Bob Butler - 30 Sep 2004 15:12 GMT
> Hello,
>
> Will a form from VB4 that has vbx controls work in VB6?
No; VB6 does not support VBX. You will need to replace them with OCX
controls or your own coding.

Signature
Reply to the group so all can participate
VB.Net... just say "No"
alpine - 30 Sep 2004 15:24 GMT
>Hello,
>
>Will a form from VB4 that has vbx controls work in VB6?
>Pls reply As soon as possible.
>
>Thanks in advance.
VBXs are 16 bit libraries and are not supported in 32 bit VB (VB6 is
32 bit). OCX libraries are the equivalent for 32 bit VB and you may
be able to find an OCX replacement for your VBX library, depending on
what library it is.
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
Ralph - 30 Sep 2004 16:20 GMT
> Hello,
>
> Will a form from VB4 that has vbx controls work in VB6?
> Pls reply As soon as possible.
>
> Thanks in advance.
I thought this was answered?
It isn't just the "16-bit"ness that is the problem. VBXs were written to a
proprietary custom control standard based on DDE, a 'protocol' if you will.
This 'protocol' was only understood by VB3 and VB4 16bit applications (maybe
VB1.1, VB2 ?), VB4 32-bit and later VBs used a new 'protocol' for custom
controls based on OLE. (later wrapped into COM.) Therefore, even though
there are 'surrogates' that can run 16-bit components on 32-bit systems -
later VB versions can't use the older VBX 'protocol', because they haven't a
clue what its talking about.
In order to make it work you have to create a 16-bit OLE server that can
read the VBX 'protocol' and provide an OLE interface (protocol) for the
32bit app. Is it possible. Sure. What in programming isn't possible? Do you
really want to go there?
Probably not.
hth
-ralph