I need the implementation for the following used functions:
Delphi-Quellcode:
//get ptrs to required plugin API functions
g_pLocalizeWnd = (LOCALIZEWND_PROC)GetProcAddress(hHost, "LocalizeWnd");
g_pLocalizeStr = (LOCALIZESTR_PROC)GetProcAddress(hHost, "LocalizeStr");
g_pGetDeviceID = (GET_DEVICE_ID_PROC)GetProcAddress(hHost, "GetDeviceID");
if (!g_pGetDeviceID)
return FALSE;
g_pGetI2CBusNum = (GET_I2C_BUS_NUM_PROC)GetProcAddress(hHost, "GetI2CBusNum");
if (!g_pGetI2CBusNum)
return FALSE;
g_pReadI2C = (READ_I2C_PROC)GetProcAddress(hHost, "ReadI2C");
if (!g_pReadI2C)
return FALSE;
g_pWriteI2C = (WRITE_I2C_PROC)GetProcAddress(hHost, "WriteI2C");
if (!g_pWriteI2C)
return FALSE;
So, basicly I need "GetDeviceID", "GetI2CBusNum", "ReadI2C" and "WriteI2C".