Com callable Wrapper Class
-
Hi all, I have created a COM wrapper component in c#.net. I generated .tlb file out of it. Also I added reference to tlb file in VB 6.0 application and can able to call functions of COM wrapper. In C#, i have declared a stringcollection to collect all the errors.But while mapping,this String collection is converted to Unknown in VB 6.0 and becoz of that i got mismatch error. so i changed the stringcollection to Arraylist in C#. This Arraylist is converted to String in VB 6.0 while mapping. and i got error while i tried to retrive the string. Plz give me suggestions on how to call a Stringcollection/arraylist in VB 6.0. Thanks in Advance,
cheers sangeet
-
Hi all, I have created a COM wrapper component in c#.net. I generated .tlb file out of it. Also I added reference to tlb file in VB 6.0 application and can able to call functions of COM wrapper. In C#, i have declared a stringcollection to collect all the errors.But while mapping,this String collection is converted to Unknown in VB 6.0 and becoz of that i got mismatch error. so i changed the stringcollection to Arraylist in C#. This Arraylist is converted to String in VB 6.0 while mapping. and i got error while i tried to retrive the string. Plz give me suggestions on how to call a Stringcollection/arraylist in VB 6.0. Thanks in Advance,
cheers sangeet
You cannot pass any System.Collection objects back to VB6. You'll have to convert this collection to an array of strings to send it back to VB6.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007