Board index » delphi » Question on Call COM Server writen by delphi from VB

Question on Call COM Server writen by delphi from VB

hello,i have a question in COM program.Can you help me?
I Create a Com Sever with Delphi.It has a method like GetName(out
y:OLEVariant);
when i call it from a client write by delphi ,it work very well.but when i
call it from a client wirten in VB,it work with out return value in the
paramter y.i define y as out paramter,why it not work?
If i change the decalre to GetName(x:OLEVariant;out y:OLEVariant),it work
as expected. while the paramter x is useless.

Does this is a bug in Delphi or VB?

 

Re:Question on Call COM Server writen by delphi from VB


What version of Delphi and what version of VB and what SP version?

--
have fun
Binh Ly
www.techvanguards.com

Quote
"borland" <hydfe...@public.cs.hn.cn> wrote in message

news:01c0e2c2$ddac8e20$e4a3a8c0@trisun1...
Quote
> hello,i have a question in COM program.Can you help me?
> I Create a Com Sever with Delphi.It has a method like GetName(out
> y:OLEVariant);
> when i call it from a client write by delphi ,it work very well.but when i
> call it from a client wirten in VB,it work with out return value in the
> paramter y.i define y as out paramter,why it not work?
> If i change the decalre to GetName(x:OLEVariant;out y:OLEVariant),it work
> as expected. while the paramter x is useless.

> Does this is a bug in Delphi or VB?

Other Threads