Problems with class in unmanaged Dll
I have read some questions about it, but none of them could help me... I'm starting with C# and I need some help...
I have an unmanaged dll that exports two functions like this:
function PtCreatePtr: TBaseClass; stdcall;
begin
Result := TBasedonClass.Create;
end;
procedure PtDestroyPtr(Ptr: TBaseClass); stdcall;
begin
TBasedonClass(Ptr).Free;
end;
exports
PtCreatePtr, PtDestroyPtr;
Well, it's a dll made in Delphi...
TBasedonClass is a class of TBaseClass.
TBaseClass have virtual methods, TBasedonClass is the implementation of TBaseClass...
Now the question, how can I use, my dll in a C# project?
I tried many ways, but I didn't work... I tried to use DllImport but I don't know how to use it, because I can see only the methods not the class...
Thanks everyone...
Eddy

