I am not sure why it cannot get the value? I am using vb6 app to call a COM References of my .net library. I can confirm that i had called a c# dll from vb6 before.
Any tips for me please? Is this vb6 weaknesses?
I'm not a vb or an interop expert, so could be way off the mark here.... From what you describe it could be how you are declaring your c# WenChingCls.Checker.CallValue method.
Do you declare the third parameter to this as ref byte. If not then the COM interop layer would discard the output params before the vb client sees them...
Oh yeah. Thanks. Fix it.
I noticed that c# out and ref have huge problems when vb6 calls them. Only will happen on arrays.
So i better re-create that function that returns an array.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.