Jimmy Lea
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.ArrayLi st GetExifTags(ImageXTagColle ction a2)
{
System.Collections.ArrayLi st 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
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.ArrayLi
{
System.Collections.ArrayLi
//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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I missed 'Dim myUtils As New myDLL.Utils()'
Thanks