Strings and Shorts from vb.net to vb6 component ??

A

al

Hi,

How should i pass Short and String datatype parameters from vb.net to
vb6 component. Should I use conversion function or it will work just
fine with no conversion.

MTIA,
Grawsha
 
A

Armin Zingler

al said:
How should i pass Short and String datatype parameters from vb.net
to vb6 component. Should I use conversion function or it will work
just fine with no conversion.

Short and String shouldn't make problems. Short is Integer in VB6 as you
probably know.

In general:
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
K

Ken Tucker [MVP]

Hi,

Strings should pass fine. A VB.NET short is the same as a VB6
integer.

Ken
 
A

al

Ken Tucker said:
Hi,

Strings should pass fine. A VB.NET short is the same as a VB6
integer.

Ken

I thought I should make conversion since short in vb6 is 8-bit integer
while it is 16-bit in vb.net and the same thing with string type.


grawsha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top