Type: Posts; User: ovidiucucu
Search took 0.17 seconds.
February 25th, 2015, 01:01 PM
Some functions may be deprecated in newer OS versions, some other ones may be not supported by older OS versions. And, some functions may have other behavior on different OS versions. And, your...
February 19th, 2015, 09:58 PM
One nice additional note:
Japanese code page 932 maps the same code (0x5C) for backslash and Yen sign.
That was a source of troubles in a legacy application, when dealing with file paths.
February 19th, 2015, 09:22 PM
Beside that already answered here, have a look at this FAQ: Which Windows API functions are faster, ANSI or UNICODE?
February 19th, 2015, 08:53 PM
A listbox, kept in MFC CListBox class, is a simple control designed for a reasonable number of items so generally, there is not necessary a separate thread for filling it.
For a large amount of...
January 30th, 2015, 10:32 AM
Beginning with Visual Studio 2010, can also handily use lambda expressions like in the following example:
bool bAscending = true;
January 29th, 2015, 03:09 PM
January 29th, 2015, 02:32 PM
Again, please, is any connection between C++11 (ISO/IEC14882:2011) specific problems and what we are discussing here?
January 28th, 2015, 04:11 PM
[ off-topic ]
Which is the connection between Shell_NotifyIcon, (or other (C) WinAPI functions discussed here or in other topics you started) and C++11 which you are inserting in the title?
January 28th, 2015, 03:38 PM
Will be probably also known as C++/HOI (i.e. C++ (with) Header-Only Implementation). :)
January 23rd, 2015, 03:28 PM
Arjay, no need to wonder (and eventually have nightmares). I never wrote my "own string class, but using other parts of the std library". :)
January 23rd, 2015, 02:25 PM
IMHO presenting this solution to someone who still have problems with memory allocation, may easily transform him/her in a copy-coder, code-monkey or script-kiddie. :)
January 23rd, 2015, 01:47 PM
Indeed, Windows API GetForegroundWindow function does not return a pointer to an MFC object (as CWnd::GetForegroundWindow does) but returns a window handle (HWND) which IS A POINTER, as well.
January 18th, 2015, 12:25 PM
Arjay, I began coding long time ago with FORTRAN and COBOL-74.
But I never said (e.g. in a Java forum) something like
"Coming from C++ I've always found this obsession of using garbage collector...
January 18th, 2015, 11:54 AM
That explains everything. :)
January 18th, 2015, 07:08 AM
...and further we can see a lot of C++ code monkeys swearing whatever tools instead of shooting the architect which just has borrowed some cool practices from other programming languages. :)
January 18th, 2015, 06:19 AM
Writing a simple string class is not quite simple. :)
However, let's try to answer the OP questions.
Q1. Why do we need to make a forward declaration of the class ostream?
A1. Once included...
January 18th, 2015, 01:59 AM
“Learn, learn and once again, learn!” said the mighty V.I.Lenin :D
Well, afaik, seriously, there's not a tutorial named "Writing a Chat Program for FrontPage Coders". However, try to start from...
January 17th, 2015, 08:39 AM
No mater the file name. We can make a DLL named ole666.dll and that doesn't mean it's a 666-bit DLL. :)
On 64-bit systems there is a 64-bit ole32.dll in System32 folder and a 32-bit ole32.dll in...
January 17th, 2015, 02:57 AM
There are two kinds of scrollbars:
scrollbars which are shown in windows having WS_HSCROLL and/or WS_VSCROLL style;
scrollbar common controls (of window class "ScrollBar").
January 15th, 2015, 08:53 AM
An MDI application with "tabbed views" can have zero, one or more tab groups.
Here is an example of one having two tab groups.
If you want to programmatically activate a tab item (and...
January 12th, 2015, 05:47 PM
Have you ever dealt with C code written in early 90'th or earlier?
If yes, you can notice a lot of C implementation files included in other C implementation files.
That's because the...
January 9th, 2015, 09:42 AM
First note that WM_CTLCOLORMSGBOX message is discontinued and actually has no use.
However, we can customize a dialog box shown with MessageBox or related functions as follows:
January 9th, 2015, 05:37 AM
Basically, it is possible to remove the window title bar (including for windows created in other process) by removing WS_CAPTION style.
Of course, refer to built-in window caption and not to a...
December 23rd, 2014, 04:37 AM
If you are talking about CopyFile function, please note that it simply copy a file and does NOT perform any conversion.
December 6th, 2014, 09:10 AM
If you want to customize the look of controls which have Visual Styles then probably you have to use Visual Styles API.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.