专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > DotNet Exception

无法加载 DLL YK_SmsService.dll: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。

发布时间:2011-06-26 20:18:48 文章来源:www.iduyao.cn 采编人员:星星草

delphi的dll接口文档是这么写的:
function YK_SendMessage(const UserId, Password, Msg, Destnumbers: PChar): integer; stdcall; external 'YK_SmsService.dll ';


我的代码是这么写的:
[DllImport( "YK_SmsService.dll ", SetLastError = true, EntryPoint = "YK_SendMessage ",CharSet = CharSet.Unicode)]
public static extern void YK_SendMessagewer(string a,string b,string c,string d);


在调用时出现下面的错误:
{ "无法加载 DLL'YK_SmsService.dll': 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。 "}

请问各位哥哥,我怎么怎么解决这个问题?YK_SmsService.dll就在我的根目录下.

------解决方法--------------------------------------------------------
将YK_SmsService.dll放在bin中,或者debug,或者system32

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: