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

C / C++ / MFC

 
GeneralRe: Help, unresolved externals Pin
nicoster25-Jun-03 23:16
nicoster25-Jun-03 23:16 
Generalconsole .exe won't run properly Pin
DaveE9th25-Jun-03 8:19
DaveE9th25-Jun-03 8:19 
GeneralRe: console .exe won't run properly Pin
User 665825-Jun-03 8:26
User 665825-Jun-03 8:26 
GeneralRe: console .exe won't run properly Pin
DaveE9th25-Jun-03 8:39
DaveE9th25-Jun-03 8:39 
GeneralRe: console .exe won't run properly Pin
pf725-Jun-03 9:14
pf725-Jun-03 9:14 
GeneralRe: console .exe won't run properly Pin
keegan25-Jun-03 9:19
keegan25-Jun-03 9:19 
GeneralRe: console .exe won't run properly Pin
Scozturk25-Jun-03 9:53
professionalScozturk25-Jun-03 9:53 
GeneralCStdioFile::GetPosition always returns 0xffffffff Pin
kydfru25-Jun-03 8:07
kydfru25-Jun-03 8:07 
CString strFileDirs = "dirs.data";<br />
char szBuf[_MAX_PATH];<br />
<br />
TRY {<br />
	CStdioFile fileDirs(strFileDirs, CFile::modeRead);<br />
	while(fileDirs.ReadString(szBuf, _MAX_PATH)){<br />
		ULONGLONG dwSavedPos = 0;<br />
		dwSavedPos = fileDirs.GetPosition();<br />
<br />
		TRACE("seek: %u\n", dwSavedPos); // prints "seek: 4294967270"<br />
		fileDirs.SeekToBegin();<br />
		fileDirs.Seek(dwSavedPos, CFile::begin); // this throws the CFileExceptions<br />
	}<br />
	fileDirs.Close();<br />
}<br />
CATCH (CFileException, pE) {<br />
	pE->ReportError(MB_ICONSTOP, IDS_FILE_ERROR);<br />
}<br />
END_CATCH<br />

Confused | :confused:
What I'm doing wrong?

GeneralRe: CStdioFile::GetPosition always returns 0xffffffff Pin
David Crow25-Jun-03 8:11
David Crow25-Jun-03 8:11 
GeneralNow it prints seek: 18446744073709551590 (2**63?) Pin
kydfru25-Jun-03 8:24
kydfru25-Jun-03 8:24 
GeneralRe: Now it prints seek: 18446744073709551590 (2**63?) Pin
David Crow25-Jun-03 8:50
David Crow25-Jun-03 8:50 
Generalprints 2**32 because DWORD is 32-bit int Pin
kydfru25-Jun-03 19:49
kydfru25-Jun-03 19:49 
GeneralRe: prints 2**32 because DWORD is 32-bit int Pin
David Crow26-Jun-03 3:00
David Crow26-Jun-03 3:00 
GeneralCScrollbar, and OnHScroll Pin
olle25-Jun-03 7:58
olle25-Jun-03 7:58 
GeneralRe: CScrollbar, and OnHScroll Pin
keegan25-Jun-03 8:07
keegan25-Jun-03 8:07 
GeneralRe: CScrollbar, and OnHScroll Pin
David Crow25-Jun-03 8:08
David Crow25-Jun-03 8:08 
GeneralRe: CScrollbar, and OnHScroll Pin
olle25-Jun-03 8:26
olle25-Jun-03 8:26 
General'memset' vs '= {0}' Pin
Atlantys25-Jun-03 7:36
Atlantys25-Jun-03 7:36 
GeneralRe: 'memset' vs '= {0}' Pin
Joe Woodbury25-Jun-03 7:51
professionalJoe Woodbury25-Jun-03 7:51 
GeneralRe: 'memset' vs '= {0}' Pin
Atlantys25-Jun-03 8:36
Atlantys25-Jun-03 8:36 
GeneralRe: stosd Pin
Joe Woodbury25-Jun-03 8:41
professionalJoe Woodbury25-Jun-03 8:41 
GeneralRe: 'memset' vs '= {0}' Pin
Jim Crafton25-Jun-03 7:56
Jim Crafton25-Jun-03 7:56 
GeneralRe: 'memset' vs '= {0}' Pin
David Crow25-Jun-03 8:13
David Crow25-Jun-03 8:13 
GeneralRe: 'memset' vs '= {0}' Pin
John R. Shaw25-Jun-03 8:34
John R. Shaw25-Jun-03 8:34 
GeneralRe: 'memset' vs '= {0}' Pin
Atlantys25-Jun-03 8:37
Atlantys25-Jun-03 8:37 

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.