From: rbales1 AT flash DOT net (Mike Bales) Newsgroups: comp.os.msdos.djgpp Subject: Re: Weird problem Date: Thu, 13 Mar 1997 21:36:07 GMT Organization: Flashnet Communications, http://www.flash.net Lines: 30 Message-ID: <33297329.1311942@news.flash.net> References: <33287185 DOT 892303 AT news DOT flash DOT net> NNTP-Posting-Host: detasc7-66.flash.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Thu, 13 Mar 1997 21:34:05 GMT, rbales1 AT flash DOT net (Mike Bales) wrote: >This may sound stupid because I am new to DJGPP although have been >using Turbo C++ for years. Here is some code: > >void main(void) >{ > int x; > > // some code here that puts a value into x > > printf("X is %d.\n", x); >} > >This is just an example, not the actual code. The number it prints as >variable X is way about the 32767 limit on ints. (something like a I meant "above" not "about" sorry.... >million and a half) Why? > >Also, I am using an Allegro Grabber datafile. I have a binary file in >the datafile. How would I put the first 2 and second 2 bytes of the >binary file into two int variables? I have tried a bunch of ways but >maybe I am doing something wrong with the pointers. I am not too >familiar with PM programming... > >Please help. > >Mike