alexserban
Programmer
I have a small DLL written in C (with Visual C++) that exports several functions and a global variable (a string).
The string is declared like this:
__declspec(dllexport) char x[20];
In a C# application I need to read this string, but I don't know how to declare it (I know how to import a function from a DLL - with the[DllImport....] attribute - but I don't know how to import a variable).
Could you give me a small example ?
Thank You.
The string is declared like this:
__declspec(dllexport) char x[20];
In a C# application I need to read this string, but I don't know how to declare it (I know how to import a function from a DLL - with the[DllImport....] attribute - but I don't know how to import a variable).
Could you give me a small example ?
Thank You.