Click here to Skip to main content
15,893,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralScrollbar Pin
DougW4823-Jun-03 12:29
DougW4823-Jun-03 12:29 
GeneralRe: Scrollbar Pin
Ryan Binns23-Jun-03 13:34
Ryan Binns23-Jun-03 13:34 
QuestionTouch screen tools?? Pin
John P Larson23-Jun-03 12:16
John P Larson23-Jun-03 12:16 
GeneralCSplitterWnd without the separating bars Pin
Florin Ochiana23-Jun-03 11:52
Florin Ochiana23-Jun-03 11:52 
GeneralRe: CSplitterWnd without the separating bars Pin
Stlan24-Jun-03 3:06
Stlan24-Jun-03 3:06 
GeneralGetCurrentMethod Pin
RK_200023-Jun-03 11:22
RK_200023-Jun-03 11:22 
GeneralRe: GetCurrentMethod Pin
Dave Bryant23-Jun-03 11:45
Dave Bryant23-Jun-03 11:45 
QuestionHow to get file length of file without using CFile::end.. Pin
IrishSonic23-Jun-03 11:14
IrishSonic23-Jun-03 11:14 
Hiya I have a global variable in my lib called 'end'. I really need to have it there, otherwise I would just take it out. My problem is that I need to get the lenght of my file in bytes, so I use

ReadFile.Seek( 0,CFile::end );
MyFileSize = ReadFile.GetPosition();

But this is giving me a error of "constant: illegal token on right side of '::', because of my global variable named the same.

Is there another way to get the lenght of my file without using CFile::end in MFC??

Thanks.


AnswerRe: How to get file length of file without using CFile::end.. Pin
Dave Bryant23-Jun-03 11:18
Dave Bryant23-Jun-03 11:18 
GeneralThanks Dave, perfect!! Pin
IrishSonic23-Jun-03 11:53
IrishSonic23-Jun-03 11:53 
AnswerRe: How to get file length of file without using CFile::end.. Pin
basementman23-Jun-03 13:23
basementman23-Jun-03 13:23 
AnswerRe: How to get file length of file without using CFile::end.. Pin
Anonymous24-Jun-03 5:42
Anonymous24-Jun-03 5:42 
GeneralProblems with drop down box Pin
Tom Wright23-Jun-03 10:58
Tom Wright23-Jun-03 10:58 
GeneralRe: Problems with drop down box Pin
Dave Bryant23-Jun-03 11:16
Dave Bryant23-Jun-03 11:16 
GeneralRe: Problems with drop down box Pin
Tom Wright23-Jun-03 11:25
Tom Wright23-Jun-03 11:25 
GeneralRe: Problems with drop down box Pin
Dave Bryant23-Jun-03 11:29
Dave Bryant23-Jun-03 11:29 
GeneralRe: Problems with drop down box Pin
Tom Wright23-Jun-03 11:34
Tom Wright23-Jun-03 11:34 
GeneralRe: Problems with drop down box Pin
Dave Bryant23-Jun-03 11:38
Dave Bryant23-Jun-03 11:38 
GeneralRe: Problems with drop down box Pin
Tom Wright23-Jun-03 11:54
Tom Wright23-Jun-03 11:54 
GeneralRe: Problems with drop down box Pin
basementman23-Jun-03 16:26
basementman23-Jun-03 16:26 
GeneralRe: Problems with drop down box Pin
Dave Bryant23-Jun-03 16:31
Dave Bryant23-Jun-03 16:31 
GeneralMAPI Pin
act_x23-Jun-03 10:07
act_x23-Jun-03 10:07 
GeneralRe: MAPI Pin
David Crow23-Jun-03 10:24
David Crow23-Jun-03 10:24 
GeneralMFC & ATL + Netware problem Pin
Brian Shifrin23-Jun-03 9:56
Brian Shifrin23-Jun-03 9:56 
GeneralDo you know HLP95EN.DLL Pin
algruber23-Jun-03 9:51
algruber23-Jun-03 9:51 

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.