Click here to Skip to main content
15,886,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: const in class as a member variable? Pin
CPallini23-Jul-09 3:53
mveCPallini23-Jul-09 3:53 
GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 4:20
sam_psycho23-Jul-09 4:20 
GeneralRe: const in class as a member variable? Pin
CPallini23-Jul-09 6:06
mveCPallini23-Jul-09 6:06 
GeneralRe: const in class as a member variable? Pin
sam_psycho23-Jul-09 6:22
sam_psycho23-Jul-09 6:22 
GeneralRe: const in class as a member variable? Pin
CPallini23-Jul-09 6:50
mveCPallini23-Jul-09 6:50 
QuestionTitleBar Pin
kumar sanghvi23-Jul-09 3:36
kumar sanghvi23-Jul-09 3:36 
QuestionRe: TitleBar Pin
Mahesh Kulkarni23-Jul-09 20:59
Mahesh Kulkarni23-Jul-09 20:59 
QuestionWhich low-level I/O API is better? MFC or POSIX Pin
Dimitris Vikeloudas23-Jul-09 3:13
Dimitris Vikeloudas23-Jul-09 3:13 
Few years ago we ported our application low-level to MFC. Instead of using open, read, write etc. we moved to MFC specifics like CreateFile(), ReadFile & WriteFile. We also did the same for the locking functions i.e. use LockFileEx instead of fcntl. Recently we start using WRITE_THROUGH flags everywhere to force direct writing to disk rather than via O.S system cache. Whilst most customers are happy and solved few of their problems some of them still have issues that are hard to track and reproduce. Hence there is a thought to go back to POSIX I/O API but this may creates us again more problems than it solves.

My question is the following: Assuming that we are targeting a Win32 platform (XP and Vista) which I/O is the better low-level I/O it terms of a) performance, b) security of the following choices?
i. MFC specific functions like CreateFile, LockFileEx etc.
ii. POSIX style low-level I/O API like _open(), _fcntl()using a VC++ compiler
iii. POSIX style low-level I/O but this time using a late version gcc/g++ compiler.

If someone has the same dillemas would be nice to hear the views. Also if someone knows any article or comparisons could you please direct me to them?

Thanks.
AnswerRe: Which low-level I/O API is better? MFC or POSIX Pin
CPallini23-Jul-09 3:41
mveCPallini23-Jul-09 3:41 
AnswerRe: Which low-level I/O API is better? MFC or POSIX Pin
RomanMzh23-Jul-09 3:50
RomanMzh23-Jul-09 3:50 
GeneralRe: Which low-level I/O API is better? MFC or POSIX Pin
Dimitris Vikeloudas23-Jul-09 4:25
Dimitris Vikeloudas23-Jul-09 4:25 
GeneralRe: Which low-level I/O API is better? MFC or POSIX Pin
Randor 23-Jul-09 4:58
professional Randor 23-Jul-09 4:58 
GeneralRe: Which low-level I/O API is better? MFC or POSIX Pin
Dimitris Vikeloudas23-Jul-09 6:09
Dimitris Vikeloudas23-Jul-09 6:09 
QuestionSetOwner(CWnd* pOwnerWnd); Pin
Rakesh523-Jul-09 3:02
Rakesh523-Jul-09 3:02 
AnswerRe: SetOwner(CWnd* pOwnerWnd); Pin
CPallini23-Jul-09 3:47
mveCPallini23-Jul-09 3:47 
QuestionFindItem of ListCtrl not find exact string in list. Pin
Le@rner23-Jul-09 2:32
Le@rner23-Jul-09 2:32 
AnswerRe: FindItem of ListCtrl not find exact string in list. Pin
krmed23-Jul-09 2:43
krmed23-Jul-09 2:43 
AnswerRe: FindItem of ListCtrl not find exact string in list. Pin
Muhammad Mazhar23-Jul-09 2:54
Muhammad Mazhar23-Jul-09 2:54 
QuestionLocking 24bpp bitmap portion Pin
Chesnokov Yuriy23-Jul-09 1:24
professionalChesnokov Yuriy23-Jul-09 1:24 
AnswerRe: Locking 24bpp bitmap portion Pin
uraeu23-Jul-09 3:08
uraeu23-Jul-09 3:08 
AnswerRe: Locking 24bpp bitmap portion Pin
Chesnokov Yuriy23-Jul-09 4:07
professionalChesnokov Yuriy23-Jul-09 4:07 
AnswerRe: Locking 24bpp bitmap portion Pin
Randor 23-Jul-09 5:25
professional Randor 23-Jul-09 5:25 
QuestionRe: Locking 24bpp bitmap portion Pin
Chesnokov Yuriy23-Jul-09 8:06
professionalChesnokov Yuriy23-Jul-09 8:06 
AnswerRe: Locking 24bpp bitmap portion Pin
Randor 23-Jul-09 8:27
professional Randor 23-Jul-09 8:27 
QuestionRe: Locking 24bpp bitmap portion Pin
Chesnokov Yuriy23-Jul-09 19:24
professionalChesnokov Yuriy23-Jul-09 19:24 

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.