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

Managed C++/CLI

 
AnswerRe: Context sensitive keywords and mixed mode programming Pin
George L. Jackson6-Dec-06 14:51
George L. Jackson6-Dec-06 14:51 
GeneralRe: Context sensitive keywords and mixed mode programming Pin
User 5838526-Dec-06 14:57
User 5838526-Dec-06 14:57 
GeneralRe: Context sensitive keywords and mixed mode programming [modified] Pin
George L. Jackson6-Dec-06 15:28
George L. Jackson6-Dec-06 15:28 
GeneralRe: Context sensitive keywords and mixed mode programming Pin
User 5838526-Dec-06 17:37
User 5838526-Dec-06 17:37 
QuestionCopying data from unmanaged to managed Pin
kristmun6-Dec-06 4:48
kristmun6-Dec-06 4:48 
AnswerRe: Copying data from unmanaged to managed Pin
Nish Nishant6-Dec-06 5:58
sitebuilderNish Nishant6-Dec-06 5:58 
AnswerRe: Copying data from unmanaged to managed Pin
led mike6-Dec-06 7:29
led mike6-Dec-06 7:29 
GeneralRe: Copying data from unmanaged to managed Pin
kristmun8-Dec-06 5:51
kristmun8-Dec-06 5:51 
Hi guys,
thanks for the advice.
It works now using the Copy method
<br />
array<unsigned char>^ value = {'a','b','c'};<br />
char* ptr = new char[value->Length];<br />
Marshal::Copy(value,0,(IntPtr)ptr,value->Length);<br />

and the other way around
<br />
int length = 3;<br />
char str[] =  {'d','e','f'};<br />
char* pStr = &str[0];<br />
array<unsigned char>^ strArr = gcnew array<unsigned char>(length);<br />
Marshal::Copy((IntPtr)pStr,strArr,0,length);<br />


I didn't quite get the value class way Sigh | :sigh:
Questionstd not recognized Pin
Anil_vvs6-Dec-06 0:12
Anil_vvs6-Dec-06 0:12 
AnswerRe: std not recognized Pin
Christian Graus6-Dec-06 0:23
protectorChristian Graus6-Dec-06 0:23 
GeneralRe: std not recognized Pin
Anil_vvs6-Dec-06 0:56
Anil_vvs6-Dec-06 0:56 
GeneralRe: std not recognized Pin
Nish Nishant6-Dec-06 6:00
sitebuilderNish Nishant6-Dec-06 6:00 
GeneralRe: std not recognized Pin
Christian Graus6-Dec-06 9:34
protectorChristian Graus6-Dec-06 9:34 
GeneralRe: std not recognized Pin
Anil_vvs6-Dec-06 18:18
Anil_vvs6-Dec-06 18:18 
GeneralRe: std not recognized Pin
Christian Graus6-Dec-06 18:27
protectorChristian Graus6-Dec-06 18:27 
GeneralRe: std not recognized Pin
Anil_vvs6-Dec-06 18:55
Anil_vvs6-Dec-06 18:55 
GeneralRe: std not recognized Pin
Christian Graus6-Dec-06 19:01
protectorChristian Graus6-Dec-06 19:01 
GeneralRe: std not recognized Pin
Anil_vvs6-Dec-06 19:52
Anil_vvs6-Dec-06 19:52 
QuestionHelp with converting GMT time to AEDT time in c++ Pin
dusty1435-Dec-06 18:49
dusty1435-Dec-06 18:49 
AnswerRe: Help with converting GMT time to AEDT time in c++ Pin
User 5838525-Dec-06 19:41
User 5838525-Dec-06 19:41 
Questionmemory & handle increase when using IXMLDOMDocument::load(), Pin
neerajkchauhan4-Dec-06 18:18
neerajkchauhan4-Dec-06 18:18 
AnswerRe: memory & handle increase when using IXMLDOMDocument::load(), Pin
George L. Jackson5-Dec-06 0:37
George L. Jackson5-Dec-06 0:37 
Questionundefined reference... [modified] Pin
thathvamsi4-Dec-06 17:03
thathvamsi4-Dec-06 17:03 
AnswerRe: undefined reference... Pin
Christian Graus4-Dec-06 18:46
protectorChristian Graus4-Dec-06 18:46 
GeneralRe: undefined reference... Pin
thathvamsi4-Dec-06 19:08
thathvamsi4-Dec-06 19:08 

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.