X-Spam-Check-By: sourceware.org Message-Id: <4693AB33.73DE.0052.0@bju.edu> X-Mailer: Novell GroupWise Internet Agent 7.0.2 Date: Tue, 10 Jul 2007 15:52:20 -0400 From: "Kirk Russell" To: Subject: fopens fails to open binary files on Vista Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l6AJqh9l028040 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/