From: "=?big5?B?r0K2sw==?=" To: Subject: unsubscribe Date: Thu, 25 May 2000 01:40:23 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <200005230405.AAA08513@delorie.com> Importance: Normal Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id MAA27805 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -----Original Message----- From: List Server at delorie.com [mailto:listserv AT delorie DOT com] Sent: Tuesday, May 23, 2000 12:06 PM To: djgpp daily digest Subject: djgpp daily digest for 22 May 2000 2/2 Please remember to reply only to the individual authors, and be careful not to quote the whole digest when responding! Send an empty message to listserv AT delorie DOT com for information about these digests and how to get on/off the lists. 2000/05/22/23:15:12 Re: More Dumb Newbie Questions 2000/05/22/23:15:19 Re: But.......... 2000/05/22/23:30:17 Re: windows version of Crafty 2000/05/22/23:30:21 Re: "donīt know how to build rem.0 from rem.com" 2000/05/22/23:45:21 LOCK_FUNCTION(x) macro 2000/05/22/23:45:24 Re: LOCK_FUNCTION(x) macro 2000/05/22/23:53:33 Re: ftp library to list directory ---------------------------------------------------------------------- From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: More Dumb Newbie Questions Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: /wzbxdljyCsKK9pYWTtUDqi4V+LCe/tcwybFFjhqAaUsIyFeJpAqG13qmZAL1jdp/+L8XF4WWiy+!wwXyAncTw5osNbMZxdMe/oGewRs7vZgdXhnvz1ehtKXzjujW3ho4yFBGx/tR8iLMHLo5yQj0BqsD!84NyHxo= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 03:02:05 GMT Distribution: world Date: Tue, 23 May 2000 03:02:05 GMT To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com On Mon, 22 May 2000 12:46:26 GMT, "Ghostwheel" wrote: >That option is greyed out 1. Create a project. (Project > Open project, then type in a filename) 2. Insert your c file into the project. 3. Ctrl+F9 -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/ ------------------------------ From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: But.......... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <1htjiskae05sf67ohrs9n3tivrrir6l376 AT 4ax DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: +4AzTc6IVWp797Nof1p+s1twaM2aaGw7jqeKxqoGpXeWoFEeEL8jm3F/v61W+qKDWaELNPf/uaoe!NWKST+oO+XVgTSeHFmUT4gZgT8KzoM4egHD3Q+113SuOFqvRgF4uaCa3n5A0LNuKMrGG/EtnuHZR!4KcZgY0= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 03:12:01 GMT Distribution: world Date: Tue, 23 May 2000 03:12:01 GMT To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com On Mon, 22 May 2000 18:21:56 GMT, "Christian" wrote: >It still doesn't work. > >To get the pallete from a file(for example a bmp), do i write something like >this? > >PALLETE pal; >BITMAP *bmp = load_bmp("file", pal); set_palette(pal); then blit the bitmap to the screen. Try this: /************ 8< (untested code) *************/ #include int main(void) { BITMAP *bmp; PALETTE pal; allegro_init(); install_timer(); install_keyboard(); if(set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0) == 0) { allegro_message("couldn't set gfx mode\n"); return 1; } if((bmp = load_bitmap("foo.bmp", pal)) == NULL) { allegro_message("couldn't load bitmap foo.bmp\n"); return 1; } blit(bmp, screen, 0, 0, 0, 0, bmp->w, bmp->h); readkey(); return 0; } END_OF_MAIN(); /************ 8< (untested code) *************/ -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/ ------------------------------ From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: windows version of Crafty Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: +rnM+lacuUjsJMzO668/W9KSPfktANC1bLZmcas68hDBi0tUckboCuKqvZjwUtpJI9nyXQvxRikF!rRgAJATUwgcXtSRO2YfJOp8mg/ggo0EDFw9N7U9Eac5Q7ZL9CUgqojNIM31YFI8+QyQfkiG7i8xu!omM3n7o= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 03:18:58 GMT Distribution: world Date: Tue, 23 May 2000 03:18:58 GMT To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com On 22 May 2000 11:08:10 GMT, buers AT gmx DOT de (Dieter Buerssner) wrote: >Damian Yerrick wrote: > >>On 21 May 2000 20:13:28 GMT, buers AT gmx DOT de (Dieter Buerssner) wrote: >>>The easiest option you have, is to download wcrafty.x.y.exe or compile >>>it with MSVC (which also will give a faster executable). >> >>What about mingw32? > >I don't know, what you are refering this to. It's my standard response to the "can't open a pipe between DOS and Win32 apps" FAQ. It's still a GNU environment. >It should be possible >to compile crafty with mingw32. It would need some Makefile hacking. But not very much if you already have a working DJGPP makefile; DJGPP and mingw32 are both GNU make + GCC + GNU binutils. >When you are refering to the speed. Due to the author of crafty, >MSVC will compile the fastest crafty executable, almost 30% faster >than gcc compiled. MSVC costs USD 200; the optimizer costs USD 300 extra. Not very cheap for amateur hackers. >I can confirm this (and I tried many Compiler switches). What about these? -O3 -mpentium -ffast-math -fomit-frame-pointer >One can also see it at the assembler level. >From what I've read, unoptimized GCC output is total cr4p. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/ ------------------------------ From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: "donīt know how to build rem.0 from rem.com" Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <38ujis8kvcuc0evqgq5sl6n4dcbpto55pb AT 4ax DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: /Kkf2O2iwEz+8q3dvnl5YSy2DyxIcuRA93u+oDWddOwoc1sjCU1i2BPNxFdfjCkFzA8jcOD59xYk!a58Cnswbvgmv3Me3ypx493eaOQjwLSfVfsefh2HVCfYLqjgqw2hDdGZvemmORlFcJGwBTWijTGf8!sOOKxuc= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 03:21:34 GMT Distribution: world Date: Tue, 23 May 2000 03:21:34 GMT To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com On Mon, 22 May 2000 19:26:23 +0200, "Juan Manuel Penalver Ruiz" wrote: >This message i get when i tried to run my first program "hello world". :( > >iīm absolutely new in the world of programming > >can you help? thx Try this: C:\>cd \where\the\source\is C:\DEVELOP\HELLO>gcc hello.c -o hello.exe -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/ ------------------------------ From: omega782 AT aol DOT com (Omega782) Newsgroups: comp.os.msdos.djgpp Subject: LOCK_FUNCTION(x) macro NNTP-Posting-Host: ladder06.news.aol.com X-Admin: news AT aol DOT com Date: 23 May 2000 03:37:48 GMT Organization: AOL http://www.aol.com Message-ID: <20000522233748 DOT 17166 DOT 00000881 AT ng-bg1 DOT aol DOT com> To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com The lock function macro described in the djgpp djgpp user's guide ("http://www.delorie.com/djgpp/doc/ug/interrupts/overview.html") is defined as: #define LOCK_FUNCTION(x) _go32_dpmi_lock_code(x,(long)sizeof(x)); When I tried to use this, I got the compile time error: "ANSI C++ forbids taking the sizeof a function type" When I tried using the Allegro definition of lock function: #define LOCK_CODE(c,s) _go32_dpmi_lock_code((c), (s)) #define LOCK_FUNCTION(x) LOCK_CODE(x, (long)x##_end - (long)x) I got the error: dspcabs.h:39: `DSpaceKeyboardInterruptHandler_end' undeclared (first use this function) (DSpaceKeyboardInterruptHandler is my ISR) Does anyone know how I can get a LOCK_FUNCTION macro that works? Thanks ------------------------------ From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: LOCK_FUNCTION(x) macro Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: /bCCZGfwbQv1DM2ju8vEEOvHQhugIR2oEgT7CAuBvwGX6nWxpZQ7ATPxecI5TBjw1eyKONx7imob!bPdp6vnBRx50tMg3aEojDRAdPOH4VOGpGYwqdj+XSBACbnc6eteDpGsNay1mCYp3rTE7aKulVOAW!MPR65TQ= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 03:43:11 GMT Distribution: world Date: Tue, 23 May 2000 03:43:11 GMT To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com On 23 May 2000 03:37:48 GMT, omega782 AT aol DOT com (Omega782) wrote: >The lock function macro described in the djgpp djgpp user's guide > >("http://www.delorie.com/djgpp/doc/ug/interrupts/overview.html") > >is defined as: > >#define LOCK_FUNCTION(x) _go32_dpmi_lock_code(x,(long)sizeof(x)); > >When I tried to use this, I got the compile time error: > >"ANSI C++ forbids taking the sizeof a function type" > >When I tried using the Allegro definition of lock function: > >#define LOCK_CODE(c,s) _go32_dpmi_lock_code((c), (s)) >#define LOCK_FUNCTION(x) LOCK_CODE(x, (long)x##_end - (long)x) > >I got the error: > >dspcabs.h:39: `DSpaceKeyboardInterruptHandler_end' undeclared (first use this >function) > >(DSpaceKeyboardInterruptHandler is my ISR) Put this right after your ISR: END_OF_FUNCTION(DSpaceKeyboardInterruptHandler); -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/ ------------------------------ From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: ftp library to list directory Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: /wmC6Ay1HHUiZRb+gnCRv/UZ4x6bWyVWNL1h1Agud4Vfn/BGJ89hNBxMTcoK8aCPlczLJG5dNabg!y4LR7eu/C+6pNwVKSu3+Etymu1QDmszMjW2AThCXqWMDnPUWO8ZQQSWMBZAD8W1EV51dHX+EBL9A!Vc+r7j8= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Tue, 23 May 2000 03:22:22 GMT Distribution: world Date: Tue, 23 May 2000 03:22:22 GMT To: djgpp AT delorie DOT com Reply-To: djgpp AT delorie DOT com On Tue, 23 May 2000 01:50:01 GMT, chongkong AT my-deja DOT com wrote: >what library will allow my app to have ftp access? You need watt32 or libsocket. Find them on Google. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/ ------------------------------ End of djgpp daily digest for 22 May 2000 2/2 *********************************************