|  |
10-10-2008, 10:53 AM
|
#1 (permalink)
|
Hardware/VB.net/Anti-vir Join Date: Mar 2008 Location: TN - Intel, Samsung, and NVIDIA 4 EvR! Posts: 515
| VB.NET reading CPU Temp I heard it is impossible to read the CPU temperature using only VB.NET..
I also heard that it is possible importing "system.management" and having a motherboard that supports the temp reading chip or something or another..
Anyone have and knowledge on this?
Here's where I have looked so far: Hardware Monitor Reading CPU Temperature (WMI) : Visual Basic Language : Visual Basic : MSDN Forums
Last edited by StealthTools; 10-10-2008 at 11:06 PM.
|
| |
10-14-2008, 09:11 PM
|
#2 (permalink)
|
Join Date: Sep 2005 Location: Toronto, Canada Posts: 5,466
| Re: VB.NET reading CPU Temp It is impossible to only use VB. You need to use C/C++ to access the temperature monitor or use the info provided by WMI (if your board supports it of course). VB isn't powerful enough of a language to do that sort of thing. By powerful I mean it can't access all of the system's hardware like a top level language such as C++.
Can I ask why you're trying this with VB of all languages? I can help you implement the C++ code if you know a C based language.
Last edited by Baez; 10-15-2008 at 12:10 AM.
|
| |
10-15-2008, 08:50 AM
|
#3 (permalink)
|
Software Developer Join Date: Mar 2006 Location: Columbus, OH Posts: 569
| Re: VB.NET reading CPU Temp Quote: |
It is impossible to only use VB.
| Actually, that's not true. WMI can be accessed via .NET, so it is possible (assuming he's using VB.NET and not VB 6). He could also use platform invoke (ie, interop) to call any native methods, as well. |
| |
10-15-2008, 12:52 PM
|
#4 (permalink)
|
Join Date: Sep 2005 Location: Toronto, Canada Posts: 5,466
| Re: VB.NET reading CPU Temp ^ Read my second sentence. |
| |
10-15-2008, 01:45 PM
|
#5 (permalink)
|
Software Developer Join Date: Mar 2006 Location: Columbus, OH Posts: 569
| Re: VB.NET reading CPU Temp If you're using VB.Net, then the functionality is part of the underlying framework. In his case, it's transparent. If you're really wanting to split hairs about this, then your second sentence applies to C++ or C, as well. There's always going to be an intermediary at some level. In this instance, we're specifically talking about writing a Windows application that can retrieve values from the system hardware. While C++ doesn't need to go through .NET (though it could), it does have to communicate with an OS subsystem using win32 or some other API. |
| |
10-15-2008, 03:25 PM
|
#6 (permalink)
|
Hardware/VB.net/Anti-vir Join Date: Mar 2008 Location: TN - Intel, Samsung, and NVIDIA 4 EvR! Posts: 515
| Re: VB.NET reading CPU Temp I want to learn how to code a program that shows the CPU temp and the only language I am familiar with is VB.NET :| If I had the source for it in C++ though i'm sure I could figure it out... |
| |
10-15-2008, 07:12 PM
|
#7 (permalink)
|
Join Date: Sep 2005 Location: Toronto, Canada Posts: 5,466
| Re: VB.NET reading CPU Temp Quote:
Originally Posted by jaeusm If you're using VB.Net, then the functionality is part of the underlying framework. In his case, it's transparent. If you're really wanting to split hairs about this, then your second sentence applies to C++ or C, as well. There's always going to be an intermediary at some level. In this instance, we're specifically talking about writing a Windows application that can retrieve values from the system hardware. While C++ doesn't need to go through .NET (though it could), it does have to communicate with an OS subsystem using win32 or some other API. | I fully agree with your explanation but I didn't think Stealth would want to start "splitting hairs"  .
Stealth the easiest way for you to use VB would be to find a C source code driver. I would recommend you do it this way as WMI is more situational. |
| |
07-17-2009, 10:44 PM
|
#8 (permalink)
|
Newb Techie Join Date: Jul 2009 Posts: 1
| Re: VB.NET reading CPU Temp I know this is an old post but I have a question. While you guys were splitting hairs, it doesn't look like you answered the question..... Although I am just starting to get back into programming after a 23 year absence, maybe I missed the answer.
The reason I bring it up is because I'm looking for similar info.
Thank you. |
| |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |