D
decade
Unregistered / Unconfirmed
GUEST, unregistred user!
请翻译高手帮忙翻译下列代码,谢谢:
#include "m2_dll2.h"
DWORD LoadSensorDll(MainController** pESC, HINSTANCE* hLib)
{
DWORD result;
*hLib = LoadLibrary("m2lib.dll");
MainController_CreateFunc p_create_func;
p_create_func = (MainController_CreateFunc) GetProcAddress(*hLib,
"CreateControllerObject");
result = p_create_func(pESC);
}
void FreeSensorDll(MainController** pESC, HINSTANCE* hLib)
{
MainController_DestroyFunc p_destroy_func;
p_destroy_func = (MainController_DestroyFunc) GetProcAddress(*hLib,
"DestroyControllerObject");
if (p_destroy_func)
{
p_destroy_func(*pESC);
*pESC = NULL;
}
}
#include "m2_dll2.h"
DWORD LoadSensorDll(MainController** pESC, HINSTANCE* hLib)
{
DWORD result;
*hLib = LoadLibrary("m2lib.dll");
MainController_CreateFunc p_create_func;
p_create_func = (MainController_CreateFunc) GetProcAddress(*hLib,
"CreateControllerObject");
result = p_create_func(pESC);
}
void FreeSensorDll(MainController** pESC, HINSTANCE* hLib)
{
MainController_DestroyFunc p_destroy_func;
p_destroy_func = (MainController_DestroyFunc) GetProcAddress(*hLib,
"DestroyControllerObject");
if (p_destroy_func)
{
p_destroy_func(*pESC);
*pESC = NULL;
}
}