Autor Beitrag
El Presidente
Hält's aus hier
Beiträge: 9



BeitragVerfasst: Fr 09.11.07 21:33 
Hallo!:D


Yes as the question/post says i am in need of beta testers for my project AMD&INTEL CT(Core Temp reading).
What you need any K8 cpu for AMD.For those who have intel a core 2 duo ,core 2 solo or even quad is good.
So if you have it post here! :beer:
Einloggen, um Attachments anzusehen!
Sinspin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1336
Erhaltene Danke: 119

Win 10
RIO, CE, Lazarus
BeitragVerfasst: Fr 09.11.07 23:31 
Oh! Da schreibt ja endlich mal einer Hochdeutsch.

Results:

Win XP Prof, SP2;
Intel P4 (core duo).

Program output:
No Digital Thermal Sensor Detected!
0

_________________
Wir zerstören die Natur und Wälder der Erde. Wir töten wilde Tiere für Trophäen. Wir produzieren Lebewesen als Massenware um sie nach wenigen Monaten zu töten. Warum sollte unser aller Mutter, die Natur, nicht die gleichen Rechte haben?
El Presidente Threadstarter
Hält's aus hier
Beiträge: 9



BeitragVerfasst: Fr 09.11.07 23:42 
Yes i noticed this.This is how i do it..But i think its not correct?


ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs,OMCDRV, cxCpu40Nv, MSI_Common, MSI_CPU, ExtCtrls, StdCtrls, XPMan,CmnTnC,DrvInterface,
  ComCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Timer1: TTimer;
    cxCpu401: TcxCpu40;
    XPManifest1: TXPManifest;
    RichEdit1: TRichEdit;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    procedure amd64x2;
    procedure Timer1Timer(Sender: TObject);
    procedure FormCreate(Sender: TObject);
   procedure RDMSR;
    procedure intelC2D;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
    isLoadDr: boolean;
   C0:string;
   HiPart, LowPart:tmsr;
implementation

{$R *.dfm}

//Remember 2 registers $19C and $EE.
//19C is for DTS checking.
//EE is for Tjunction EE.





procedure tFORM1.amd64x2;
 begin

if  cxCpu401.Available.Available IN [1..2]then  begin
 Timer1.Enabled:=TRUE;

end;
end;


procedure TForm1.Timer1Timer(Sender: TObject);



begin


 

  
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
isLoadDr := GetInstance.LoadDriver;
  if not isLoadDr then MessageBox(form1.Handle,'Couldn''t Start I/O Driver! Some features will be disabled!''Couldn''t Start I/O Driver!', MB_ICONINFORMATION) ;

end;
procedure tform1.RDMSR;
var
 GetInstance:tomcdrv;
begin
GetInstance.Create();
   getInstance.IMSRIORef.ReadMSR($19C,HiPart);
    
  //
    //getInstance.IMSRIORef.ReadMSR($EE,HiPart);


end;
procedure tform1.intelC2D;
begin

  if    msr.HiPart=0 then
   RichEdit1.Lines.add('No Digital Thermal Sensor Detected!');


end;


procedure TForm1.Button1Click(Sender: TObject);
begin

 intelC2D;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
 rdmsr;

end;

procedure TForm1.Button3Click(Sender: TObject);
begin
RichEdit1.Lines.add(inttostr(msr.HiPart));
end;

end.


Moderiert von user profile iconChristian S.: Quote- durch Delphi-Tags ersetzt
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 10.11.07 13:17 
Win2K SP4 R1 Pro
Latest Patches Applied

AMD Athlon64 X2 3800+

No thermal Sensors detected
0

Furthermore:
Your program crashed at exit:
AV at 00419556 in read of 0000001A.
Multiple messages telling the same
Further AVs:
AV at 004037A2 in read of 00C5289C.
AV at 004037A2 in read of 00C52808.
AV at 00469164 in read of 00C5178C.
...
(had to kill the process)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.