|
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);
|
|
|
|
|
Hi
I am implementing security on Contact base smart card which follows scosta template.In card structure ef is directly under DF and DF is directly under MF. According to the template i am implementing security on elementary file(both sac and sae attributes are specified at time of creation in fcp) according to security condition read and update of record requires verification of pin(which is already defined in pin file).
Problem is that after implementing the security attributes on card now also my card is not following that,after selecting the file i can directly read and write on record, card does not ask for verification of pin.
please help me asap...............
|
|
|
|
|
|
The likeliness of getting a reply to your question is inversely proportional to the number of times you post it.
About your question - I'm sure if you google a bit you'll find something that points to some registry entries that will help you detect the language pack.
|
|
|
|
|
Hi everyone,
I use vfw to play background music in my app(MFC based), but how to repeat the mucis automaticly?
HWND video = NULL;
if(video == NULL)
{
video = MCIWndCreate(this->GetSafeHwnd(),
AfxGetInstanceHandle(),
WS_CHILD | WS_VISIBLE | MCIWNDF_NOPLAYBAR,
m_Path);
}
else
{
MCIWndHome(video);
}
MCIWndPlay(video);
modified on Friday, March 20, 2009 4:48 AM
|
|
|
|