Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Richard MacCutchan20-May-10 21:15
mveRichard MacCutchan20-May-10 21:15 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 23:54
kushMuchaal20-May-10 23:54 
QuestionGetWindowRect() for CEdit Pin
Anu_Bala20-May-10 18:37
Anu_Bala20-May-10 18:37 
AnswerRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 19:34
ThatsAlok20-May-10 19:34 
GeneralRe: GetWindowRect() for CEdit Pin
Anu_Bala20-May-10 20:57
Anu_Bala20-May-10 20:57 
GeneralRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 23:31
ThatsAlok20-May-10 23:31 
QuestionHelp to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit20-May-10 17:27
ndkit20-May-10 17:27 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Garth J Lancaster20-May-10 18:10
professionalGarth J Lancaster20-May-10 18:10 
You havnt said what you want to DO with the UPS status once you've found it - lets assume you wish to write it to the Windows Event Log for start..

I would appoach it in a number of 'phases', not knowing what experience you have

1) build a console mode program capable of writing application events to the event log

2) use something like Serial library for C++[^] in a console mode program to be able to read the UPS data from the serial port - somewhere in the specs for the UPS it will tell you how to interpret the data to give you the status

3) then write a service, make sure you can do the normal things - start, stop, use the knowledge gained from (1) to write an event to the log on a timed basis - eg, every 5 minutes

4) once youve gotten here, you then re-do the service to use the knowledge gained in step 2, to determine and log the UPS status to the event log

Once your service is up and running, you can expand the logging event to (for example) send an email if the UPS needs attention, or (for example) add a system-tray applet and change the colour of it to red

'g'
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
David Crow21-May-10 3:10
David Crow21-May-10 3:10 
GeneralRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit23-May-10 23:48
ndkit23-May-10 23:48 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Rick York21-May-10 10:17
mveRick York21-May-10 10:17 
QuestionHow to stop CComboBox from interrupting thread? Pin
Greg Ellis20-May-10 17:06
Greg Ellis20-May-10 17:06 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Garth J Lancaster20-May-10 18:19
professionalGarth J Lancaster20-May-10 18:19 
GeneralRe: How to stop CComboBox from interrupting thread? Pin
Greg Ellis21-May-10 3:42
Greg Ellis21-May-10 3:42 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Stephen Hewitt20-May-10 20:18
Stephen Hewitt20-May-10 20:18 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Parthiban20-May-10 23:38
Parthiban20-May-10 23:38 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Roger Allen21-May-10 6:16
Roger Allen21-May-10 6:16 
QuestionExperiencing trouble with passing input string to array [modified] Pin
computerpublic20-May-10 15:33
computerpublic20-May-10 15:33 
AnswerRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 15:48
sitebuilderLuc Pattyn20-May-10 15:48 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 15:59
computerpublic20-May-10 15:59 
AnswerRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 16:00
sitebuilderLuc Pattyn20-May-10 16:00 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 16:06
computerpublic20-May-10 16:06 
GeneralRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 16:39
sitebuilderLuc Pattyn20-May-10 16:39 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 16:55
computerpublic20-May-10 16:55 
GeneralRe: Experiencing trouble with passing input string to array Pin
Aescleal20-May-10 22:21
Aescleal20-May-10 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.