Mail Archives: djgpp/2000/09/18/22:30:56
Ivan Ferrara <ifalpsfun AT inwind DOT it> 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 <stdio.h>
: #include <conio.h>
: #include <stdlib.h>
: #include <dos.h>
: #include <math.h>
: #include <dpmi.h>
: #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
- Raw text -