| www.delorie.com/archives/browse.cgi | search |
| From: | "Martin Czamai" <M DOT Czamai AT peak-system DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Cannot use of LOCK_FUNCTION, END_OF_FUNCTION,... in classes? |
| Date: | Tue, 26 Sep 2000 06:48:44 +0200 |
| Organization: | callisto germany.net GmbH |
| Lines: | 43 |
| Message-ID: | <8qp9tc$170$1@news.germany.net> |
| References: | <8qnriq$2a5$1 AT news DOT germany DOT net> <n8jvsskmu0b5sb4qa1f2uvheu1bcirjqf7 AT 4ax DOT com> |
| NNTP-Posting-Host: | d21173-gw.netzdienste.de |
| X-Trace: | news.germany.net 151.189.4.62 969943788 1248 |
| X-Complaints-To: | abuse AT germany DOT net |
| NNTP-Posting-Date: | 26 Sep 2000 04:49:48 GMT |
| X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> schrieb in im
Newsbeitrag: n8jvsskmu0b5sb4qa1f2uvheu1bcirjqf7 AT 4ax DOT com...
> On Mon, 25 Sep 2000 17:37:59 +0200, "Martin Czamai"
> <M DOT Czamai AT peak-system DOT com> wrote:
>
> >Hello,
> >
> >my problem is that I want to lock functions (like interrupt service
> >routines) using the END_OF_FUNCTION and LOCK_FUNCTION macros from allegro
in
> >classes. This doesn't work because MYFUNCNAME_end is not a member of
> >MYCLASS. Any idea how to fix this problem?
> >Thanks in advance for your help
>
> If you're using a class method as an Allegro timer handler, make sure
> both the method and the END_OF_FUNCTION are static.
>
> static void Class::my_timer(void)
> {
>
> }
> static END_OF_FUNCTION(Class::my_timer);
>
> --
> <O
> ( \ GNOME vs. KDE: the game!
> X http://pineight.8m.com/nes.htm
>
> This is McAfee VirusScan. Add these two lines to your signature to
> prevent the spread of signature viruses. http://www.mcafee.com/
This doesn't work - the compiler returns the error message "cannot declare
member function Class::mytimer() to have static linkage" :-((
The intened purpose of the function i want to lock is the interrupt service
routine of some piece of hardware.
Any idea again?
Thank you
Martin
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |