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

Managed C++/CLI

 
Questiongcnew and delete Pin
John Robert Wilk27-Feb-11 6:10
John Robert Wilk27-Feb-11 6:10 
AnswerRe: gcnew and delete Pin
N a v a n e e t h27-Feb-11 6:32
N a v a n e e t h27-Feb-11 6:32 
GeneralRe: gcnew and delete Pin
John Robert Wilk27-Feb-11 6:48
John Robert Wilk27-Feb-11 6:48 
QuestionEquivqlent of MSXML.XMLHTTPRequest Pin
T.RATHA KRISHNAN25-Feb-11 0:18
T.RATHA KRISHNAN25-Feb-11 0:18 
AnswerRe: Equivqlent of MSXML.XMLHTTPRequest Pin
N a v a n e e t h27-Feb-11 6:35
N a v a n e e t h27-Feb-11 6:35 
GeneralRe: Equivqlent of MSXML.XMLHTTPRequest Pin
T.RATHA KRISHNAN28-Feb-11 0:26
T.RATHA KRISHNAN28-Feb-11 0:26 
QuestionConfusing between Native and Managed !?? Pin
anti.AS23-Feb-11 1:28
anti.AS23-Feb-11 1:28 
AnswerRe: Confusing between Native and Managed !?? Pin
N a v a n e e t h23-Feb-11 17:45
N a v a n e e t h23-Feb-11 17:45 
Good question!

anti.AS wrote:
Would the type int be mapped to System::Int32

Yes. By default compiler treat it as managed integer. And what type of interger is implementation defined. On a 32 bit machine you could get System.Int32 and Int64 on 64 bit machines. Now consider the following example
int x = 3;
std::cout << x;
std::cout expects a native integer and you are passing a managed one. So the compiler does the conversion for you.

anti.AS wrote:
and what about char ch ?

This will be compiled as System.SByte.

anti.AS wrote:
We see that int arr[] is a native array

int arr[]="Hi"; is an invalid statement. But in general, this is treated as a managed CLI array.

anti.AS wrote:
The last question Wink ,, For both the managed array ManArr1 & ManArr2 what is the difference between the two initialization ??

Nothing. First one is a syntactic sugar.

Hope that helps Smile | :)
Best wishes,
Navaneeth

GeneralRe: Confusing between Native and Managed !?? Pin
anti.AS24-Feb-11 7:10
anti.AS24-Feb-11 7:10 
QuestionReading an XML file Pin
T.RATHA KRISHNAN20-Feb-11 22:29
T.RATHA KRISHNAN20-Feb-11 22:29 
AnswerRe: Reading an XML file Pin
John Schroedl21-Feb-11 4:31
professionalJohn Schroedl21-Feb-11 4:31 
QuestionIs there a better way to do this? Pin
John Schroedl18-Feb-11 10:34
professionalJohn Schroedl18-Feb-11 10:34 
AnswerRe: Is there a better way to do this? Pin
Philippe Mori10-Mar-11 15:08
Philippe Mori10-Mar-11 15:08 
GeneralRe: Is there a better way to do this? Pin
John Schroedl10-Mar-11 15:20
professionalJohn Schroedl10-Mar-11 15:20 
QuestionNetwork Communication Pin
pix_programmer17-Feb-11 18:50
pix_programmer17-Feb-11 18:50 
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 
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 

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.