|
Ya i do increment please have a look at the updated code....and what u said i exactly true ...but please let me know how can get the toal string ie name1=promod and display it thru messagebox..
|
|
|
|
|
if you need to use GetPrivateProfileStringW, then NextSection should be a wchar_t*, not a char*.
and, you'll need to build your project in Unicode to get AfxMessageBox to handle wide chars.
|
|
|
|
|
Hi chris,
If you don"t mind please let me know how to display the complete string with
sample...(may be modifying the above code...)as im a newbie and i have to complete this by today.........
|
|
|
|
|
You are mixing Unicode and MBCS (which is legal if you know how to do it). Most applications use one or the other. See here for more.
"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're calling the unicode function but you're passing in ANSI char arrays. You should be using WCHAR types not char.
|
|
|
|
|
How do you trap windows messages in a native DLL?. I know how to do it in a console application.exe but not in a DLL. I want to use WndProc and filter by WM_KEYDOWN so I don't miss any messages.
|
|
|
|
|
I am new to IT, I want to ask Can we control power supply of Computer using programming in C++?
|
|
|
|
|
gautambhalla163 wrote: I am new to IT
welcome, your subject line explains it better.
gautambhalla163 wrote: I want to ask Can we control power supply of Computer using programming in C++?
The short answer is No.
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[^]
|
|
|
|
|
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
|
|
|
|