At 12:05 PM 8/12/2003, [EMAIL PROTECTED] wrote:
That worked, but I'm now getting this error:
'illegal implicit conversion from
'void(*) (void *, unsigned short, unsigned short, struct RectangleType *)'
to
'void(*) (void *, short, short, struct RectangleType *)'
First of all, I'm only sending
I don't quite understand what you mean by adjust the actual type of the
function I'm passing in...
The return type of MainListDrawFunction is void, and the 2nd and 3rd
parameters are of type Word being UInt16.
I tried casting the everything to UInt16, as well as changing Word to
UInt16 with the
At 11:06 AM 8/12/2003, [EMAIL PROTECTED] wrote:
This compiles and runs fine in CodeWarrior Release 5:
TblSetCustomDrawProcedure (pTable, Col_SlotCode,
MainListDrawFunction);
but it says for CW9 that I'm performing an:
illegal implicit conversion from 'void (void *, unsigned short,
[EMAIL PROTECTED] wrote:
That worked, but I'm now getting this error:
'illegal implicit conversion from
'void(*) (void *, unsigned short, unsigned short, struct RectangleType *)'
to
'void(*) (void *, short, short, struct RectangleType *)'
First of all, I'm only sending 3 parameters, so why is
|
| | |
|-+---
|
|
|
|To: Palm Developer Forum [EMAIL PROTECTED]|
|cc: (bcc: Nole Mailey/pmc)
|
|Subject: Re: TblSetCustomDrawProcedure() - illegal implicit
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Ben Combee
Sent: Tuesday, August 12, 2003 12:39 PM
To: Palm Developer Forum
Subject: RE: TblSetCustomDrawProcedure() - illegal implicit conversion
At 02:25 PM 8/12/2003, Scott Johnson wrote
]|
|cc: (bcc: Nole Mailey/pmc)
|
|Subject: Re: TblSetCustomDrawProcedure() - illegal implicit conversion
From: Ben Combee [mailto:[EMAIL PROTECTED]
C++ doesn't allow the implicit taking of a function pointer
from a function bare name. That's what the error is saying.
Ben, are you sure about that? My copy of Stroustrup 3rd Ed. (section
7.7) explicitly states the '' is optional, and the compiler
: TblSetCustomDrawProcedure() - illegal implicit conversion
|
|
I don't quite understand what you mean by adjust the actual type of the
function I'm passing in...
The return type
This compiles and runs fine in CodeWarrior Release 5:
TblSetCustomDrawProcedure (pTable, Col_SlotCode,
MainListDrawFunction);
but it says for CW9 that I'm performing an:
illegal implicit conversion from 'void (void *, unsigned short, unsigned
short, struct RectangleType *)' to
At 02:25 PM 8/12/2003, Scott Johnson wrote:
From: Ben Combee [mailto:[EMAIL PROTECTED]
C++ doesn't allow the implicit taking of a function pointer
from a function bare name. That's what the error is saying.
Ben, are you sure about that? My copy of Stroustrup 3rd Ed. (section
7.7) explicitly
11 matches
Mail list logo