Click here to Skip to main content
15,905,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to recognize a original file after changing its file type? Pin
Chris Losinger5-Dec-11 3:31
professionalChris Losinger5-Dec-11 3:31 
GeneralRe: how to recognize a original file after changing its file type? Pin
Le@rner5-Dec-11 18:45
Le@rner5-Dec-11 18:45 
GeneralRe: how to recognize a original file after changing its file type? Pin
Albert Holguin5-Dec-11 3:20
professionalAlbert Holguin5-Dec-11 3:20 
AnswerRe: how to recognize a original file after changing its file type? Pin
User 74293385-Dec-11 7:34
professionalUser 74293385-Dec-11 7:34 
GeneralRe: how to recognize a original file after changing its file type? Pin
Le@rner5-Dec-11 19:12
Le@rner5-Dec-11 19:12 
GeneralRe: how to recognize a original file after changing its file type? Pin
Richard MacCutchan5-Dec-11 22:40
mveRichard MacCutchan5-Dec-11 22:40 
AnswerRe: how to recognize a original file after changing its file type? Pin
Stefan_Lang6-Dec-11 0:01
Stefan_Lang6-Dec-11 0:01 
Questionwifstream with getline - OD OA issue Pin
jkirkerx4-Dec-11 9:14
professionaljkirkerx4-Dec-11 9:14 
I have my getline working, and I have just been schooled in file formats, such as UTF8, UTF16LE and UTF16BE. I also learned about the BOM, to figure out what kind of file I have, in case the customer modifies the original.

So I can use my wifstream to open a UTF8 SQL Text file, and read it correctly, with no 16 bit gaps. I originally used ifstream and wifstream to read a Unicode UC2 file, and got the every other character sequence, So I exported the file as UTF8, and tried again.

The getline puzzles me, and it has something to do with \n.
sqlDBFile->getline(szCommandLine, 1024);


First line reads ok
i>>?--SQL Comment --
second line is missing the first char.
REATE instead of CREATE

Here's my theory
0x000d 0x000A is end/begin mark, and getline is terminating beyond the \n.

I really need that first character, so I can detect the word GO, instead of getting O.
AnswerRe: wifstream with getline - OD OA issue Pin
jkirkerx4-Dec-11 13:19
professionaljkirkerx4-Dec-11 13:19 
AnswerError in RtlZeroMemory [SOLVED] Pin
vishalgpt3-Dec-11 16:59
vishalgpt3-Dec-11 16:59 
AnswerRe: Error in RtlZeroMemory Pin
«_Superman_»3-Dec-11 17:18
professional«_Superman_»3-Dec-11 17:18 
GeneralRe: Error in RtlZeroMemory Pin
vishalgpt3-Dec-11 17:40
vishalgpt3-Dec-11 17:40 
GeneralRe: Error in RtlZeroMemory Pin
Erudite_Eric5-Dec-11 6:24
Erudite_Eric5-Dec-11 6:24 
GeneralRe: Error in RtlZeroMemory Pin
«_Superman_»5-Dec-11 15:50
professional«_Superman_»5-Dec-11 15:50 
GeneralRe: Error in RtlZeroMemory Pin
Erudite_Eric5-Dec-11 22:45
Erudite_Eric5-Dec-11 22:45 
AnswerRe: Error in RtlZeroMemory Pin
Albert Holguin3-Dec-11 19:13
professionalAlbert Holguin3-Dec-11 19:13 
GeneralRe: Error in RtlZeroMemory Pin
vishalgpt3-Dec-11 20:01
vishalgpt3-Dec-11 20:01 
AnswerRe: Error in RtlZeroMemory Pin
Albert Holguin3-Dec-11 20:37
professionalAlbert Holguin3-Dec-11 20:37 
GeneralRe: Error in RtlZeroMemory Pin
vishalgpt3-Dec-11 22:58
vishalgpt3-Dec-11 22:58 
GeneralRe: Error in RtlZeroMemory Pin
Albert Holguin4-Dec-11 8:19
professionalAlbert Holguin4-Dec-11 8:19 
AnswerRe: Error in RtlZeroMemory Pin
Richard MacCutchan3-Dec-11 21:27
mveRichard MacCutchan3-Dec-11 21:27 
GeneralRe: Error in RtlZeroMemory Pin
vishalgpt3-Dec-11 22:51
vishalgpt3-Dec-11 22:51 
GeneralRe: Error in RtlZeroMemory Pin
Richard MacCutchan4-Dec-11 1:26
mveRichard MacCutchan4-Dec-11 1:26 
GeneralRe: Error in RtlZeroMemory Pin
vishalgpt4-Dec-11 2:13
vishalgpt4-Dec-11 2:13 
GeneralRe: Error in RtlZeroMemory Pin
Richard MacCutchan4-Dec-11 2:53
mveRichard MacCutchan4-Dec-11 2:53 

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.