MFC

I am working from a code example i found but it uses the following function from the mfc -
WCHAR sn[9];
CString serial;

serial.Format(_T("%ws"), sn);

I am using VS2010 express so the CString type is not available to me, could someone help me figure out an equivalent piece of code without the use of CString.
Thanks,
Eamonn
Last edited on
Presumably, sn is filled in with some wide string value.

The code fills in the serial with the same value as sn. The equivalent C code is:
1
2
wchar_t serial[10];
wcscpy(serial, sn);


The real question is, what is serial used for later on?
It looks like it's just copying the string in sn to serial.
Topic archived. No new replies allowed.