From: Martin Str|mberg Newsgroups: comp.os.msdos.djgpp Subject: Re: NO DPMI MEMORY (II) Date: 18 Sep 2000 17:19:36 GMT Organization: University of Lulea, Sweden Lines: 41 Message-ID: <8q5ir8$m24$1@news.luth.se> References: <39C64BF4 DOT BC13F2BC AT inwind DOT it> X-Trace: news.luth.se 969297576 22596 130.240.16.18 (18 Sep 2000 17:19:36 GMT) X-Complaints-To: abuse AT luth DOT se User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ivan Ferrara wrote: : Here's a code compiled and linked with DJGPP. I'm working under WINDOWS : 98 and, after a double click on the EXE file, I get this error message : : "LOAD ERROR: NO DPMI MEMORY" : This program should set video mode in 320X200 (13h graphic mode),then : show a PCX image file. : What's the problem ? : Thanks a lot, : Ivan : ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// : #include : #include : #include : #include : #include : #include : #define PALETTE_MASK 0x3c6 : #define PALETTE_REGISTER_WR 0x3c8 : #define PALETTE_REGISTER_RD 0x3c7 : #define SCREEN_WIDTH 320 : #define SCREEN_HEIGHT 200 : #define PALETTE_DATA 0X3C9 : FILE *dati; : unsigned char far *video_buffer = (char far *)0xA0000000L; // vram byte : ptr Problem 1: 0xA0000000L won't work in DJGPP. Problem 2: How did you make that compile. C doesn't have a "far" keyword and it's certainly not in the DJGPP headers. Right, MartinS