Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: char buf Pin
Sebastian Schneider11-Jan-06 5:10
Sebastian Schneider11-Jan-06 5:10 
AnswerAnswer!! Pin
Eytukan11-Jan-06 5:25
Eytukan11-Jan-06 5:25 
AnswerRe: char buf Pin
Bob Stanneveld11-Jan-06 10:31
Bob Stanneveld11-Jan-06 10:31 
GeneralRe: char buf Pin
Tim Smith11-Jan-06 11:52
Tim Smith11-Jan-06 11:52 
GeneralRe: char buf Pin
Bob Stanneveld12-Jan-06 22:19
Bob Stanneveld12-Jan-06 22:19 
AnswerRe: char buf Pin
Stephen Hewitt11-Jan-06 15:34
Stephen Hewitt11-Jan-06 15:34 
QuestionPermissions and fopen Pin
Chris Meech11-Jan-06 3:02
Chris Meech11-Jan-06 3:02 
AnswerRe: Permissions and fopen Pin
vipinasda11-Jan-06 4:53
vipinasda11-Jan-06 4:53 
Firstly, if you are programming in MFC,
please use CFile, instead of low level calls. You had like to be free of
having to track resource handles and explicitly calling fclose(...) for
every fopen.
With CFile you can use the CFile::shareExclusive to accomplish what you
would want.

At API level you could pass the 3rd parameter to CreateFile(...) as 0, it is
actually the dwShareMode.

If you plan to use the CRT routines, still , fo ahead and have a look at
_locking(...)

GeneralRe: Permissions and fopen Pin
Chris Meech11-Jan-06 6:17
Chris Meech11-Jan-06 6:17 
GeneralRe: Permissions and fopen Pin
__yb11-Jan-06 11:36
__yb11-Jan-06 11:36 
GeneralRe: Permissions and fopen Pin
vipinasda11-Jan-06 16:23
vipinasda11-Jan-06 16:23 
GeneralRe: Permissions and fopen Pin
__yb11-Jan-06 23:52
__yb11-Jan-06 23:52 
QuestionON_NOTIFY_RANGE and Textbox's KillFocus Pin
Sarvan AL11-Jan-06 2:31
Sarvan AL11-Jan-06 2:31 
AnswerRe: ON_NOTIFY_RANGE and Textbox's KillFocus Pin
Cedric Moonen11-Jan-06 2:33
Cedric Moonen11-Jan-06 2:33 
AnswerRe: ON_NOTIFY_RANGE and Textbox's KillFocus Pin
FarPointer11-Jan-06 3:15
FarPointer11-Jan-06 3:15 
GeneralThanks: ON_NOTIFY_RANGE and Textbox's KillFocus Pin
Sarvan AL11-Jan-06 21:43
Sarvan AL11-Jan-06 21:43 
QuestionHow to set the End of File to a file opened by "fopen" with "r+" Pin
Sarvan AL11-Jan-06 2:23
Sarvan AL11-Jan-06 2:23 
AnswerRe: How to set the End of File to a file opened by "fopen" with "r+" Pin
Prakash Nadar11-Jan-06 2:54
Prakash Nadar11-Jan-06 2:54 
AnswerRe: How to set the End of File to a file opened by "fopen" with "r+" Pin
kakan11-Jan-06 4:04
professionalkakan11-Jan-06 4:04 
GeneralThanks: How to set the End of File to a file opened by "fopen" with "r+" Pin
Sarvan AL11-Jan-06 21:40
Sarvan AL11-Jan-06 21:40 
GeneralRe: Thanks: How to set the End of File to a file opened by "fopen" with "r+" Pin
kakan11-Jan-06 22:05
professionalkakan11-Jan-06 22:05 
QuestionVisual studio intellisense Pin
Russell'11-Jan-06 2:14
Russell'11-Jan-06 2:14 
AnswerRe: Visual studio intellisense Pin
Owner drawn11-Jan-06 17:09
Owner drawn11-Jan-06 17:09 
QuestionPrint image to fit the page Pin
Alberto_Canabal11-Jan-06 2:04
Alberto_Canabal11-Jan-06 2:04 
QuestionRead\Write Registry Keys Pin
KevinSheedy11-Jan-06 2:04
KevinSheedy11-Jan-06 2:04 

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.