cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/16/13:00:43

Message-ID: <378F5E0E.161797BE@geocities.com>
From: Sahab Yazdani <beyonder69 AT geocities DOT com>
X-Mailer: Mozilla 4.51 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Weird error messages...
References: <378EAD2C DOT BD9A743C AT geocities DOT com> <378eb8c2 DOT 1394708 AT newsserver DOT cc DOT monash DOT edu DOT au>
Lines: 33
Date: Fri, 16 Jul 1999 12:30:06 -0400
NNTP-Posting-Host: 209.5.18.226
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 932142671 209.5.18.226 (Fri, 16 Jul 1999 12:31:11 EDT)
NNTP-Posting-Date: Fri, 16 Jul 1999 12:31:11 EDT
Organization: Sprint Canada Inc.
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Davin McCall wrote:
> 
> I suspect most of your problems would be solved if you made "handler"
> static (eg, "static void handler();").
> 
> The problem is that non-static member functions require a "hidden"
> parameter (the object on which they are to work).

Yes I could make a static function, but then the function couldn't
access any of the classes internal values and I'd have to make them
static and that would defeat the entire purpose of Object Orientation!
> 
> Davin.
> 
> On Thu, 15 Jul 1999 23:55:24 -0400, Sahab Yazdani
> <beyonder69 AT geocities DOT com> wrote:
> 
> >When I tried to compile a module of my gaming library I get a bunch of
> >weird errors that I have no clue what they mean. What I'm trying to do
> >is initialize a sound-card interrupt handler function thats within a
> >class declaration (is this even possible?):
> >
> >class SoundCard {
> >       void handler();
> >}
> >
> >the result is this:
> >
> [snipped]
> 
> __________________________________________________________
>        *** davmac - sharkin'!! davmac AT iname DOT com ***
> my programming page: http://yoyo.cc.monash.edu.au/~davmac/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019