Message-ID: <350F532D.C6DBA305@pangea.ca> From: Lee MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: need help with d_bitmap_proc (Allegro) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 24 Date: Wed, 18 Mar 1998 04:51:16 GMT NNTP-Posting-Host: user040.videonwave.com NNTP-Posting-Date: Tue, 17 Mar 1998 22:51:16 CST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am having trouble with d_bitmap_proc. From the documentation, : ** int d_bitmap_proc(int msg, DIALOG *d, int c); This draws a bitmap onto the screen, which should be pointed to by the dp field. ** However, the following code produces the error: initializer element for `main_dialog[5].dp' is not constant *code* DIALOG main_dialog[] = { /* (dialog proc) (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp) */ ...some stuff.... { d_bitmap_proc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, mydat[LOGO].dat}, ...some other stuff }; *end code* Basically what I am trying to do here is put a bitmap in the background of my GUI. Any help would be greatly appreciated, as I am using Allegro to do my programming project, and so far it has been working well (except for this :( ) Lee - reply by removing *NOSPAM* from email address