Click here to Skip to main content

Articles by jean Davy (Article: 1, Tip/Tricks: 3)

Article: 1, Tip/Tricks: 3

RSS Feed

Average article rating: 4.59

MFC
General
Posted: 16 Dec 2010   Updated: 14 Jan 2011   Views: 19,626   Rating: 4.59/5    Votes: 15   Popularity: 5.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 370
Read/write serialize/unserialize any kind of arbitrary set of C++ data structures in the Registry.
No blogs have been submitted.

Average tips rating: 4.63

Posted: 30 Mar 2011   Updated: 2 Apr 2011   Views: 13,179   Rating: 4.88/5    Votes: 16   Popularity: 5.97
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
As you use CString, you have access to the CW2A ATL macro, assuming that you work with _UNICODE defined, here it is:CString theCStr;...std::string STDStr( CW2A( theCStr.GetString() ) );which will convert to "system encoding on the user's machine" (thanks Nemanja[^] comment !), if you...
Bugs & Workarounds
General
Posted: 20 Dec 2010   Updated: 21 Dec 2010   Views: 6,500   Rating: 4.25/5    Votes: 3   Popularity: 2.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
#include must not be in precompiled header
Programming Tips
General
Posted: 15 Dec 2010   Updated: 19 Dec 2010   Views: 2,587   Rating: 4.78/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Forget all that "C" old bit operator, you are "C++", use the modern STL way ;) #include #include void PrintLogicalDrives(){ using namespace std; bitset lt ld = (int)GetLogicalDrives(); for( char i = 'A'; i <= 'Z'; i++ ) { ...
No reference articles have been posted.

jean Davy
Engineer
France France
I'm an independent Software Developer living in the Alpes Maritimes (aka French Riviera).
 
Even if in the past I have worked regularily with Fortran, Pascal, Basic (not necessarily Visual), and much more esoteric languages (who knows Prolog, Lotus 123 macros ?), even if I still work from time to time with C#, Java or some "interpreted languages", I'm more specialized in C++.
I work on MFC since the very first version, I enjoy working on Visual Studio 2010, its C++0x features, STL, MFC, boost, WTL ...


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid