Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help! How to build a VC++ program from the command line Pin
Wayne Jin2-May-05 14:06
Wayne Jin2-May-05 14:06 
GeneralRe: Help! How to build a VC++ program from the command line Pin
Christian Graus2-May-05 14:09
protectorChristian Graus2-May-05 14:09 
GeneralRe: Help! How to build a VC++ program from the command line Pin
Wayne Jin2-May-05 14:28
Wayne Jin2-May-05 14:28 
GeneralHelp getting Unicode FILENAMES into an array Pin
stvprg2-May-05 13:09
stvprg2-May-05 13:09 
GeneralRe: Help getting Unicode FILENAMES into an array Pin
Ryan Binns2-May-05 18:31
Ryan Binns2-May-05 18:31 
GeneralRe: Help getting Unicode FILENAMES into an array Pin
stvprg2-May-05 19:24
stvprg2-May-05 19:24 
GeneralRe: Help getting Unicode FILENAMES into an array Pin
Ryan Binns3-May-05 0:14
Ryan Binns3-May-05 0:14 
GeneralHelp to get WIN32_FIND_DATAW FindFileData from FindFirstFilesW into a file Pin
stvprg4-May-05 7:32
stvprg4-May-05 7:32 
Thank you, that L"*" suggestion really worked well. That solved the problem with getting the file handle that FindFirstFileW returns.
I tried all yesterday using TCHAR, turning binary write mode on/off and all sorts of unconventional programming methods to put FindFileData.cFileName into an array and/or file without success.
Try not to laugh but the closest I came to writting something close to unicode text with iostream was from the following code.

TCHAR tch = ' ';
int x=0;
while ((tch=FindFileData.cFileName[x])!=0)
{
outfile.put(FindFileData.cFileName[x++]); }
outfile << endl;

I've even tried outfile.put(tch) and outfile << etc every way I could imagine to try to write this to a file. I got alot of interesting files and even some close ones where the ascii chars read okay but the unicode multilangual chars were wrong, probably because they were being truncated or cut from a 4 3 2 byte into a 1 byte char.
I'm trying to write a simple console program.
How can I get the unicode TCHAR written onto a file using ofstream? Or is there a simpler way of doing this.
GeneralRe: Help to get WIN32_FIND_DATAW FindFileData from FindFirstFilesW into a file Pin
Ryan Binns4-May-05 23:39
Ryan Binns4-May-05 23:39 
GeneralAvailable DLL / C++-SourceCode for 3D-presentation of rectangular solids of different sizes Pin
Roland F.2-May-05 12:26
Roland F.2-May-05 12:26 
GeneralRe: Available DLL / C++-SourceCode for 3D-presentation of rectangular solids of different sizes Pin
Christian Graus2-May-05 13:20
protectorChristian Graus2-May-05 13:20 
Generali still need just a little help Pin
Anonymous2-May-05 11:58
Anonymous2-May-05 11:58 
GeneralRe: i still need just a little help Pin
Christian Graus2-May-05 13:23
protectorChristian Graus2-May-05 13:23 
GeneralRe: i still need just a little help Pin
Anonymous2-May-05 14:25
Anonymous2-May-05 14:25 
GeneralRe: i still need just a little help Pin
Christian Graus2-May-05 14:32
protectorChristian Graus2-May-05 14:32 
GeneralRe: i still need just a little help Pin
Anonymous2-May-05 15:06
Anonymous2-May-05 15:06 
GeneralRe: i still need just a little help Pin
Christian Graus2-May-05 15:31
protectorChristian Graus2-May-05 15:31 
QuestionUrgent ! How to instanciate an OCX control in an Office app? Pin
turenne2-May-05 11:50
turenne2-May-05 11:50 
GeneralMenu+Bitmaps recommendation Pin
peterchen2-May-05 11:43
peterchen2-May-05 11:43 
GeneralWMI Pin
Alex_Y2-May-05 8:40
Alex_Y2-May-05 8:40 
QuestionByte Chunker? Pin
OutlawTornNMT2-May-05 7:46
OutlawTornNMT2-May-05 7:46 
AnswerRe: Byte Chunker? Pin
Christian Graus2-May-05 13:24
protectorChristian Graus2-May-05 13:24 
QuestionHow to use &quot;Windows classic&quot; look on XP? Pin
Alan C. Balkany2-May-05 7:44
Alan C. Balkany2-May-05 7:44 
AnswerRe: How to use &quot;Windows classic&quot; look on XP? Pin
Ravi Bhavnani2-May-05 8:15
professionalRavi Bhavnani2-May-05 8:15 
GeneralRe: How to use &quot;Windows classic&quot; look on XP? Pin
Alan C. Balkany2-May-05 8:22
Alan C. Balkany2-May-05 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.