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

Managed C++/CLI

 
QuestionGetByteArrayFromVariantArray Pin
weehau28-Nov-06 23:46
weehau28-Nov-06 23:46 
AnswerRe: GetByteArrayFromVariantArray Pin
Christian Graus29-Nov-06 0:02
protectorChristian Graus29-Nov-06 0:02 
QuestionSystem::String^ to const WCHAR* ? Pin
Fritzables28-Nov-06 19:11
Fritzables28-Nov-06 19:11 
AnswerRe: System::String^ to const WCHAR* ? Pin
led mike29-Nov-06 5:39
led mike29-Nov-06 5:39 
GeneralRe: System::String^ to const WCHAR* ? Pin
Fritzables29-Nov-06 10:59
Fritzables29-Nov-06 10:59 
GeneralRe: System::String^ to const WCHAR* ? Pin
led mike30-Nov-06 5:12
led mike30-Nov-06 5:12 
AnswerRe: System::String^ to const WCHAR* ? [modified] Pin
George L. Jackson29-Nov-06 12:50
George L. Jackson29-Nov-06 12:50 
AnswerRe: System::String^ to const WCHAR* ? Pin
uusheikh30-Nov-06 20:22
uusheikh30-Nov-06 20:22 
I use this easy way, but it is not recommended for large strings.


String ^s = "Hello world";<br />
CString str = s;<br />
WCHAR *w  = str.GetBuffer();<br />
WCHAR *myChar = new WCHAR[str.GetLength() +1];<br />
memcpy(myChar,w,str.GetLength()*sizeof(WCHAR));<br />
myChar[str.GetLength()] = '\0';<br />
<br />
// Just display the WCHAR			<br />
AfxMessageBox(myChar);

GeneralRe: System::String^ to const WCHAR* ? Pin
Fritzables30-Nov-06 20:24
Fritzables30-Nov-06 20:24 
QuestionStorage Class Trivia Pin
Pratheep Kenny28-Nov-06 18:14
Pratheep Kenny28-Nov-06 18:14 
AnswerRe: Storage Class Trivia Pin
George L. Jackson29-Nov-06 15:37
George L. Jackson29-Nov-06 15:37 
Questioni need creating a database myself,i need make a database from scratch , can u give me some help please? Pin
jingguangdadao28-Nov-06 1:57
jingguangdadao28-Nov-06 1:57 
AnswerRe: i need creating a database myself,i need make a database from scratch , can u give me some help please? Pin
George L. Jackson28-Nov-06 13:26
George L. Jackson28-Nov-06 13:26 
GeneralRe: i need creating a database myself,i need make a database from scratch , can u give me some help please? Pin
Paul Conrad28-Nov-06 14:55
professionalPaul Conrad28-Nov-06 14:55 
QuestionTo port a C++ application developed in Windows to Linux Pin
syampj27-Nov-06 22:03
syampj27-Nov-06 22:03 
AnswerRe: To port a C++ application developed in Windows to Linux Pin
CPallini28-Nov-06 0:13
mveCPallini28-Nov-06 0:13 
AnswerRe: To port a C++ application developed in Windows to Linux Pin
Paul Conrad28-Nov-06 15:07
professionalPaul Conrad28-Nov-06 15:07 
QuestionRun an Exe from Windows service Pin
nsurendran27-Nov-06 19:12
nsurendran27-Nov-06 19:12 
QuestionRe: Run an Exe from Windows service Pin
George L. Jackson28-Nov-06 13:48
George L. Jackson28-Nov-06 13:48 
Questionhow to make bouncing ball? Pin
psychodoctor27-Nov-06 1:10
psychodoctor27-Nov-06 1:10 
AnswerRe: how to make bouncing ball? Pin
George L. Jackson27-Nov-06 11:52
George L. Jackson27-Nov-06 11:52 
QuestionGetPixel in CLI Pin
Epi26-Nov-06 23:13
Epi26-Nov-06 23:13 
AnswerRe: GetPixel in CLI Pin
Christian Graus27-Nov-06 20:07
protectorChristian Graus27-Nov-06 20:07 
GeneralRe: GetPixel in CLI Pin
Epi27-Nov-06 21:23
Epi27-Nov-06 21:23 
AnswerRe: Has any one used RedmonEE Pin
Christian Graus26-Nov-06 8:33
protectorChristian Graus26-Nov-06 8: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.