From: "Amin Kharchi" Newsgroups: comp.os.msdos.djgpp References: <37a49d74 AT news DOT ismi DOT net> Subject: Re: BITMAP pointers w/ Allegro. Lines: 38 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Sun, 1 Aug 1999 23:01:16 +0200 NNTP-Posting-Host: 195.252.135.109 X-Complaints-To: newsmaster AT tli DOT de X-Trace: news.tli.de 933541591 195.252.135.109 (Sun, 01 Aug 1999 23:06:31 MET DST) NNTP-Posting-Date: Sun, 01 Aug 1999 23:06:31 MET DST Organization: Talkline Internet Division http://www.tli.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello! Ike schrieb in Nachricht <37a49d74 AT news DOT ismi DOT net>... >main(void) >{ > BITMAP *bmp; > function(bmp); >} > >function(BITMAP *bmp) >{ > bmp = create_bitmap(320, 240); >} You could make BITMAP *bmp as a global pointer... because you need it in many functions. Why do you want to create the bitmap in an extra function? But if you want: int function(bmp) { bmp = create_bitmap(32,240); } If you make *bmp global than you don't need to give it up. you could than write: int function() -- Amin Kharchi Wolfsburg, Germany