Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I handle right-click of my application itself ? Pin
Iain Clarke, Warrior Programmer4-Jul-08 2:25
Iain Clarke, Warrior Programmer4-Jul-08 2:25 
AnswerRe: How can I handle right-click of my application itself ? Pin
Nibu babu thomas4-Jul-08 2:37
Nibu babu thomas4-Jul-08 2:37 
QuestionIncrease number of files that can be opened Pin
Amit4u4-Jul-08 1:41
Amit4u4-Jul-08 1:41 
AnswerRe: Increase number of files that can be opened Pin
vineeshV4-Jul-08 1:57
vineeshV4-Jul-08 1:57 
QuestionRe: Increase number of files that can be opened Pin
CPallini4-Jul-08 2:09
mveCPallini4-Jul-08 2:09 
AnswerRe: Increase number of files that can be opened Pin
vineeshV4-Jul-08 2:46
vineeshV4-Jul-08 2:46 
GeneralRe: Increase number of files that can be opened Pin
CPallini4-Jul-08 2:55
mveCPallini4-Jul-08 2:55 
GeneralRe: Increase number of files that can be opened Pin
vineeshV4-Jul-08 3:21
vineeshV4-Jul-08 3:21 
Yes Iain was correct ...

The actual libary code restrict the number of file open to 510 (i dont know the exact value ..).But normally the system will not allow you to open more than 20 files from a process .This is because of the FOPEN_MAX set to 20 in the header stdio.h .
#define FOPEN_MAX 20
We can only change the value below 510 .
#define FOPEN_MAX 510 //upto this will work
that means
#define FOPEN_MAX 511 may not work as it trying to override the max limit in the actual libray code

We cannot open infinite number of files using fopen ,but still we can extend the limit set in the stdio.h file as above .

The usage of CreateFile is an absolute replacement for fopen if you need to open file more than 500 times from a single process.

vineesh

QuestionRe: Increase number of files that can be opened Pin
CPallini4-Jul-08 2:07
mveCPallini4-Jul-08 2:07 
AnswerRe: Increase number of files that can be opened Pin
Iain Clarke, Warrior Programmer4-Jul-08 2:28
Iain Clarke, Warrior Programmer4-Jul-08 2:28 
AnswerRe: Increase number of files that can be opened Pin
Randor 4-Jul-08 5:54
professional Randor 4-Jul-08 5:54 
QuestionC++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
dolly4-Jul-08 1:34
dolly4-Jul-08 1:34 
AnswerRe: C++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
Iain Clarke, Warrior Programmer4-Jul-08 2:38
Iain Clarke, Warrior Programmer4-Jul-08 2:38 
GeneralRe: C++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
dolly7-Jul-08 18:45
dolly7-Jul-08 18:45 
QuestionProduct ID and vendor ID of the devices Pin
Y K Kishore Kumar4-Jul-08 1:30
Y K Kishore Kumar4-Jul-08 1:30 
AnswerRe: Product ID and vendor ID of the devices Pin
_AnsHUMAN_ 4-Jul-08 1:59
_AnsHUMAN_ 4-Jul-08 1:59 
QuestionCreateProcessAsUser Pin
vineeshV4-Jul-08 1:17
vineeshV4-Jul-08 1:17 
AnswerRe: CreateProcessAsUser Pin
marcio k6-Jul-08 20:48
marcio k6-Jul-08 20:48 
QuestionCreate really long timers in MFC Pin
cagespear4-Jul-08 0:49
cagespear4-Jul-08 0:49 
AnswerRe: Create really long timers in MFC Pin
Iain Clarke, Warrior Programmer4-Jul-08 1:05
Iain Clarke, Warrior Programmer4-Jul-08 1:05 
GeneralRe: Create really long timers in MFC Pin
cagespear4-Jul-08 1:22
cagespear4-Jul-08 1:22 
GeneralRe: Create really long timers in MFC Pin
Iain Clarke, Warrior Programmer4-Jul-08 1:28
Iain Clarke, Warrior Programmer4-Jul-08 1:28 
GeneralRe: Create really long timers in MFC Pin
CPallini4-Jul-08 1:45
mveCPallini4-Jul-08 1:45 
GeneralRe: Create really long timers in MFC Pin
cagespear4-Jul-08 1:52
cagespear4-Jul-08 1:52 
GeneralRe: Create really long timers in MFC Pin
Iain Clarke, Warrior Programmer4-Jul-08 2:22
Iain Clarke, Warrior Programmer4-Jul-08 2:22 

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.