From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Some Allegro and other questions. Date: Sat, 1 Feb 1997 11:54:36 +0000 Organization: None Distribution: world Message-ID: References: NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 45 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Christian Tamasiu writes: >1. I just got the wip version of allegro. > When I tried to compile it the compiler stopped with an error message, > claiming that "_USE_LFN" (in gui.c) was not declared. I think this macro was added in djgpp 2.01, so it won't be declared in your headers. Question for the experts: am I right in thinking that if I include and call _use_lfn(NULL), it will compile with both djgpp 2.0 and 2.01? >2. Whenever I use a allegro program in a WIN95 dosbox, the mouse movement > gets incredibly slow. How can this be fixed? This problem has been reported from time to time, but I've never been able to reproduce it on any machines I have access to, so I really don't know what to suggest. My best guess is that you are suffering either from missing interrupts (but why? do keystrokes ever get ignored as well?) or from a mouse driver that ignores my request to increase the mouse range and speed by a factor of eight (this is needed to get down- to-the-pixel accuracy in SVGA modes). What kind of mouse do you have? (bring up the device manager dialog, and have a look at the properties for your mouse device). It also might be worth adding repeated calls to __dpmi_yield() to your program: this could help if the problem lies with missing interrupts. Please let me know how you get on, and if anyone else has any ideas about what could be causing this, I would really like to hear them! >3. How can I disable CTRL-C? If you are using the Allegro keyboard handler, it is always disabled. If you are using standard DOS/BIOS input routines, try: #include __djgpp_set_ctrl_c(0); Look in the info docs for details... /* * Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ * Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'. */