I am unable to convert the char * to CString.. the last 2 print lines print nothing...I need it as part of cstring to be able to pass it to a function..
char result[500];
strcpy(result, "\\\\.\\pipe\\");
strcat(result, a["BLOB"][i].GetString());// just appending to "result" a string I am reading from json file..
CString temp(result);
printf("\n1-The pipeName we are looking at is %s \n", result);
printf("\n2-The pipeName we are looking at is %s \n", temp);
printf("\n3-The pipeName we are looking at is %s \n", CString(result,500));
CStringand where does it come from? It's not part of standard C++.CStringand.GetString(), I am assuming this is referring to WinAPI, and have added the tag... a complete example (with includes) would have clarified that.