1

As In my project I'm trying to import Dll but on adding reference, it showing me the error. I have searched in many blogs and found that my DLL is unmanaged. So could you please let me know how can I convert my unmanaged DLL to managed DLL.

4

1 に答える 1

0

.dll がマネージ アセンブリでも COM オブジェクトでもない場合は、 DllImportAttributeを使用して P/Invoke を利用する必要があります。
一般的なライブラリの定義は、ここにあります。

于 2012-10-06T07:24:22.113 に答える