From: SteelGolem Newsgroups: comp.os.msdos.djgpp Subject: yet ANOTHER allegro question... EASY Date: Fri, 06 Jun 1997 16:25:57 -0300 Organization: Auracom Internet Services Lines: 45 Message-ID: <5n9ohk$ptf$1@thor.atcon.com> Reply-To: myork AT auracom DOT com NNTP-Posting-Host: 199.126.230.134 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7CB82D456FB" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk This is a multi-part message in MIME format. --------------7CB82D456FB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit in allegro's header file, i looked up the BITMAP structure, and it contains two things i need to look at: height and width of the bitmap. attached is my program, i compiled it like this: gcc alleg2.c -o alleg2.exe -lalleg it gives me an error: alleg2.c: In function 'main': alleg2.c:13: request for member 'w' in something not a structure or union since i looked it up myself and KNOW that BITMAPs are typedef'ed structs, what the heII is the problem??? thanks for any help.. -- email, please! SteelGolem --------------7CB82D456FB Content-Type: text/plain; charset=us-ascii; name="alleg2.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="alleg2.c" #include #include int main( void ); int main() { BITMAP *bmp; allegro_init(); set_gfx_mode( GFX_VGA, 320, 200, 0, 0 ); bmp = create_bitmap( 320, 200 ); clear( bmp ); printf( "width of bmp is %d\n", *bmp.w ); } --------------7CB82D456FB--