0
我有我的項目文件和Calculator01.dll文件在同一目錄中。當我嘗試添加引用Calculator.dll文件出現消息框,並顯示在CalDllWrapper
類C#錯誤:添加引用到.dll文件
"A reference to 'E\IT131344............Calculato01.dll could not be added. Please make sure file is accessible and that it is a valid assembly or COM component."
我已經打上階級的功能;
[DllImport("Calculator01.dll")]
迄今爲止發現的解決方案對我無效。我能做些什麼來解決這個問題?請幫幫我。 在此先感謝
Calculator01.dll不是.net dll嗎? – Viru
您不需要添加引用就可以使用DllImport。 – cubrr
@Viru它是基於C的DLL。 C/C++ – Pegasus