Alvin
Fri Jul 18 19:38:55 CDT 2008
You can't change the code otherwise you would have recompile the dll. If you
add a reference to VB6.dll for instance. In your c# project, add a using
statement > using vb6.dll; In the body of your code do something like
VB6.SomeClass sc = new VB6.SomeClass();
sc.useSomeMethod();
That should work for you.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------
"Oriane" <oriane@noemail.noemail> wrote in message
news:37B0F1A6-9A5D-457E-BFBC-B99425081C2D@microsoft.com...
> Finally (and I apologize for these many answers !!!!) I think that the
> problem is not on my side. A colleague of mine has made the COM component
> in VB 6. How can he change its code to make the classes inside its
> component "public" so that "tlbimp.exe" can expose a public non-internal
> constructor ?
>
> Best regards and many thanks
>