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

C / C++ / MFC

 
GeneralRe: Conversion.. Pin
Ted Ferenc26-Jun-03 0:38
Ted Ferenc26-Jun-03 0:38 
GeneralRe: Conversion.. Pin
peterchen26-Jun-03 9:11
peterchen26-Jun-03 9:11 
GeneralRe: Conversion.. Pin
Ryan Binns26-Jun-03 0:50
Ryan Binns26-Jun-03 0:50 
GeneralRe: Conversion.. Pin
Anonymous26-Jun-03 2:14
Anonymous26-Jun-03 2:14 
GeneralRe: Conversion.. Pin
Ryan Binns26-Jun-03 2:22
Ryan Binns26-Jun-03 2:22 
GeneralRe: Conversion.. Pin
Anonymous26-Jun-03 6:10
Anonymous26-Jun-03 6:10 
GeneralRe: Conversion.. Pin
basementman26-Jun-03 6:42
basementman26-Jun-03 6:42 
GeneralI have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
kydfru25-Jun-03 20:37
kydfru25-Jun-03 20:37 
If the text file have UNIX format (i.e. \n instead of \r\n) then CStdioFile::GetPosition() always returns maximum value for 64 bit int, i.e. 2**64 AFTER a call to CStdioFile::ReadString().
If there was not any previous call to ReadString then all works fine.

In the original docs the no any clear information about this.
What you think about this?

<br />
	CStdioFile file("C:\\file.ext", CFile::modeRead);<br />
	file.ReadString(szBuf, 255);<br />
	ULONGLONG dwPos = file.GetPosition();<br />
	TRACE("dwPos=%I64u\n", dwPos); // prints 2**64<br />
	file.Close();<br />

GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
Ryan Binns26-Jun-03 0:56
Ryan Binns26-Jun-03 0:56 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
kydfru26-Jun-03 1:27
kydfru26-Jun-03 1:27 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
Ryan Binns26-Jun-03 1:49
Ryan Binns26-Jun-03 1:49 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
wheregone26-Jun-03 1:52
wheregone26-Jun-03 1:52 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
kydfru26-Jun-03 2:26
kydfru26-Jun-03 2:26 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
wheregone26-Jun-03 5:27
wheregone26-Jun-03 5:27 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
kydfru26-Jun-03 7:28
kydfru26-Jun-03 7:28 
GeneralRe: I have discovered a BUG (or at least a strange behavour in CStdioFile)! Pin
wheregone26-Jun-03 14:22
wheregone26-Jun-03 14:22 
QuestionHow to determine whether a file is an executable by examining the file extension? Pin
dandy7725-Jun-03 20:28
dandy7725-Jun-03 20:28 
AnswerRe: How to determine whether a file is an executable by examining the file extension? Pin
Toni7825-Jun-03 21:56
Toni7825-Jun-03 21:56 
GeneralRe: How to determine whether a file is an executable by examining the file extension? Pin
dandy7725-Jun-03 22:20
dandy7725-Jun-03 22:20 
GeneralRe: How to determine whether a file is an executable by examining the file extension? Pin
Toni7826-Jun-03 21:23
Toni7826-Jun-03 21:23 
AnswerRe: How to determine whether a file is an executable by examining the file extension? Pin
Joaquín M López Muñoz25-Jun-03 23:14
Joaquín M López Muñoz25-Jun-03 23:14 
GeneralRasDial function Pin
no_body6925-Jun-03 19:35
no_body6925-Jun-03 19:35 
GeneralRe: RasDial function Pin
Joaquín M López Muñoz25-Jun-03 23:46
Joaquín M López Muñoz25-Jun-03 23:46 
GeneralRe: RasDial function Pin
no_body6926-Jun-03 0:31
no_body6926-Jun-03 0:31 
GeneralRe: RasDial function Pin
Joaquín M López Muñoz26-Jun-03 0:36
Joaquín M López Muñoz26-Jun-03 0:36 

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.