char* or wchar_t* to textbox
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.
You have to convert the C++ string to CTS (Common Type System) System.String used by .NET.
See this
精彩评论