Link to home
Start Free TrialLog in
Avatar of Jimmy Lea
Jimmy LeaFlag for United States of America

asked on

Passing an Array from C# to VB.Net

I need help converting a C# app to a C# dll.  I don't know C#, and I'm writing an app in vb.net, I need to be able to declare a public function in the C# dll.  I have a sample solution written in C# that gets EXIF data from images.  I need to be able to call it from a VB.Net app.  I'm using VS 2005.
I have created the dll, but the function that gets the data is not available in the vb app.
Here is some of the code.

public System.Collections.ArrayList GetExifTags(ImageXTagCollection a2)
{
System.Collections.ArrayList myArrayList = new ArrayList();
//Code to get ExifData
return myArrayList;
}

When I look at the object browser in the vb app, I can see the function, and it is public.  Why can I not use it?
Thanks


ASKER CERTIFIED SOLUTION
Avatar of dungla
dungla
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jimmy Lea

ASKER

That's it.
I missed 'Dim myUtils As New myDLL.Utils()'

Thanks