I'm working on a SNMP plugin based on the work that has been done for the SpeedFan application.
I'm not such a good coder but I kind of need it and it seems a nice project to work on.
I have got all the examples working an I can register the SNMP extension but when the SNMP extension tries to load the data, either via the DLL or the LIB I run into the following problem:
With the static library load:
Error: Core Temp's shared memory could not be read.
Error number: 183
Error description: The operation completed successfully
With the dynamic load:
Error: Core Temp's shared memory could not be read.
Error number: 183
Error description: The system cannot find the file specified.
As I said if I compile and try the demo program it works fine without any problem.
I know the DLL itself (GetCoreTempInfo.dll) gets loaded since it is in the process explorer and I get a whole different error when it doesn't get loaded.
It fails on
Code: Select all
GetCoreTempInfo = (fnGetCoreTempInfo)GetProcAddress(hCT, "fnGetCoreTempInfo");
Code: Select all
bRet = fnGetCoreTempInfoAlt(m_pCoreTempData);
I suspect it has something to do with SNMP first loading my program as a DLL and then trying access the function from the GetCoreTempInfo dll and then the dll trying to access the coretemp data.
What I also do not get is the different error messages with the same code and a 183 error for that matter, I would have expected a no function found or something.
I have tried running coretemp as admin and placed the dll on various location but as I said I know it gets loaded since it is in memory.
Does someone have any ideas how to do this or what I'm doing wrong?
I'm compiling 64bit but also tried 32bit and also tried the Alt function.
Kind regards,
Karel