unable to find an entry point named 找不到函数入口点

sweig0721 2010-10-25 01:37:07
FlashConsts.h

#include "FlashConsts.h"

// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the HWFLASH_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// HWFLASH_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifdef HWFLASH_EXPORTS
#define HWFLASH_API __declspec(dllexport)
#else
#define HWFLASH_API __declspec(dllimport)
#endif

// export function to create the class
class CFlashTool;

typedef void (__cdecl* PFN_CALLBACK) (void*, CONST_PROGRESS, int, int);

// This class is exported from the HWFlash.dll
class HWFLASH_API CFlashTool {
public:
CFlashTool(void);
~CFlashTool(void);
virtual CONST_UPGRADERETURN FlashScanner(void* cookie, wchar_t* FileName);

virtual CONST_GETSET_RETURN GetFileVersion(wchar_t* pFilename, PFILEVERSION_T pVersion);

virtual CONST_GETSET_RETURN SetSetting(CONST_FLASHTOOL_SETTING SettingID, //The setting ID
void* pSetting, //New value for the variable indicated by SettingID argument.
size_t size);
virtual CONST_GETSET_RETURN GetSetting(CONST_FLASHTOOL_SETTING SettingID, //The setting ID
void* pSetting, //pointer for returned value
size_t size);


// for use by the dll
void* m_Cookie;
};



c# 调用
[DllImport("HWFLASH.dll")]
static private extern CONST_GETSET_RETURN SetSetting(CONST_FLASHTOOL_SETTING SetttingID, string pSetting, int size);


提示找不到入口点? Unable to find an entry point named 'SetSetting' in DLL 'HWFLASH.dll'.?
我该怎样调用?
...全文
659 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wuyq11 2010-10-25
  • 打赏
  • 举报
回复
找个PE查看器 看下你DLL导出的函数
类型
sweig0721 2010-10-25
  • 打赏
  • 举报
回复
virtual CONST_UPGRADERETURN FlashScanner(void* cookie, wchar_t* FileName);
调用该怎样写呀?

c# 中
string filename, 提示找不到文件?

111,097

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧