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

Managed C++/CLI

 
GeneralRe: Execute managed function from unmanaged Pin
yoti1126-Dec-06 7:21
yoti1126-Dec-06 7:21 
Questioncalling String ^ * from C# Pin
ByStorm Software25-Dec-06 18:09
ByStorm Software25-Dec-06 18:09 
AnswerRe: calling String ^ * from C# Pin
bsaksida26-Dec-06 20:47
bsaksida26-Dec-06 20:47 
GeneralRe: calling String ^ * from C# Pin
ByStorm Software27-Dec-06 5:27
ByStorm Software27-Dec-06 5:27 
GeneralRe: calling String ^ * from C# Pin
bsaksida27-Dec-06 5:35
bsaksida27-Dec-06 5:35 
GeneralRe: calling String ^ * from C# Pin
ByStorm Software27-Dec-06 5:42
ByStorm Software27-Dec-06 5:42 
GeneralRe: calling String ^ * from C# Pin
bsaksida27-Dec-06 6:40
bsaksida27-Dec-06 6:40 
GeneralRe: calling String ^ * from C# Pin
ByStorm Software27-Dec-06 7:12
ByStorm Software27-Dec-06 7:12 
I figured it out. if you want to pass variables around as reference in C++/CLI you have to mark them with a %.

so instead of
void GetName(String ^ * name)
{
*name = "sam";
}

you do this:
void GetName(String^% name)
{
name = "Sam";
}

then you call it from c# like this:
String nameStr;
GetName(ref nameStr);

GeneralRe: calling String ^ * from C# Pin
RockyMu1-Jul-22 16:01
RockyMu1-Jul-22 16:01 
Questionhandling system call result in C Pin
xface6625-Dec-06 9:08
xface6625-Dec-06 9:08 
AnswerRe: handling system call result in C Pin
xface6625-Dec-06 9:52
xface6625-Dec-06 9:52 
GeneralRe: handling system call result in C Pin
Christian Graus25-Dec-06 11:41
mveChristian Graus25-Dec-06 11:41 
GeneralRe: handling system call result in C Pin
xface6625-Dec-06 13:36
xface6625-Dec-06 13:36 
GeneralRe: handling system call result in C Pin
John R. Shaw26-Dec-06 2:03
John R. Shaw26-Dec-06 2:03 
GeneralRe: handling system call result in C Pin
Christian Graus26-Dec-06 10:27
mveChristian Graus26-Dec-06 10:27 
Questionmupad problem Pin
vasfar24-Dec-06 11:34
vasfar24-Dec-06 11:34 
AnswerRe: mupad problem Pin
Christian Graus25-Dec-06 11:40
mveChristian Graus25-Dec-06 11:40 
GeneralRe: mupad problem Pin
Paul Conrad25-Dec-06 18:49
professionalPaul Conrad25-Dec-06 18:49 
GeneralRe: mupad problem Pin
bsaksida26-Dec-06 11:46
bsaksida26-Dec-06 11:46 
GeneralRe: mupad problem Pin
Paul Conrad26-Dec-06 17:14
professionalPaul Conrad26-Dec-06 17:14 
QuestionHow To Display A Dialog Form? Pin
Nonreturn23-Dec-06 18:39
Nonreturn23-Dec-06 18:39 
AnswerRe: How To Display A Dialog Form? Pin
Christian Graus23-Dec-06 20:12
mveChristian Graus23-Dec-06 20:12 
GeneralRe: How To Display A Dialog Form? Pin
Nonreturn23-Dec-06 20:28
Nonreturn23-Dec-06 20:28 
GeneralRe: How To Display A Dialog Form? Pin
Christian Graus23-Dec-06 22:06
mveChristian Graus23-Dec-06 22:06 
GeneralRe: How To Display A Dialog Form? Pin
Nonreturn24-Dec-06 4:33
Nonreturn24-Dec-06 4:33 

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.