我把a.DLL放在D盘根目录下
这样引用是对的
[DllImport(@"D:\a.DLL")]但是我现在有可能把DLL放在其他的目录下,能用参数带代替"D:\a.DLL"吗?
像这样 string path=@"D:a.DLL";
[DllImport(path)]但是这样的会报错
这样引用是对的
[DllImport(@"D:\a.DLL")]但是我现在有可能把DLL放在其他的目录下,能用参数带代替"D:\a.DLL"吗?
像这样 string path=@"D:a.DLL";
[DllImport(path)]但是这样的会报错
http://social.msdn.microsoft.com/forums/en-US/csharplanguage/thread/200e01d5-bc2b-4688-92af-570688636b7c/