Click here to Skip to main content
15,879,535 members

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

Article: 1, Tip/Tricks: 3

RSS Feed

Average article rating: 4.69

Desktop Programming
WTL
16 Dec 2010   Updated: 14 Jan 2011   Rating: 4.69/5    Votes: 16   Popularity: 5.51
Licence: CPOL    Views: 44,640     Bookmarked: 26   Downloaded: 573
Please Sign up or sign in to vote.
Read/write serialize/unserialize any kind of arbitrary set of C++ data structures in the Registry.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.70

MFC
30 Mar 2011   Updated: 2 Apr 2011   Rating: 4.90/5    Votes: 19   Popularity: 6.26
Licence: CPOL    Views: 71,855     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
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...
Programming Languages
C++
20 Dec 2010   Updated: 21 Dec 2010   Rating: 4.25/5    Votes: 3   Popularity: 2.03
Licence: CPOL    Views: 16,690     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
#include must not be in precompiled header
15 Dec 2010   Updated: 19 Dec 2010   Rating: 4.78/5    Votes: 5   Popularity: 3.34
Licence: CPOL    Views: 9,830     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
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++ ) { ...
28 Mar 2011   Updated: 28 Mar 2011   Rating: 4.89/5    Votes: 2   Popularity: 1.47
Licence: CPOL    Views: 26,870     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
std::string source = "Hello World";std::wstring result( source.begin(), source.end() );One coding line less !

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
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 ...