Accessing C# Overloaded methods from VB6

  • Thread starter Thread starter Arijit Chakraborti
  • Start date Start date
A

Arijit Chakraborti

I created a class library in C# which has overloaded
methods. I registered the assembly using regasm, and then
tried to access the overloaded methods from VB6
application. It works for one method call, and fails for
the other.

Can anybody help?
 
Arijit,
I created a class library in C# which has overloaded
methods. I registered the assembly using regasm, and then
tried to access the overloaded methods from VB6
application. It works for one method call, and fails for
the other.

Can anybody help?

Since COM doesn't support overloading, overloaded methods are exported
to COM with a numeric suffix, like

Foo
Foo_2
Foo_3

So that's the name you have to use if you do late bound calls against
managed objects. See

http://msdn.microsoft.com/library/en-us/cpguide/html/cpcontlbexpmemberconversion.asp



Mattias
 
Hi
Can u help me to find the task that u have done.
create a libarary in C# (.NET Platform) and using that dll file in VB6(older
Version of VB)

bye
Pronojit
 
Back
Top