unable to find an entry point named 找不到函数入口点
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'.?
我该怎样调用?