|
Out of curiosity - In what way do you want to control it?
|
|
|
|
|
gautambhalla163 wrote: ...Can we control power supply of Computer using programming in C++?
Yes, but indirectly. In other words, if you start/stop devices that use said power supply, you have effectively controlled it.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
You've really pushed the boat out on this one! Ain't cha Bubba!
Let me try and help you because I suspect the others might have been playing Billy Suggers with you.
gautambhalla163 wrote: I am new to IT
New to what? New to the planet earth? New to *nudge nudge wink wink*? We'll need a bit more than that to go on.
gautambhalla163 wrote: ...Can we...
There's more of you? How many of you are there? Are you legion? We must be told. [that's the codeprject 'we']
gautambhalla163 wrote: control ... Computer using ... C++?
Probably, maybe, not really. It depends too much on what the requirement is. I try to suggest to people with questionable questions to first try and then come back when they hit a problem. In your case I'll make a special exception.
TURN OFF THE MACHINE AND WALK AWAY SLOWLY! NO ONE WILL GE HURT!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
williamnw wrote: gautambhalla163 wrote:
...Can we...
There's more of you? How many of you are there? Are you legion? We must be told. [that's the codeprject 'we']
He/She doesnt need anything from YOU. He asked the "community" . You jumped in to redicule him instead of asnwering the question. Not funny.
I am waiting for you to ask a question. I will have my fun.
|
|
|
|
|
Your question is very broad, please be specific. I can tell you though that there are sensor technologies some of which are programmed in C++ that can detect problems in power supplies and do specific actions...
|
|
|
|
|
Do you mean you want to control ACPI?
|
|
|
|
|
|
hi,
May i know how to display bool value using outputdebugstring()...
|
|
|
|
|
bool flag;
TCHAR msg[8];
wsprintf(msg, _T("%s\r\n"), (flag? _T("true") : _T("false")));
OutputDebugString(msg);
or
if (flag)
OutputDebugString(_T("true\r\n"));
else
OutputDebugString(_T("false\r\n"));

|
|
|
|
|
p_1960 wrote: outputdebugstring
it takes null termnated stings. convert bool to string and you good to go.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
In single document application, I have define one class and in my own class I want use the function of CMyView class, How to achieve it?
I have add the MyView.h to my own class, but the compiler will show error.
|
|
|
|
|
What code? What error?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CView is a class provided by the MFC Library. The MFC Library is provided to facilitate Windows Operating System Development for the C++ language. One should not be attempting to use such advanced libraries without having first achieved a minimal competence of using the C++ language and common tools such as compilers.
|
|
|
|
|
Thank you, But it should can be do. Maybe I have to find another way
|
|
|
|
|
Hi,
Is it possible to handle the database exceptions gloablly for an application insted of using a try catch block for every DB handling scenarios?
Thanks
krishnan.S
|
|
|
|
|
|
Hi folks do any body know how to receive RS232 data and display them on the screen.I am also looking for the sending out the data back through RS232.Can i get any links which tell me more about RS232 related stuff
|
|
|
|
|
You know that codeproject has a very nice search engine ? This[^] for instance.
|
|
|
|
|
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I want to display 3 different mouse cursors in CRichEditCtrl when mouse moves to different places respectively.
The 3 cursors are I-beam, arrow and hand.
I use SetClasslong(...) to change cursor, but, the function is not working.
The only cursor displayed is default (I-beam).
Is it possible to change cursor of a CRichEditCtrl?
If yes, how?
thanks
|
|
|
|
|
Try handling the WM_SETCURSOR[^] message.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
the problem has been fixed by SetCursor(..) function other than SetClassLong(...).
|
|
|
|
|
Hi i have created a message box as
MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK );
i need to display this on top of other window in my application
Current whenever i click on other areas..it goes behind the pages..
Please provide comments..
|
|
|
|
|
change NULL of first parameter
MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK );
to the window handle in which the Message-Bos is displyed.
|
|
|
|
|
MessageBox(m_hWnd,"you info","captain",MB_TOPMOST|Your mode);
|
|
|
|