110,533
社区成员
发帖
与我相关
我的任务
分享
extern "C" __declspec(dllexport) int GetData()
{
return 13;
}
class Program
{
[DllImport("Test.dll")]
extern static int GetData();
static void Main(string[] args)
{
int x = GetData();
Console.WriteLine(x);
}
}
extern "C" __declspec(dllexport) int myMethod()
{
return 10;
}