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

Managed C++/CLI

 
GeneralRe: static __gc[] @#$@ Pin
leppie20-Jul-03 5:01
leppie20-Jul-03 5:01 
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 
or:

__wchar_t __pin * str = &s->ToCharArray()[0];

It's ugly, but a nice hack to convert __gc[] to *.

Note: even though the NULL character is not returned by ToCharArray(), the CLR seems to pin it in some "clear" space. Smile | :)

Any reason why you add the const keyword? Doesnt __pin take care of that?

leppie::AllocCPArticle(Generic DFA State Machine for .NET);
GeneralRe: Convert a String to a char array Pin
Tom Archer20-Jul-03 3:26
Tom Archer20-Jul-03 3:26 
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 

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.