tags:

views:

49

answers:

2

Hi. I have this code.

char* cbuffer;
wchar_t* wbuffer;     
cbuffer = _getcwd(NULL, 0);
wbuffer = _wgetcwd(NULL, 0);

Also, I have textbox1 and textbox2. How can I put cbuffer in textbox1 and wbuffer in textbox2. Thanks.

A: 

What is the type of textbox1 and textbox2?

maniac_inside
A: 

You have to convert the C++ string to CTS (Common Type System) System.String used by .NET.

See this

CommanderZ
Thanks, thats what I need.