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

Managed C++/CLI

 
AnswerCross-post warning Pin
Peter_in_278017-Feb-11 19:48
professionalPeter_in_278017-Feb-11 19:48 
QuestionHow to perform the debugging operation in visual studio 6.0 in Windows 7 64-bit environment. Pin
lucky_122116-Feb-11 22:26
lucky_122116-Feb-11 22:26 
Questionstatic_cast vs cli::safe_cast Pin
pix_programmer16-Feb-11 20:18
pix_programmer16-Feb-11 20:18 
AnswerRe: static_cast vs cli::safe_cast Pin
ian__lindsay16-Feb-11 22:02
ian__lindsay16-Feb-11 22:02 
QuestionPreselecting files in a CFileDialog Pin
Hayden Fisher14-Feb-11 21:31
Hayden Fisher14-Feb-11 21:31 
QuestionSpliting a String in C++/CLI Pin
T.RATHA KRISHNAN14-Feb-11 20:03
T.RATHA KRISHNAN14-Feb-11 20:03 
AnswerRe: Spliting a String in C++/CLI Pin
Ger Hayden14-Feb-11 21:59
Ger Hayden14-Feb-11 21:59 
GeneralRe: Spliting a String in C++/CLI Pin
T.RATHA KRISHNAN14-Feb-11 22:13
T.RATHA KRISHNAN14-Feb-11 22:13 
Hi!
I used the following code to get a line from the file(and then I will split it into parts).

System::IO::StreamReader reader("test.ini", System::IO::FileMode::Open);
System::String^ line = reader.ReadLine();


But I got the following error:

error C2664: 'System::IO::StreamReader::StreamReader(System::IO::Stream ^,bool)' : cannot convert parameter 1 from 'const char [17]' to 'System::IO::Stream ^'
Reason: cannot convert from 'const char *' to 'System::IO::Stream ^'
No user-defined-conversion operator available, or
Cannot convert an unmanaged type to a managed type

How to get rid of this error?
GeneralRe: Spliting a String in C++/CLI Pin
Ger Hayden15-Feb-11 6:01
Ger Hayden15-Feb-11 6:01 
GeneralRe: Spliting a String in C++/CLI Pin
Richard MacCutchan15-Feb-11 23:24
mveRichard MacCutchan15-Feb-11 23:24 
AnswerRe: Spliting a String in C++/CLI Pin
John Schroedl15-Feb-11 10:16
professionalJohn Schroedl15-Feb-11 10:16 
QuestionBadImageFormat exception because of just class definition. Pin
progDes10-Feb-11 1:44
progDes10-Feb-11 1:44 
AnswerRe: BadImageFormat exception because of just class definition. Pin
progDes10-Feb-11 17:09
progDes10-Feb-11 17:09 
QuestionAdding Member Functions to the .CPP Pin
Ger Hayden10-Feb-11 0:30
Ger Hayden10-Feb-11 0:30 
QuestionAdding a member function in VC++ Express 2010 Pin
Ger Hayden10-Feb-11 0:27
Ger Hayden10-Feb-11 0:27 
QuestionInline processor assembly language in C++/CLI Pin
anti.AS7-Feb-11 21:54
anti.AS7-Feb-11 21:54 
AnswerRe: Inline processor assembly language in C++/CLI Pin
John Schroedl8-Feb-11 5:42
professionalJohn Schroedl8-Feb-11 5:42 
QuestionDifference between IJW and #pragma unmanaged ? Pin
anti.AS7-Feb-11 5:10
anti.AS7-Feb-11 5:10 
AnswerRe: Difference between IJW and #pragma unmanaged ? Pin
Nish Nishant7-Feb-11 5:24
sitebuilderNish Nishant7-Feb-11 5:24 
GeneralRe: Difference between IJW and #pragma unmanaged ? Pin
anti.AS7-Feb-11 9:08
anti.AS7-Feb-11 9:08 
GeneralRe: Difference between IJW and #pragma unmanaged ? Pin
Nish Nishant7-Feb-11 9:16
sitebuilderNish Nishant7-Feb-11 9:16 
GeneralRe: Difference between IJW and #pragma unmanaged ? Pin
anti.AS7-Feb-11 9:36
anti.AS7-Feb-11 9:36 
QuestionWhat is Difference between Managed C++, C++/CLI and C++.Net Pin
Pranit Kothari5-Feb-11 4:26
Pranit Kothari5-Feb-11 4:26 
AnswerRe: What is Difference between Managed C++, C++/CLI and C++.Net Pin
Richard MacCutchan5-Feb-11 5:28
mveRichard MacCutchan5-Feb-11 5:28 
QuestionRe: What is Difference between Managed C++, C++/CLI and C++.Net Pin
Pranit Kothari5-Feb-11 5:59
Pranit Kothari5-Feb-11 5:59 

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.