大家好,请教大家一个问题。
我用vs08新建了一个Smart Device项目,运行在wce平台下,项目里面引用了vc6写的一个dll文件,通过 [DllImport("LEDSender.DLL", EntryPoint = "AddLeaf")]
public static extern int DLL_AddLeaf(int DisplayNum, int DisplayTime); /// <summary>
/// 增加页面,并指定显示时间
/// </summary>
/// <param name="DisplayTime">页面显示时间,单位为毫秒(ms)</param>
/// <returns></returns>
public int AddLeaf(int DisplayNum, int DisplayTime)
{
return DLL_AddLeaf(DisplayNum, DisplayTime);
这种方式来引用,但是运行的时候提示无法找到 PInvoke DLL“LEDSender.DLL”
请问是什么原因,是不是这个dll文件的问题。
我在网上找了说dll文件要生成静态的,但是还是不行,请问有其他的办法吗。wcedllvc6
我用vs08新建了一个Smart Device项目,运行在wce平台下,项目里面引用了vc6写的一个dll文件,通过 [DllImport("LEDSender.DLL", EntryPoint = "AddLeaf")]
public static extern int DLL_AddLeaf(int DisplayNum, int DisplayTime); /// <summary>
/// 增加页面,并指定显示时间
/// </summary>
/// <param name="DisplayTime">页面显示时间,单位为毫秒(ms)</param>
/// <returns></returns>
public int AddLeaf(int DisplayNum, int DisplayTime)
{
return DLL_AddLeaf(DisplayNum, DisplayTime);
这种方式来引用,但是运行的时候提示无法找到 PInvoke DLL“LEDSender.DLL”
请问是什么原因,是不是这个dll文件的问题。
我在网上找了说dll文件要生成静态的,但是还是不行,请问有其他的办法吗。wcedllvc6
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货