Mail Archives: djgpp/1999/07/19/13:35:22
The member-function of a particular object of a certain class does not
exist as a seperate entity to the same member-function of a different
object in the same class.
So, you can't create a member function to serve as an interrupt
handler. However, you could have the actual interrupt handler (a
non-member function) to call the member function with reference to a
particular object, for instance:
class SoundCard {
(declarations etc...)
....
};
SoundCard sblaster;
void handler( void )
{
sblaster.handler();
}
Of course, this doesn't easily allow for more than one soundcard to be
operative at once... You really have to use your imagination to find a
solution for this case.
Davin.
On Fri, 16 Jul 1999 12:30:06 -0400, Sahab Yazdani
<beyonder69 AT geocities DOT com> wrote:
>> I suspect most of your problems would be solved if you made "handler"
>> static (eg, "static void handler();").
[snip]
>
>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!
__________________________________________________________
*** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/
- Raw text -