windows封装DLL

来源:互联网 发布:广联达软件下载免费 编辑:程序博客网 时间:2024/06/05 20:59

windows封装DLL

实例:

新建WIN32 DLL工程,头文件添加以下内容。

#ifdef _USRDLL#define PLATE_FILTERS_DLL __declspec(dllexport)#else#define PLATE_FILTERS_DLL __declspec(dllimport)#endifclass PLATE_FILTERS_DLL CPlateFilters{public:    CPlateFilters();    ~CPlateFilters();public:    int Init(const char* pXMLFile);    int IsValidPlate(int iCarType, const char* lpPlate, int iSize);    int GetLastErrorCode();    void PrintConfigInfo();    void PrintTestInfo();private:    int m_iLastErrorCode;    };

2017-8-16 16:04:05,上海,友谊路1016。

原创粉丝点击