Need help using/accessing structure.

Hi guys, this is my first post here. I started learning C++ this year, so I'm not very good at this. I was trying to make my software get the temperature of my graphics cards, which is a couple of AMD 6870's. I was using an API made by AMD, but had no success.

The include that have the structure which I'm trying to use:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/////////////////////////////////////////////////////////////////////////////////////////////
///\brief Structure containing information about thermal controller temperature.
///
/// This structure is used to store information about thermal controller temperature. 
/// This structure is used by the ADL_PM_Temperature_Get() function.
/// \nosubgrouping
////////////////////////////////////////////////////////////////////////////////////////////
typedef struct ADLTemperature
{
/// Must be set to the size of the structure
  int iSize;	
/// Temperature in millidegrees Celsius.
  int iTemperature;  
} ADLTemperature;


This is just a part of him.

Here goes the rest of the unusual includes that I'm using:

adl_defines.h :

http://pastebin.com/gBJZzxYg

adl_sdk.h :

http://pastebin.com/9HtEFGq0

adl_structures.h :

http://pastebin.com/GdyzNJwr


This is my code so far:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <adl_defines.h>
#include <adl_sdk.h>
#include <adl_structures.h>

void clrscr(){
	system("cls");
}

typedef int (( *ADL_PM_TEMPERATURE_GET() ) ( int* ));
using namespace System;


int main(){
	
	printf ("Temperatura: %d", ADLTemperature->iTemperature);
	getch();
}


I really don't know what to do, if someone could help me, I would appreciate.

Thank You all.
Last edited on
Topic archived. No new replies allowed.