cannot add a reference .NET

后端 未结 6 1855
独厮守ぢ
独厮守ぢ 2021-02-05 22:50

I have a DLL which I would like to add as a reference to my project, but everytime I try to do it a dialog pops up telling me:

The reference could not be

6条回答
  •  忘掉有多难
    2021-02-05 23:21

    Some DLL's cant be added as a reference, but however, they can still be used by C# with the famous [DllImport( params go here...)]

    You might also have to inspect the dll in order to get the address of the functions you want to use . This can be achieved by using GetProcAddress

提交回复
热议问题