rodneyk1 wrote: LPTSTR p = szChoice.GetBuffer( 10 );//not sure if this is nessecary wcscpy( p, L"Name: "+(szChoice)); //copying szChoice into p so I can cast(what else should I do)? First, this is bad. GetBuffer(10) guarantees you space for atleast 10 characters (20 bytes if UNICODE is defined, 10 otherwise), but you have no idea about the upper limit. Your second line can produce a buffer overrun. A safer way to do this is: szChoice = L"Name: " + szChoice; LPTSTR p = szChoice.GetBuffer( 10 ); Although I wouldnt recommend it either. rodneyk1 wrote: const char *val = reinterpret_cast(p);//Casting p into a 'char' so I can print to file The template argument to reinterpret_cast was lost, but Im guessing that you had char* or const char* there. The deal is that just because you can cast a LPTSTR variable (which stands for long pointer to T string, ie wchar_t* on wince) to a const char* variable does not convert the data pointed to by said variable to char's. rodneyk1 wrote: strcpy(buffer2, val);//copying val into buffer 2 (I dont see where you declare buffer2, but I will assume it's declared as char buffer2[255]; ) So, here we have val (const char*), which is pointing to the same memory area as p (wchar_t*), which points to whatever memory szChoice.GetBuffer() provides (also wchar_t*). So, if we examine the memory that val points to, it should look something like: 'N', 0, 'a', 0, 'm', ... which means that strcpy will grab the first character and then reach the 0-terminator => strcpy appends a \0 to buffer2 and then return. rodneyk1 wrote: WriteFile(hFile, buffer2, (szChoice.GetLength()), &dwBytesWritten, 0); Here, WriteFile will write 'N', 0 and then whatever garbage that buffer2 contains after the 0, until it has written szChoice.GetLength() characters. You can examine your file in a hex-editor to see what it has written, possibly all 0's after the 'N', depending on how buffer2 was declared. In short, you should read up on WideCharToMultiByte, and also look into fixing your memory managent issues. HTH Jonas --- “Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002