Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: thread safe lazy singleton intialization Pin
Neville Franks13-Oct-04 9:31
Neville Franks13-Oct-04 9:31 
GeneralRe: thread safe lazy singleton intialization Pin
Joaquín M López Muñoz13-Oct-04 10:01
Joaquín M López Muñoz13-Oct-04 10:01 
GeneralRe: thread safe lazy singleton intialization Pin
Neville Franks13-Oct-04 10:29
Neville Franks13-Oct-04 10:29 
GeneralRe: thread safe lazy singleton intialization Pin
peterchen13-Oct-04 9:51
peterchen13-Oct-04 9:51 
GeneralRe: thread safe lazy singleton intialization Pin
Neville Franks13-Oct-04 10:54
Neville Franks13-Oct-04 10:54 
GeneralRe: thread safe lazy singleton intialization Pin
peterchen13-Oct-04 2:24
peterchen13-Oct-04 2:24 
General2 questions about working with files Pin
Ernesto D.12-Oct-04 21:51
Ernesto D.12-Oct-04 21:51 
GeneralRe: 2 questions about working with files Pin
Graham Bradshaw12-Oct-04 22:18
Graham Bradshaw12-Oct-04 22:18 
1. To get the size of a file, take a look at the _stat function, and the st_size member of the structure it populates.

2. Will an integer overflow? Depends on the compiler. The ANSI standard basically says that an integer can be whatever size the compiler manufacturer wants it to be. In early versions of Visual C++, targetting Windows 3, it was 16 bits. In a specialist compiler for an embedded system, it might only be 8 bits. In Visual C++ 6, its 32 bits. So provided you are using a modern version of Visual C++, you shouldn't have a problem.

3. Not a huge expert on non-Windows C++ development, but I would imagine that anything that uses the STL would be portable.
GeneralRe: 2 questions about working with files Pin
Ernesto D.13-Oct-04 7:05
Ernesto D.13-Oct-04 7:05 
GeneralRe: 2 questions about working with files Pin
bolivar12313-Oct-04 8:54
bolivar12313-Oct-04 8:54 
GeneralRAS (Remote access service) Pin
Member 143564812-Oct-04 21:26
Member 143564812-Oct-04 21:26 
QuestionMSAccess through ODBC : Office needed ? Pin
Jerome Conus12-Oct-04 21:12
Jerome Conus12-Oct-04 21:12 
AnswerRe: MSAccess through ODBC : Office needed ? Pin
Kurt Muellner12-Oct-04 21:30
Kurt Muellner12-Oct-04 21:30 
AnswerRe: MSAccess through ODBC : Office needed ? Pin
Antony M Kancidrowski13-Oct-04 1:53
Antony M Kancidrowski13-Oct-04 1:53 
QuestionHow do I get 'class CString' to 'const char *' Pin
Jochum Wittebrood12-Oct-04 21:08
Jochum Wittebrood12-Oct-04 21:08 
AnswerRe: How do I get 'class CString' to 'const char *' Pin
GDavy12-Oct-04 22:14
GDavy12-Oct-04 22:14 
GeneralRe: How do I get 'class CString' to 'const char *' Pin
Rick York13-Oct-04 9:59
mveRick York13-Oct-04 9:59 
Questionhow to create a port Pin
sarath_babu12-Oct-04 21:04
sarath_babu12-Oct-04 21:04 
GeneralCListBox AddString Question/Problem Pin
otrcomm12-Oct-04 20:45
otrcomm12-Oct-04 20:45 
GeneralRe: CListBox AddString Question/Problem Pin
Antony M Kancidrowski13-Oct-04 2:22
Antony M Kancidrowski13-Oct-04 2:22 
GeneralRe: CListBox AddString Question/Problem Pin
otrcomm13-Oct-04 5:15
otrcomm13-Oct-04 5:15 
GeneralRe: CListBox AddString Question/Problem Pin
Antony M Kancidrowski13-Oct-04 8:51
Antony M Kancidrowski13-Oct-04 8:51 
GeneralRe: CListBox AddString Question/Problem Pin
otrcomm13-Oct-04 11:20
otrcomm13-Oct-04 11:20 
GeneralRe: CListBox AddString Question/Problem Pin
Antony M Kancidrowski13-Oct-04 11:37
Antony M Kancidrowski13-Oct-04 11:37 
GeneralImage Editor Pin
Vini Deep12-Oct-04 20:38
Vini Deep12-Oct-04 20:38 

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.