Click here to Skip to main content
15,921,028 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: store windows form as a bitmap file?? Pin
ursus zeta13-Sep-05 12:23
ursus zeta13-Sep-05 12:23 
QuestionHow do I store object files as a library?? Pin
BenPage7-Sep-05 3:20
BenPage7-Sep-05 3:20 
AnswerRe: How do I store object files as a library?? Pin
Cedric Moonen7-Sep-05 23:12
Cedric Moonen7-Sep-05 23:12 
QuestionHow to convert type String* to unsigned char * In vc++.NET(Managed)? Pin
CooperWu5-Sep-05 22:29
CooperWu5-Sep-05 22:29 
AnswerRe: How to convert type String* to unsigned char * In vc++.NET(Managed)? Pin
S. Senthil Kumar6-Sep-05 7:58
S. Senthil Kumar6-Sep-05 7:58 
QuestionRe: How to convert type String* to unsigned char * In vc++.NET(Managed)? Pin
CooperWu6-Sep-05 15:26
CooperWu6-Sep-05 15:26 
QuestionReplacing text? Pin
Lord Kixdemp5-Sep-05 11:57
Lord Kixdemp5-Sep-05 11:57 
AnswerRe: Replacing text? Pin
Christian Graus5-Sep-05 12:15
protectorChristian Graus5-Sep-05 12:15 
Darth_Sulfur wrote:
he replace() function in the string class is hard to understand... Can anybody tell me what to do?

string& replace(size_type pos, size_type n, const string& str);
Delete a substring from the current string, and replace it with another string.
string str14 = "abcdefghi";
string str15 = "XYZ";
str14.replace (4,2,str15);
cout << str14 << endl; // "abcdXYZghi"

I got that from google. It's pretty clear, you need to know the location and length of the string you want to replace. You could easily write a helper function that finds these things, and does the replace in the manner you're hoping.

Good luck !!


Christian Graus - Microsoft MVP - C++
AnswerRe: Replacing text? Pin
toxcct5-Sep-05 21:32
toxcct5-Sep-05 21:32 
GeneralRe: Replacing text? Pin
Lord Kixdemp7-Sep-05 11:21
Lord Kixdemp7-Sep-05 11:21 
GeneralRe: Replacing text? Pin
toxcct7-Sep-05 20:30
toxcct7-Sep-05 20:30 
GeneralRe: Replacing text? Pin
Lord Kixdemp8-Sep-05 13:24
Lord Kixdemp8-Sep-05 13:24 
QuestionTrouble with writing dll Pin
Christian Graus5-Sep-05 11:16
protectorChristian Graus5-Sep-05 11:16 
AnswerNote,... Pin
ursus zeta6-Sep-05 13:31
ursus zeta6-Sep-05 13:31 
General[Message Deleted] Pin
ursus zeta7-Sep-05 5:36
ursus zeta7-Sep-05 5:36 
QuestionHow to design gateway of two protocal? Pin
rushing4-Sep-05 23:52
rushing4-Sep-05 23:52 
Questioncompiler issue Pin
LiYS4-Sep-05 23:40
LiYS4-Sep-05 23:40 
AnswerRe: compiler issue Pin
toxcct5-Sep-05 1:05
toxcct5-Sep-05 1:05 
GeneralRe: compiler issue Pin
LiYS5-Sep-05 1:10
LiYS5-Sep-05 1:10 
AnswerRe: compiler issue Pin
S. Senthil Kumar6-Sep-05 8:15
S. Senthil Kumar6-Sep-05 8:15 
QuestionHelp with precompiled headers needed!! Pin
Ben Page4-Sep-05 21:49
Ben Page4-Sep-05 21:49 
AnswerRe: Help with precompiled headers needed!! Pin
Neagoe Gabriel5-Sep-05 4:41
Neagoe Gabriel5-Sep-05 4:41 
GeneralRe: Help with precompiled headers needed!! Pin
therealcombat5-Sep-05 8:32
therealcombat5-Sep-05 8:32 
GeneralRe: Help with precompiled headers needed!! Pin
BenPage7-Sep-05 3:08
BenPage7-Sep-05 3:08 
Questionclasses c++ project help Pin
da_comp_learner4-Sep-05 21:43
da_comp_learner4-Sep-05 21:43 

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.