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

Managed C++/CLI

 
GeneralRe: static __gc[] @#$@ Pin
Tom Archer20-Jul-03 5:10
Tom Archer20-Jul-03 5:10 
GeneralProblem Compiling MFC under VC++ .NET Pin
Cristi76200019-Jul-03 4:40
Cristi76200019-Jul-03 4:40 
GeneralRe: Problem Compiling MFC under VC++ .NET Pin
Tom Archer20-Jul-03 3:37
Tom Archer20-Jul-03 3:37 
GeneralRe: Problem Compiling MFC under VC++ .NET Pin
Anonymous20-Jul-03 20:14
Anonymous20-Jul-03 20:14 
GeneralConvert a String to a char array Pin
Slaru18-Jul-03 12:51
Slaru18-Jul-03 12:51 
GeneralRe: Convert a String to a char array Pin
Tom Archer19-Jul-03 4:26
Tom Archer19-Jul-03 4:26 
GeneralRe: Convert a String to a char array Pin
leppie19-Jul-03 22:59
leppie19-Jul-03 22:59 
GeneralRe: Convert a String to a char array Pin
Tom Archer20-Jul-03 3:26
Tom Archer20-Jul-03 3:26 
The PtrToStringChars is more efficient as it simply returns a casted pointer to the string's internal buffer. By comparison, the String::ToCharArray method creates a brand new copy of the string and returns that to the caller.

leppie wrote:
Any reason why you add the const keyword?

The PtrToStringChars function returns a const System::Char* cast of the internal string value.


Cheers,
Tom Archer
Inside C#,
Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
GeneralRe: Convert a String to a char array Pin
leppie20-Jul-03 5:04
leppie20-Jul-03 5:04 
GeneralRe: Convert a String to a char array Pin
Tom Archer20-Jul-03 5:11
Tom Archer20-Jul-03 5:11 
GeneralRe: Convert a String to a char array Pin
Anthony_Yio24-Jul-03 22:29
Anthony_Yio24-Jul-03 22:29 
Generaldebug managed and unmanaged code Pin
jspano17-Jul-03 4:28
jspano17-Jul-03 4:28 
GeneralRe: debug managed and unmanaged code Pin
leppie17-Jul-03 7:37
leppie17-Jul-03 7:37 
GeneralRe: debug managed and unmanaged code Pin
jspano17-Jul-03 7:46
jspano17-Jul-03 7:46 
GeneralRe: debug managed and unmanaged code Pin
Nathan Blomquist17-Jul-03 9:45
Nathan Blomquist17-Jul-03 9:45 
GeneralRe: debug managed and unmanaged code Pin
leppie17-Jul-03 11:05
leppie17-Jul-03 11:05 
GeneralRe: debug managed and unmanaged code Pin
jspano18-Jul-03 4:14
jspano18-Jul-03 4:14 
GeneralRe: debug managed and unmanaged code Pin
jspano18-Jul-03 8:58
jspano18-Jul-03 8:58 
GeneralRe: debug managed and unmanaged code Pin
leppie18-Jul-03 13:13
leppie18-Jul-03 13:13 
GeneralRe: debug managed and unmanaged code Pin
jspano18-Jul-03 15:56
jspano18-Jul-03 15:56 
GeneralRe: debug managed and unmanaged code Pin
jspano18-Jul-03 16:41
jspano18-Jul-03 16:41 
GeneralRe: debug managed and unmanaged code Pin
jspano18-Jul-03 8:56
jspano18-Jul-03 8:56 
GeneralRe: debug managed and unmanaged code Pin
Nathan Blomquist21-Jul-03 1:58
Nathan Blomquist21-Jul-03 1:58 
GeneralRe: debug managed and unmanaged code Pin
jspano21-Jul-03 2:05
jspano21-Jul-03 2:05 
QuestionHow To Efficiently Copy Int32 to unsigned char __gc [] Pin
T R B16-Jul-03 5:56
T R B16-Jul-03 5:56 

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.