Pages

Search This Blog

Saturday, July 17, 2010

Convert CString to char array

Again, when use CString, remember to include afxwin.h

char csRoom [20];
BSTR sRoom = "102";

CString myString1(sRoom);
strcpy(csRoom,myString1);

now, value from CString copied to char array

No comments: