Board index » delphi » Using VB6-created ActiveX controls in Delphi 5 Enterprise

Using VB6-created ActiveX controls in Delphi 5 Enterprise

Just like Jason White's post in the B.P.C++Builder group, we are having
access violations on method calls to a VB6 created .ocx from D5. The
property sets and gets work fine, but we're not so interested in properties.
Nobody replied to Jason's post of 8 Dec, nor are there any replies to any of
the other similar queries across the Delphi newsgroups, yet this would seem
to be a pretty significant problem (or, at the least, some stupid
configuration issue that relegates me to newbie status :) I get the feeling
that the ???_TLB.PAS could be incorrect, but that is just a gut feeling - It
doesn't really LOOK wrong.

Binh Ly?? TeamB?? ANYBODY???

TIA
Justin

 

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


In article <83lgrv$r...@forums.borland.com>,

Quote
Justin Pitts <jpi...@spam.stinks.com> wrote:
>Just like Jason White's post in the B.P.C++Builder group, we are having
>access violations on method calls to a VB6 created .ocx from D5. The
>property sets and gets work fine, but we're not so interested in properties.
>Nobody replied to Jason's post of 8 Dec, nor are there any replies to any of
>the other similar queries across the Delphi newsgroups, yet this would seem
>to be a pretty significant problem (or, at the least, some stupid
>configuration issue that relegates me to newbie status :) I get the feeling
>that the ???_TLB.PAS could be incorrect, but that is just a gut feeling - It
>doesn't really LOOK wrong.

Can you email me an OCX which causes this behavior? (rw...@inprise.com)

My guess is this is a smart-vtable issue, but I can't verify it
without the OCX.

----

The smart-vtable issue: VB5 and VB6 create interfaces which have
gaps in their vtables (theoretically not allowed by COM spec, but
what can you do?). In D5, we are able to detect and correct for
such gaps as long as _they do not occur at the start of the interface_.
This is because our mechanism of detection requires that we look
at the offset of a method from the start of the interface, which
will fail if the interface isn't starting where expected.

Interfaces with gaps at the beginning will completely hose us.
Unfortunately, aside from one OCX which was created during testing,
and whose characteristics we can no longer recreate, we don't
have any OCXs with gaps at the beginning of an interface ... so if
you can give us one, we would be immensely in your debt. :)

[On the other hand, it's possible this is something completely different ...]
--
Caminante, son tus huellas el camino, y nada mas;
caminante, no hay camino, se hace camino al andar ...
Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


Done. Thanks for the reply! Why didn't we just code the silly thing in
Delphi to begin with? Well, this is just the sort of thing we were testing
for...

Quote
<aphr...@magescave.blackforest.org> wrote in message

news:83m239$ii1$1@breaker.inprise.com...
Quote
> Can you email me an OCX which causes this behavior? ....

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


In article <83m3fv$1d...@forums.borland.com>,

Quote
Justin Pitts <jpi...@spam.stinks.com> wrote:
>Done. Thanks for the reply! Why didn't we just code the silly thing in
>Delphi to begin with? Well, this is just the sort of thing we were testing
>for...

Justin,

the OCX didn't arrive in the mail. The address I use
for posting here is fictitious (in order to prevent
getting spammed with technical support questions).

Please try again at rw...@inprise.com :)

--
Caminante, son tus huellas el camino, y nada mas;
caminante, no hay camino, se hace camino al andar ...
Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


the inprise address is the one I used, so I guess I'll blame this one on our
notes server :) I'll try again.

Quote
<aphr...@magescave.blackforest.org> wrote in message

news:83oi6r$ncs$1@breaker.inprise.com...
Quote
> In article <83m3fv$1d...@forums.borland.com>,
> Justin Pitts <jpi...@spam.stinks.com> wrote:
> >Done. Thanks for the reply! Why didn't we just code the silly thing in
> >Delphi to begin with? Well, this is just the sort of thing we were
testing
> >for...

> Justin,

> the OCX didn't arrive in the mail. The address I use
> for posting here is fictitious (in order to prevent
> getting spammed with technical support questions).

> Please try again at rw...@inprise.com :)

> --
> Caminante, son tus huellas el camino, y nada mas;
> caminante, no hay camino, se hace camino al andar ...
> Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


In article <83qin0$8...@forums.borland.com>,

Quote
Justin Pitts <jpi...@spam.stinks.com> wrote:
>the inprise address is the one I used, so I guess I'll blame this one on our
>notes server :) I'll try again.

Still no mail, FWIW.

--
Caminante, son tus huellas el camino, y nada mas;
caminante, no hay camino, se hace camino al andar ...
Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


It has been posted to borland.public.attachments.
Sorry - I don't understand why you aren't getting my mail.
Quote
<aphr...@magescave.blackforest.org> wrote in message

news:83r6p8$sqn$1@breaker.inprise.com...
Quote
> In article <83qin0$8...@forums.borland.com>,
> Justin Pitts <jpi...@spam.stinks.com> wrote:
> >the inprise address is the one I used, so I guess I'll blame this one on
our
> >notes server :) I'll try again.

> Still no mail, FWIW.

> --
> Caminante, son tus huellas el camino, y nada mas;
> caminante, no hay camino, se hace camino al andar ...
> Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


Any luck with the .ox?
Quote
Justin Pitts <jpi...@spam.stinks.com> wrote in message

news:83r614$bad15@forums.borland.com...
Quote
> It has been posted to borland.public.attachments.
> Sorry - I don't understand why you aren't getting my mail.
> <aphr...@magescave.blackforest.org> wrote in message
> news:83r6p8$sqn$1@breaker.inprise.com...
> > In article <83qin0$8...@forums.borland.com>,
> > Justin Pitts <jpi...@spam.stinks.com> wrote:
> > >the inprise address is the one I used, so I guess I'll blame this one
on
> our
> > >notes server :) I'll try again.

> > Still no mail, FWIW.

> > --
> > Caminante, son tus huellas el camino, y nada mas;
> > caminante, no hay camino, se hace camino al andar ...
> > Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


Er ... haven't tried to get it yet. Christmas, and all. :)
Quote
Justin Pitts wrote:

> Any luck with the .ox?
> Justin Pitts <jpi...@spam.stinks.com> wrote in message
> news:83r614$bad15@forums.borland.com...
> > It has been posted to borland.public.attachments.
> > Sorry - I don't understand why you aren't getting my mail.
> > <aphr...@magescave.blackforest.org> wrote in message
> > news:83r6p8$sqn$1@breaker.inprise.com...
> > > In article <83qin0$8...@forums.borland.com>,
> > > Justin Pitts <jpi...@spam.stinks.com> wrote:
> > > >the inprise address is the one I used, so I guess I'll blame this one
> on
> > our
> > > >notes server :) I'll try again.

> > > Still no mail, FWIW.

> > > --
> > > Caminante, son tus huellas el camino, y nada mas;
> > > caminante, no hay camino, se hace camino al andar ...
> > > Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


Oops.

And, of course, since you uploaded it weds, and there is a 72-hour turnover, it
was gone
by mid-weekend.

*sigh*

upload again? :)

Quote
Justin Pitts wrote:

> Any luck with the .ox?
> Justin Pitts <jpi...@spam.stinks.com> wrote in message
> news:83r614$bad15@forums.borland.com...
> > It has been posted to borland.public.attachments.
> > Sorry - I don't understand why you aren't getting my mail.
> > <aphr...@magescave.blackforest.org> wrote in message
> > news:83r6p8$sqn$1@breaker.inprise.com...
> > > In article <83qin0$8...@forums.borland.com>,
> > > Justin Pitts <jpi...@spam.stinks.com> wrote:
> > > >the inprise address is the one I used, so I guess I'll blame this one
> on
> > our
> > > >notes server :) I'll try again.

> > > Still no mail, FWIW.

> > > --
> > > Caminante, son tus huellas el camino, y nada mas;
> > > caminante, no hay camino, se hace camino al andar ...
> > > Caminante, no hay camino, sino estelas en el mar.

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


Done deal.

Quote
aphrael <aphr...@burble.org> wrote in message

news:38694486.A52FDB6@burble.org...
Quote
> Oops.

> And, of course, since you uploaded it weds, and there is a 72-hour
turnover, it
> was gone
> by mid-weekend.

> *sigh*

> upload again? :)

Re:Using VB6-created ActiveX controls in Delphi 5 Enterprise


Got it.
Quote
Justin Pitts wrote:

> Done deal.

> aphrael <aphr...@burble.org> wrote in message
> news:38694486.A52FDB6@burble.org...
> > Oops.

> > And, of course, since you uploaded it weds, and there is a 72-hour
> turnover, it
> > was gone
> > by mid-weekend.

> > *sigh*

> > upload again? :)

Other Threads