From: "23yrold3yrold" Newsgroups: comp.os.msdos.djgpp Subject: "load_bitmap" newbie... Date: Sat, 24 Jun 2000 17:08:40 -0500 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 64.4.88.51 Message-ID: <39553338_2@spamkiller.newsfeeds.com> X-Trace: 24 Jun 2000 17:16:24 -0500, 64.4.88.51 X-Comments: This message was posted through Newsfeeds.com X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! X-Report: Please report illegal or inappropriate use to You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS) Organization: Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED Newsgroups. To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm having trouble using some functions in Allegro; I think the documents assume a little too much (or I'm just dense). I've been trying to learn by reading bloddy near every source of Allegro tutorials on the Net but I get things like the following. I know it should work (according to Allegro's accompanying documentation) and it's copied exactly as is out of a tutorial. I also know I'm missing something simple, and hope someone will be kind enough to share. I have a bitmap called Test.bmp and it's 32 x 32, in the same folder as the executable, but I can't figure out where in the program the name of it should go (knowing my luck I have to put it a few places). The compiler gets this far before it stops and returns an error. Much thanx to whomever schools me in this. #include #include #include "allegro.h" BITMAP *pic; PALETTE pal; int x,y; main(void) { allegro_init(); install_keyboard(); set_color_depth(16); set_gfx_mode(GFX_AUTODETECT,640,480,0,0); load_bitmap(pic,pal); Error: passing 'BITMAP *' as argument 1 of 'load_bitmap(char*, RGB*)'