110,534
社区成员
发帖
与我相关
我的任务
分享
你只能给 DLL 改名了,
[DllImport("Dll64"),EntryPoint="SayHello"]
public static void extern SayHello64();
[DllImport("Dll32"),EntryPoint="SayHello"]
public static void extern SayHello32();
这种 哈哈,[
[DllImport("Dll32"),EntryPoint="SayHello"]
public static void extern SayHello32();
[DllImport("Dll64"),EntryPoint="SayHello"]
public static void extern SayHello64();
然后你在调用之前判断:
if(32位)
SayHello32();
else SayHello64();