Here is my current situation.
I have a DLL, (written in C), that has internal classes. When writing an application that uses the DLL, you create an object and then functions in the DLL operate on the object. 2 of the classes are a connection class and a file class.
Now I would like to create a C# wrapper for the DLL to broaden the availability of it. I know that I need to use dllimport to access the functions in the dll. But how to I create those objects that are in the dll?
The C# application will not know about the connection or file class when compiling and will fail because the new declaration is of an unknown type?
I have a DLL, (written in C), that has internal classes. When writing an application that uses the DLL, you create an object and then functions in the DLL operate on the object. 2 of the classes are a connection class and a file class.
Now I would like to create a C# wrapper for the DLL to broaden the availability of it. I know that I need to use dllimport to access the functions in the dll. But how to I create those objects that are in the dll?
The C# application will not know about the connection or file class when compiling and will fail because the new declaration is of an unknown type?
Comment