Hi, I am running Windows Vista and I have written a program on cygwin that opens a binary file using the fopen call with a mode of "rb". At run time I receive the following error message: Invalid Parameter passed to C runtime function. If I were to remove the "b" in "rb", the library call is successful. Is there a different way to open binary files when running an executable on cygwin, on Vista. I also tried to use the setmode call and it failed as well with the same error. Here is how I am building my executable. I would appreciate any help or information you could give me. gcc -DHAVE_CONFIG_H -I. -I/home/krussell//usr/win32/include -I. -I /usr/include /usr/local/ssl/lib/libcrypto.a -g -O2 -Wall -W -MT secureDisk.o -MD -MP -MF "se cureDisk.Tpo" -o secureDisk -mno-cygwin secureDisk.c /usr/local/ssl/lib/libcrypt o.a ; \ Kirk
Kirk Russell IT BJU 864 242 5100 x3884 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/