From: "Clemens Valens" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro, static mouse_pointer Date: Wed, 28 Jul 1999 22:56:47 +0200 Organization: Wanadoo, l'internet avec France Telecom Lines: 21 Message-ID: <7nnqut$483$1@wanadoo.fr> References: NNTP-Posting-Host: meaux13-153.abo.wanadoo.fr X-Trace: wanadoo.fr 933195549 4355 164.138.33.153 (28 Jul 1999 20:59:09 GMT) X-Complaints-To: abuse AT wanadoo DOT fr NNTP-Posting-Date: 28 Jul 1999 20:59:09 GMT X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Nils ึster wrote in message ... >Why can't I reach Allegros built in mouse pointer, declared as >extern static BITMAP *mouse_pointer in ? > >What does that static keyword mean anyway? > > I forgot the exact definition of static, but when you declare a global variable or function static in a file, it is _only_ visible inside this file. This is why you can't reach the built in mouse pointer. Remove the static from its definition and away you go. It is a kind of protection scheme. Within a function, a static local variable does not lose its value between different calls of this function. Clemens