CoreTemp DLL sample for Visual Basic 6

User feature requests
Planned features for Core Temp
Post Reply
Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

Hello.

If someone need it ...

I have created a CoreTemp DLL sample project for Visual Basic 6.0.

The sample can be downloaded HERE.

Image
Last edited by Dr.InSide on Sat Jun 05, 2010 4:28 pm, edited 1 time in total.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

Cool. Thanks for the contribution.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

wky
New User
Posts: 1
Joined: Sun Jun 06, 2010 7:54 am

Re: CoreTemp DLL sample for Visual Basic 6

Post by wky »

The file is broken, only few bytes.
Can u upload again

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

Sorry!
In my php script had an error.
Now it should work again.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

Very nice.
But there seems to be a slight problem.
Core Temp apparently doesn't reset the whole character array of the processor name to zero or null. In your code you only remove nulls from the namestring.
This is the result:
Image
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

I had already removed the zero. Apparently there were problems
with Unicode conversion. Now it should work everywhere.
The new version is now on my server.
Last edited by Dr.InSide on Thu Jul 01, 2010 9:50 pm, edited 2 times in total.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

Sorry to say, but the problem persists.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

On my computers, I can not experience the problem.
I have no idea why. See picture.

Image

That's the function:

Code: Select all

Public Function ByteArrayToString(ByteArray() As Byte) As String
  Dim B As Variant
  For Each B In ByteArray()
    If Not B = 0 Then
      ByteArrayToString = ByteArrayToString & Chr$(B)
    End If
  Next
End Function

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

You should break the loop when you reach the first null character, since in the C/C++ language null represents the end of a string.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

Ok. Thanks for the information. The loop will now leave
at the first null. I hope it works correctly now.

Code: Select all

Public Function ByteArrayToString(ByteArray() As Byte) As String
  Dim B As Variant
  For Each B In ByteArray()
    If B = 0 Then Exit For
    ByteArrayToString = ByteArrayToString & Chr$(B)
  Next
End Function
Last edited by Dr.InSide on Thu Jul 01, 2010 10:25 pm, edited 1 time in total.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

Great, problem solved :)

Image
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

Yeah! Wonderful! :mrgreen:
Thanks for testing!

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

@The Coolest:

There is a newer version of GetCoreTempInfo.dll available (without .Net)?
I use Version 1.0 from 2008. It does not work with Intel Atom CPU.

It would be great if there exists a newer version. I extend my very old
CPU-Monitor and is now using your DLL.

Note: The CPU-Monitor is at moment only in German language available.

Image

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

Could you explain the problem with the DLL and Atom CPU?
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

Dr.InSide
Registered User
Registered User
Posts: 8
Joined: Sat Jun 05, 2010 12:22 am
Location: Germany
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by Dr.InSide »

I have tested the DLL on a newer Netbook (Atom N455, Windows7), there
works it, but reports no CPUname (string is empty).

On my old ASUS EEE PC 901 (Atom N270) does works the DLL. But the
reported temperature is apparently too low. After switch power on report
it 0 °C, during operation 15-20 °C.
Last edited by Dr.InSide on Thu Jul 15, 2010 6:24 am, edited 1 time in total.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: CoreTemp DLL sample for Visual Basic 6

Post by The Coolest »

Actually that is a Core Temp issue, you should be able to see that Core Temp does show a processor name either.
It should be fixed in the next release.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

alcpuGeek
Registered User
Registered User
Posts: 5
Joined: Mon Jan 06, 2014 2:18 pm

Re: CoreTemp DLL sample for Visual Basic 6

Post by alcpuGeek »

Was the fixed version (with breaking on null) updated in the same .zip of the initial post? Or should I browse the server for the updated version? Thanks in advance

Good job btw!

flyguille
New User
Posts: 1
Joined: Sun Apr 05, 2020 11:55 pm

Re: CoreTemp DLL sample for Visual Basic 6

Post by flyguille »

this example doesn't work anymore on modern win10 64bits platform, include I tried with the last published dll, it returns FALSE calling the dll. ¿Any idea why?

Post Reply

Return to “Development”