Discussion:
Capturing battery temp
(too old to reply)
Adam Davis
2008-07-07 00:57:00 UTC
Permalink
Hello there, I know many programs can display the battery temp from my dell
axim 51v however I'm writing a program in visual studio 2005, for the smart
device with vb and so far I've had no luck.

I've seen that

http://msdn.microsoft.com/en-us/library/ms941842.aspx

The SYSTEM_POWER_STATUS_EX2 structure holds a BatteryTemperature field.

I've been looking at examples on the internet and tried to create an example
but it doesnt work, it consist of a timer and a text field, I'm wanting it to
simply display and update the battery temp in a text field.

You can see what I've attempted here;

http://pastesite.com/1312

Anyone any ideas how I can simply grab the battery temp?
Paul G. Tobey [eMVP]
2008-07-07 15:57:14 UTC
Permalink
So what part is the problem? The call doesn't work or your code for
displaying the data is wrong?

Paul T.
Post by Adam Davis
Hello there, I know many programs can display the battery temp from my dell
axim 51v however I'm writing a program in visual studio 2005, for the smart
device with vb and so far I've had no luck.
I've seen that
http://msdn.microsoft.com/en-us/library/ms941842.aspx
The SYSTEM_POWER_STATUS_EX2 structure holds a BatteryTemperature field.
I've been looking at examples on the internet and tried to create an example
but it doesnt work, it consist of a timer and a text field, I'm wanting it to
simply display and update the battery temp in a text field.
You can see what I've attempted here;
http://pastesite.com/1312
Anyone any ideas how I can simply grab the battery temp?
Kadaitcha Man
2008-07-11 08:46:02 UTC
Permalink
Sounded like he's not getting the data back properly. Of course
you can't display afterward.


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
Post by Paul G. Tobey [eMVP]
So what part is the problem? The call doesn't work or your
code for
displaying the data is wrong?
Paul T.
Post by Adam Davis
Hello there, I know many programs can display the battery temp
from my
dell
axim 51v however I'm writing a program in visual studio 2005,
for the
smart
device with vb and so far I've had no luck.
I've seen that
http://msdn.microsoft.com/en-us/library/ms941842.aspx
The SYSTEM_POWER_STATUS_EX2 structure holds a
BatteryTemperature field.
I've been looking at examples on the internet and tried to
create an
example
but it doesnt work, it consist of a timer and a text field,
I'm wanting it
to
simply display and update the battery temp in a text field.
You can see what I've attempted here;
http://pastesite.com/1312
Anyone any ideas how I can simply grab the battery temp?
Loading...