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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to convert the C++ string to CTS (Common Type System) System.String used by .NET.
See this