[*.c]
int value;
void point() {…};
[*.h]
extern “C” __declspec(dllimport) int value;
extern ”C” __declspec(dllimport) void point();
将这build 成dll后,在C#上引用,如下:
[DllImport (DLL_PATH, EntryPoint = “point”)]
private static extern void point();
只会引用function(void point()),
请问单纯全域变量(value) 要如何引用呢?