標籤:
1 // The following ifdef block is the standard way of creating macros which make exporting 2 // from a DLL simpler. All files within this DLL are compiled with the FPENGINE_EXPORTS 3 // symbol defined on the command line. this symbol should not be defined on any project 4 // that uses this DLL. This way any other project whose source files include this file see 5 // FPENGINE_API functions as being imported from a DLL, wheras this DLL sees symbols 6 // defined with this macro as being exported. 7 //#pragma comment(lib, "Debug/FPEngine.lib") 8 9 #ifdef FPENGINE_EXPORTS10 #define FPENGINE_API __declspec(dllexport)11 #else12 #define FPENGINE_API __declspec(dllimport)13 #endif14 15 #ifdef __cplusplus16 extern "C"17 {18 #endif19 20 // This class is exported from the FPEngine.dll21 class FPENGINE_API CFPEngine {22 public:23 CFPEngine(void);24 // TODO: add your methods here.25 };26 27 extern FPENGINE_API int nFPEngine;28 29 FPENGINE_API int fnFPEngine(void);30 31 32 FPENGINE_API int Analyze(BYTE *lpImage, int Width, int Height, BYTE *lpFeature, int *lpSize);33 34 FPENGINE_API int AnalyzeFromFile(LPCSTR lpszFileName, BYTE *lpFeature, int *lpSize);35 36 FPENGINE_API int PatternMatch(BYTE *lpFeature1, BYTE *lpFeature2, int *lpScore);37 38 FPENGINE_API int SaveFeature(LPCSTR lpszFileName, BYTE *lpFeature);39 40 FPENGINE_API int LoadFeature(LPCSTR lpszFileName, BYTE *lpFeature, int *lpSize);41 42 FPENGINE_API int LoadFingerImage(LPCSTR lpszFileName, BYTE *lpFinger, int *lpWidth, int *lpHeight);43 44 FPENGINE_API int SaveFingerImage(LPCSTR lpszFileName, BYTE *lpFinger, int Width, int Height);45 46 FPENGINE_API int GetImageQuality(BYTE *lpFinger, int Width, int Height, int *pScore);47 48 49 #ifdef __cplusplus50 }51 #endif
C++