Board index » cppbuilder » fopen returns NULL in VISTA

fopen returns NULL in VISTA


2007-03-02 01:15:41 PM
cppbuilder93
Hello guys,
One more questions for you guys to ponder. When i use
fopen in VISTA ( in VC6.0) with the second option as "wb0"( for ex:
fopen("myfile.txt","wb0")) fopen returns NULL in the release mode. If
i do the same with shared MFC dll it succeeds. Anybody who has faced
this kind of problem.
Thanks and Regards
Pawan
 
 

Re:fopen returns NULL in VISTA

Goliath_of_OGL wrote:
Quote
Hello guys,

One more questions for you guys to ponder. When i use
fopen in VISTA ( in VC6.0) with the second option as "wb0"( for ex:
fopen("myfile.txt","wb0")) fopen returns NULL in the release mode. If
i do the same with shared MFC dll it succeeds. Anybody who has faced
this kind of problem.

Thanks and Regards
Pawan
why the 0 in "wb0"? Have not heard of that and whats release mode?. In
anycase, if you want to read a text file use "rt" == Read Text
Eric