D
decade
Unregistered / Unconfirmed
GUEST, unregistred user!
请delphi高手翻译下列代码,谢谢:
struct MainController // M2 System Controller
{
public:
virtual ~MainController(){};
virtual DWORD WINAPI DBGetRecord(const char* userID, UserRecord* pUserRecord) = 0;
virtual DWORD WINAPI DBGetLogCount(DWORD* logCount) = 0;
virtual DWORD WINAPI DBGetLogData(DWORD recNo, LogRecord* pLogRecord) = 0;
virtual DWORD WINAPI DBDeleteAllLog() = 0;
//---------------------------------------------------------------
// Utility fuction
virtual DWORD WINAPI RecoverMasterRec(void) = 0;
};
typedef MainController FAR* LPESC;
typedef DWORD (WINAPI* MainController_CreateFunc)(LPESC* ppESC);
typedef DWORD (WINAPI* MainController_DestroyFunc)(LPESC pESC);
__declspec(dllexport) DWORD WINAPI CreateControllerObject(LPESC* ppESC = NULL);
__declspec(dllexport) DWORD WINAPI DestroyControllerObject(LPESC pESC = NULL);
//---------------------------------------------------------------
// Hardware Control API
__declspec(dllexport) DWORD WINAPI M2InitLibray(void* createParam);
__declspec(dllexport) DWORD WINAPI M2ExitLibrary(void* createParam);
struct MainController // M2 System Controller
{
public:
virtual ~MainController(){};
virtual DWORD WINAPI DBGetRecord(const char* userID, UserRecord* pUserRecord) = 0;
virtual DWORD WINAPI DBGetLogCount(DWORD* logCount) = 0;
virtual DWORD WINAPI DBGetLogData(DWORD recNo, LogRecord* pLogRecord) = 0;
virtual DWORD WINAPI DBDeleteAllLog() = 0;
//---------------------------------------------------------------
// Utility fuction
virtual DWORD WINAPI RecoverMasterRec(void) = 0;
};
typedef MainController FAR* LPESC;
typedef DWORD (WINAPI* MainController_CreateFunc)(LPESC* ppESC);
typedef DWORD (WINAPI* MainController_DestroyFunc)(LPESC pESC);
__declspec(dllexport) DWORD WINAPI CreateControllerObject(LPESC* ppESC = NULL);
__declspec(dllexport) DWORD WINAPI DestroyControllerObject(LPESC pESC = NULL);
//---------------------------------------------------------------
// Hardware Control API
__declspec(dllexport) DWORD WINAPI M2InitLibray(void* createParam);
__declspec(dllexport) DWORD WINAPI M2ExitLibrary(void* createParam);