Click here to Skip to main content
16,013,925 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size and position of a control like a button or static text. Pin
Mike Nordell28-May-02 21:33
Mike Nordell28-May-02 21:33 
GeneralRe: size and position of a control like a button or static text. Pin
Joaquín M López Muñoz28-May-02 21:42
Joaquín M López Muñoz28-May-02 21:42 
GeneralRe: size and position of a control like a button or static text. Pin
aldeba28-May-02 21:58
aldeba28-May-02 21:58 
GeneralRe: size and position of a control like a button or static text. Pin
Mike Nordell28-May-02 22:51
Mike Nordell28-May-02 22:51 
GeneralRe: size and position of a control like a button or static text. Pin
aldeba30-May-02 0:45
aldeba30-May-02 0:45 
GeneralConverting from CString to std::string Pin
Poul Haahr Klemmensen28-May-02 20:33
Poul Haahr Klemmensen28-May-02 20:33 
GeneralRe: Converting from CString to std::string Pin
Joaquín M López Muñoz28-May-02 20:49
Joaquín M López Muñoz28-May-02 20:49 
GeneralRe: Converting from CString to std::string Pin
Bernhard28-May-02 20:56
Bernhard28-May-02 20:56 
CString test;
std::string test2 (test); //now you have converted the cstring to std::string


if you would like to have a program which works well with CStrings, std::strings and char arrays the best is that you pass all the var's as const char* (LPCSTR in windows if you prefer this).. all of them can be casted to a const char* (CString and char - array implicetly, the std::string with the c_str() member function)

if you need to change a string value in a function, use
* a char array (you can use this on any platform, including mfc)
* a std::string if you don't car bout the mfc..

i've heard that there should be some CString ports to other platforms.. but i don't know anything else bout this...

hope this helps a little bit otherwise ask a little bit more detailed..
bernhard



"I'm from the South Bronx, and I don't care what you say: those cows look dangerous."
U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
GeneralRe: Converting from CString to std::string Pin
Poul Haahr Klemmensen29-May-02 7:17
Poul Haahr Klemmensen29-May-02 7:17 
GeneralPublic-Private key encryption alternatives Pin
Nish Nishant28-May-02 20:15
sitebuilderNish Nishant28-May-02 20:15 
GeneralRe: Public-Private key encryption alternatives Pin
Joaquín M López Muñoz28-May-02 20:20
Joaquín M López Muñoz28-May-02 20:20 
GeneralRe: Public-Private key encryption alternatives Pin
Nish Nishant28-May-02 21:26
sitebuilderNish Nishant28-May-02 21:26 
GeneralPGP anyone Pin
Nish Nishant28-May-02 20:12
sitebuilderNish Nishant28-May-02 20:12 
GeneralRe: PGP anyone Pin
markkuk28-May-02 22:25
markkuk28-May-02 22:25 
GeneralRe: PGP anyone Pin
Nish Nishant29-May-02 0:49
sitebuilderNish Nishant29-May-02 0:49 
GeneralRemove Systray Icon Pin
Derick Cyril Thomas28-May-02 19:58
Derick Cyril Thomas28-May-02 19:58 
GeneralRe: Remove Systray Icon Pin
Mike Nordell28-May-02 21:28
Mike Nordell28-May-02 21:28 
GeneralWindows 95/98 to Windows 2000/XP Pin
28-May-02 19:11
suss28-May-02 19:11 
GeneralRe: Windows 95/98 to Windows 2000/XP Pin
Nish Nishant28-May-02 20:09
sitebuilderNish Nishant28-May-02 20:09 
GeneralRe: Windows 95/98 to Windows 2000/XP Pin
tiaozi28-May-02 22:34
tiaozi28-May-02 22:34 
GeneralRe: Windows 95/98 to Windows 2000/XP Pin
Ed Gadziemski30-May-02 12:02
professionalEd Gadziemski30-May-02 12:02 
GeneralWinXp error bubbles Pin
28-May-02 18:28
suss28-May-02 18:28 
GeneralRe: WinXp error bubbles Pin
Shog928-May-02 18:43
sitebuilderShog928-May-02 18:43 
GeneralUpdating Static Control Color Real-Time :: MFC Pin
valikac28-May-02 17:36
valikac28-May-02 17:36 
GeneralRe: Updating Static Control Color Real-Time :: MFC Pin
Paul M Watt28-May-02 18:13
mentorPaul M Watt28-May-02 18:13 

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.