在C#中调用C dll方法 [英] Calling C dll methods in C#
本文介绍了在C#中调用C dll方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是C#的新手.我有一个C dll.我想在我的C#应用程序中调用此C dll的方法.但是在加载dll时,应用程序崩溃了,给出了错误
Hi All,
I''m new to c#. I''ve a C dll. I want to call the methods of this C dll inside my C# app. But while loading dll the application is crashing, giving the error
"Additional information: Unable to load DLL 'win32Cdll.dll': The specified module could not be found.".
谁能告诉我这段代码是什么问题?
谢谢大家.
Can any one tell me what is the problem in this code?
Thank you all.
推荐答案
问题是它无法加载win32cdll.dll.找不到dll.名称正确吗?这是否意味着DLL名称中有两次?此dll对您的应用程序可见吗?
The problem is that it can''t load win32cdll.dll. The dll cannot be found. Is the name correct ? Is it meant to have dll in the name twice ? Is this dll visible to your application ?
试试这个....
从.NET调用非托管dll [
Hi,
try this....
Calling an unmanaged dll from .NET [^]
这可能会对您有所帮助.
找不到指定的模块 [ ^ ]
或这个
无法加载非托管dll [
This might help you.
The Specified Module could not be found[^]
or this
unable to load unmanaged dll [^]
It is likely that your DLL depends on one or more DLLs that are not present.
这篇关于在C#中调用C dll方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文