Login | Register

SDK CoreTemp return 0

User feature requests
Planned features for Core Temp
  • Author

SDK CoreTemp return 0

Postby sirious » Wed Feb 10, 2016 3:51 pm


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"

#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;


   for (int i = 0; i < 256; i++)
      printf("Temp %i = %f\n", i, coreT.GetTemp(i));

   printf("CPU = %f", coreT.GetCPUName());

   return 0;
New User
Posts: 1
Joined: Wed Feb 10, 2016 3:37 pm

Re: SDK CoreTemp return 0

Postby The Coolest » Sat Feb 20, 2016 11:31 pm

Is Core Temp running when you try to run your app? You have to keep Core Temp running to access all the data, the SDK is simply a 'shortcut' to access Core Temp's shared memory data.
In case it's running, the CPUName field consists of a character array, it's not a numerical value.
I'm not sure what you are trying to do exactly, but posting your full code will help. And also take a look at the provided C samples in the SDK zip file.
Member of our O/C Folding @ Home team
"<The_Coolest> you can't unwaste wasted CPU cycles" - Start FOLDing now!
Main rig:
Core i7 2600K 3.4GHz @ 4.5GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / SSD: Crucial M4 128GB (+ HDDs) / GPU: HD5450 / Mem: 4x4GB DDR3-1600 G.Skill 4GBXL RipJaws X - 16GB total / PSU: Seasonic S12II 620W.
Secondary rig:
Core i3 540 3.06GHz @ Stock / Mobo: MSI H55M-ED55 / GPU: Integrated / Mem: 2x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 4GB total / PSU: FSP ATX350-PNR 350W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors
User avatar
The Coolest
Site Admin
Site Admin
Posts: 2961
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel

Return to Development

Who is online

Users browsing this forum: Bing [Bot] and 1 guest