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

Managed C++/CLI

 
GeneralRe: Including .dll in /clr:pure project [VC++ '05] Pin
jantimmerman3-Apr-06 21:27
jantimmerman3-Apr-06 21:27 
Questionmad libs Pin
jwacho52-Apr-06 11:59
jwacho52-Apr-06 11:59 
QuestionCFileDialog doesn't update when I change the file type. Pin
IlanTal1-Apr-06 19:46
IlanTal1-Apr-06 19:46 
Questionconvert System::String to char Pin
leonelsr1-Apr-06 9:21
leonelsr1-Apr-06 9:21 
AnswerRe: convert System::String to char Pin
2bee 1-Apr-06 12:00
2bee 1-Apr-06 12:00 
Questionargs in the "new" main() Pin
leonelsr31-Mar-06 11:48
leonelsr31-Mar-06 11:48 
AnswerRe: args in the "new" main() Pin
2bee 31-Mar-06 23:00
2bee 31-Mar-06 23:00 
Questionlooping through strings C++ .NET Pin
richiebaby31-Mar-06 4:05
richiebaby31-Mar-06 4:05 
Hello all,

I'll start by saying the dreaded words: I am a newbie.

Started using visual studio .NET recently and I just can't seem to do anything with it. I am used to visual studio 6 c++ and I'm having difficulty with the transition.

Under .NET I have creeated a rich text box that I would like to use to display a string of text. The difficulty arises because each character within the string can have different formatting applied (bold, italic, underline). So I would like to simply step through each character within the string and output them one-by-one.

My C++ brain tells me that I would like to simply use a for_each, like this:
<br />
   string s = "Hello I am a test string";<br />
   for_each(s.begin(), s.end(), printValue);<br />

So can anyone explain what would be different when implementing the above functionality within .NET,
or can I still somehow write the same C++ that I am used to?

Just to give an idea, here is a code snippet

<br />
private: System::String *text_string;<br />
<br />
private: System::Void outputToScreen()<br />
{<br />
   this->text_string = S"Hello I am a test string...";<br />
<br />
   //This is where I would like to perform a for_each (or equivalent)<br />
}<br />


Even links to relevant API support documentation would be great

Thanks for your help.
AnswerRe: looping through strings C++ .NET Pin
Saksida Bojan31-Mar-06 5:34
Saksida Bojan31-Mar-06 5:34 
GeneralRe: looping through strings C++ .NET Pin
richiebaby31-Mar-06 5:51
richiebaby31-Mar-06 5:51 
GeneralRe: looping through strings C++ .NET Pin
Saksida Bojan31-Mar-06 6:51
Saksida Bojan31-Mar-06 6:51 
GeneralRe: looping through strings C++ .NET - Figured it out Pin
richiebaby31-Mar-06 6:54
richiebaby31-Mar-06 6:54 
QuestionVery strange error Pin
Joel Holdsworth30-Mar-06 11:58
Joel Holdsworth30-Mar-06 11:58 
AnswerRe: Very strange error Pin
George L. Jackson30-Mar-06 17:10
George L. Jackson30-Mar-06 17:10 
GeneralRe: Very strange error Pin
Saksida Bojan30-Mar-06 18:11
Saksida Bojan30-Mar-06 18:11 
GeneralRe: Very strange error Pin
George L. Jackson31-Mar-06 1:01
George L. Jackson31-Mar-06 1:01 
AnswerRe: Very strange error Pin
John L. DeVito30-Mar-06 23:11
professionalJohn L. DeVito30-Mar-06 23:11 
QuestionTransfer Data from SQL Database to DataTable Pin
kevin12730-Mar-06 4:45
kevin12730-Mar-06 4:45 
GeneralRe: Transfer Data from SQL Database to DataTable Pin
George L. Jackson30-Mar-06 16:49
George L. Jackson30-Mar-06 16:49 
GeneralRe: Transfer Data from SQL Database to DataTable Pin
kevin12730-Mar-06 18:18
kevin12730-Mar-06 18:18 
QuestionCopying array values into a managed structure Pin
Sangeetha.R30-Mar-06 0:14
Sangeetha.R30-Mar-06 0:14 
AnswerRe: Copying array values into a managed structure Pin
2bee 30-Mar-06 1:45
2bee 30-Mar-06 1:45 
GeneralRe: Copying array values into a managed structure Pin
Sangeetha.R30-Mar-06 18:18
Sangeetha.R30-Mar-06 18:18 
AnswerRe: Copying array values into a managed structure Pin
2bee 30-Mar-06 19:31
2bee 30-Mar-06 19:31 
QuestionChecking For Null while rasing the events Pin
Sangeetha.R30-Mar-06 0:03
Sangeetha.R30-Mar-06 0:03 

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.