typedef int(*pFunctionPointer2)(int,HANDLE); typedef int(*pFunctionPointer3)(int,int,char*,HANDLE); typedef int(*pFunctionPointer4)(FILE*,int,int,HANDLE); typedef bool(*pFunctionPointer5)(HANDLE); pFunctionPointer2 pFn2 = NULL; pFunctionPointer3 pFn3 = NULL; pFunctionPointer4 pFn4 = NULL; pFunctionPointer5 pFn5 = NULL;
pFn2 = (pFunctionPointer2)GetProcAddress(hLib,"ADDNumber");
// exported by DLL // BOOL DllCheckMsg(MSG*); // your.cpp /*virtual*/ BOOL CYourDlgApp::PreTranslateMessage(MSG* pMsg) { (*m_pfnDllCheckMsg)(pMsg); CWinApp(Ex)::PreTranslateMessage(pMsg); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)