Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List all registry values in a key Pin
Antony M Kancidrowski21-Jan-05 4:40
Antony M Kancidrowski21-Jan-05 4:40 
QuestionRead the files or folders of a text file and display their icons? Pin
lillah21-Jan-05 0:24
lillah21-Jan-05 0:24 
AnswerRe: Read the files or folders of a text file and display their icons? Pin
David Crow21-Jan-05 10:12
David Crow21-Jan-05 10:12 
GeneralRe: Read the files or folders of a text file and display their icons? Pin
lillah21-Jan-05 12:34
lillah21-Jan-05 12:34 
GeneralCString to std::string Pin
Patrik Mueller21-Jan-05 0:10
Patrik Mueller21-Jan-05 0:10 
GeneralRe: CString to std::string Pin
Mircea Puiu21-Jan-05 0:32
Mircea Puiu21-Jan-05 0:32 
GeneralRe: CString to std::string Pin
Patrik Mueller21-Jan-05 0:53
Patrik Mueller21-Jan-05 0:53 
GeneralRe: CString to std::string Pin
Mircea Puiu21-Jan-05 1:09
Mircea Puiu21-Jan-05 1:09 
First of all:
1) CString --> this is a string wrapper class, which is part of the Microsoft Foundation Classes(MFC).
2) std::string --> this is a Standard C++ Class wrapping a char string. It is part of the Standard Template Library, or STL.

The conversions between them are:
<br />
CString cs("Your text");<br />
std::string s((LPCTSTR)cs);<br />
<br />
std::string s("Your text");<br />
CString cs(s.c_str());<br />


SkyWalker
GeneralRe: CString to std::string Pin
Patrik Mueller21-Jan-05 1:24
Patrik Mueller21-Jan-05 1:24 
GeneralRe: CString to std::string Pin
Mircea Puiu21-Jan-05 1:38
Mircea Puiu21-Jan-05 1:38 
GeneralRe: CString to std::string Pin
Maximilien21-Jan-05 2:50
Maximilien21-Jan-05 2:50 
GeneralRe: CString to std::string Pin
Emilio Garavaglia21-Jan-05 3:33
Emilio Garavaglia21-Jan-05 3:33 
GeneralRe: CString to std::string Pin
Patrik Mueller21-Jan-05 20:07
Patrik Mueller21-Jan-05 20:07 
GeneralCreating a HDROP object Pin
peluquero8020-Jan-05 23:55
peluquero8020-Jan-05 23:55 
GeneralRe: Creating a HDROP object Pin
Blake Miller21-Jan-05 8:45
Blake Miller21-Jan-05 8:45 
GeneralRe: Creating a HDROP object Pin
peluquero8023-Jan-05 23:23
peluquero8023-Jan-05 23:23 
GeneralRe: Creating a HDROP object Pin
Blake Miller25-Jan-05 4:47
Blake Miller25-Jan-05 4:47 
QuestionHot to get the handle of the main window? Pin
Vaibhav Sanghavi20-Jan-05 23:54
Vaibhav Sanghavi20-Jan-05 23:54 
AnswerRe: Hot to get the handle of the main window? Pin
vikramlinux21-Jan-05 0:56
vikramlinux21-Jan-05 0:56 
AnswerRe: Hot to get the handle of the main window? Pin
Abhi Lahare21-Jan-05 0:59
Abhi Lahare21-Jan-05 0:59 
AnswerRe: Hot to get the handle of the main window? Pin
Blake Miller21-Jan-05 8:49
Blake Miller21-Jan-05 8:49 
GeneralRe: Hot to get the handle of the main window? Pin
Vaibhav Sanghavi23-Jan-05 19:50
Vaibhav Sanghavi23-Jan-05 19:50 
GeneralFonts are scaled while scaling metafile Pin
marukas20-Jan-05 23:42
marukas20-Jan-05 23:42 
QuestionNeed help!!! How to create a connection in Network connections in WinXP? Pin
Chuaaico20-Jan-05 23:42
Chuaaico20-Jan-05 23:42 
GeneralHelp wanted with CRecordset Pin
xcavin20-Jan-05 21:15
xcavin20-Jan-05 21:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.