Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sys Info Pin
Bob Stanneveld16-Dec-03 21:22
Bob Stanneveld16-Dec-03 21:22 
GeneralRe: Sys Info Pin
BaldwinMartin16-Dec-03 22:55
BaldwinMartin16-Dec-03 22:55 
GeneralRe: Sys Info Pin
Bob Stanneveld17-Dec-03 0:27
Bob Stanneveld17-Dec-03 0:27 
GeneralRe: Sys Info Pin
Alexander M.,18-Dec-03 8:51
Alexander M.,18-Dec-03 8:51 
GeneralRe: Sys Info Pin
BaldwinMartin18-Dec-03 9:54
BaldwinMartin18-Dec-03 9:54 
GeneralString Pin
Anonymous16-Dec-03 8:15
Anonymous16-Dec-03 8:15 
GeneralRe: String Pin
Alexander M.,16-Dec-03 9:00
Alexander M.,16-Dec-03 9:00 
GeneralRe: String Pin
WREY17-Dec-03 8:59
WREY17-Dec-03 8:59 
Use the string "replace()" function.

string.replace(sp, n, rc);

where "sp" = starting position
"n" = number of characters to replace
"rc" = the replacing character

For example, if you have:
string str = "xxxABC";
str.replace(0, 3, "");    // will remove all three "x's", leaving you with just ABC
// and if you have
string str = "     ABC";   // five spaces before 'ABC'
str.replace(0, 5, "");    // will remove all the spaces before 'ABC'leaving you with just ABC
Wink | ;)

William

Fortes in fide et opere!
QuestionHow to display VC++ .NET style MessageBox using Visual C++ 6 Pin
bin892216-Dec-03 7:45
bin892216-Dec-03 7:45 
Generalmultiple thread problem... Pin
Anonymous16-Dec-03 6:44
Anonymous16-Dec-03 6:44 
GeneralRe: multiple thread problem... Pin
John M. Drescher16-Dec-03 7:53
John M. Drescher16-Dec-03 7:53 
Generaloverruling new/delete, malloc/free Pin
Patje16-Dec-03 6:07
Patje16-Dec-03 6:07 
GeneralRe: overruling new/delete, malloc/free Pin
Alexander M.,16-Dec-03 9:05
Alexander M.,16-Dec-03 9:05 
QuestionHow to make a cab file with safe MFC control?? Pin
aglcic16-Dec-03 5:50
aglcic16-Dec-03 5:50 
AnswerRe: How to make a cab file with safe MFC control?? Pin
Roger Stewart16-Dec-03 14:37
professionalRoger Stewart16-Dec-03 14:37 
GeneralHelp with serialization Pin
Juan Carlos Cobas16-Dec-03 5:16
Juan Carlos Cobas16-Dec-03 5:16 
GeneralRe: Help with serialization Pin
Juan Carlos Cobas16-Dec-03 5:57
Juan Carlos Cobas16-Dec-03 5:57 
GeneralHTTP Post Pin
si_6916-Dec-03 4:58
si_6916-Dec-03 4:58 
GeneralExperts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 4:37
oren frenkel16-Dec-03 4:37 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 5:31
Felix Gartsman16-Dec-03 5:31 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 5:44
oren frenkel16-Dec-03 5:44 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 7:39
Felix Gartsman16-Dec-03 7:39 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:40
oren frenkel16-Dec-03 22:40 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher16-Dec-03 7:56
John M. Drescher16-Dec-03 7:56 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:38
oren frenkel16-Dec-03 22:38 

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.