I tried to use this code but when I execute the app, shows me only 0 and the CPUName -323199535839638910000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
Thanks for your help.
Code: Select all
#include <iostream>
#include <stdio.h>
#include "stdafx.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "Shared Memory Libraries/GetCoreTempInfo.h"
#pragma comment(lib, "Shared Memory Libraries/x86/GetCoreTempInfo.lib")
//#pragma comment(lib, "Shared Memory Libraries/x64/GetCoreTempInfo.lib")
/*int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}*/
int main()
{
CoreTempProxy coreT;
coreT.GetData();
for (int i = 0; i < 256; i++)
{
printf("Temp %i = %f\n", i, coreT.GetTemp(i));
}
printf("CPU = %f", coreT.GetCPUName());
getchar();
return 0;
}