From: Alan S. <asm...@fo...> - 2003-05-20 23:18:35
|
Hi, in my program I have the following setup for my file writing: #define mywrite(fspec, count, data) count=fwrite(data,1,count,fspec) For discussion lets say count=4 and data is pointing to "ABCD" When I compile under Mingw ver1.08 and write out the data I get "ABCD" in the file which is what I want. When compiled with the latest release of Mingw 2.0. and executed I get "DCBA" in the file, do I need to rewrite my program or is there a switch that will change this to behave as it did in the previous release? I am interested in using the latest version if possible without rewriting my program. Or there is probably a glaring error in how I am implementing this, any thoughts would be appreciated. If this is the wrong forum please let me know. Thanks in advance for any help. Alan Alan Smallbone FEM, Inc. FAA Repair Station PU3R776L (818) 240-7740 (818) 240-1009 fax asm...@fo... http://www.fortnereng.com |