Mail Archives: djgpp/1997/11/18/13:16:23
Michael Mauch wrote:
> > Okay, i got this code out of a mouse vector (or whatever you call
> > that 0x33
> > thing) example in DJGPP's faq. I copied in the code, looked up all
> > the
> > functions (i like to know what i'm doing), and tried calling it
> > like:
> >
> > foo(theVector());
>
> What's foo, what's theVector()? "That 0x33 thing" is not very helpful
> for guessing what you're trying to do.
I'm not specifically familiar with what the original poster is trying to
do, but it looks like he's trying to call a function (`foo') with a
function _pointer_ (`theVector') as its argument. In this case, the
statement he wrote above is not correct -- he is _invoking_ `theVector'
(which presumably takes arguments and thus is giving an error). What he
meant is this:
fo(theVector);
The name of a function decays to a pointer to it, which is what the
original poster was looking for.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"Since when can wounded eyes see / If we weren't who we were"
/ Joi
- Raw text -