Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Ben Combee
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

Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Ben Combee
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

Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Ben Combee
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,

Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Frank Schaeckermann
[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

Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread nmailey
| | | | |-+--- | | | |To: Palm Developer Forum [EMAIL PROTECTED]| |cc: (bcc: Nole Mailey/pmc) | |Subject: Re: TblSetCustomDrawProcedure() - illegal implicit

RE: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Jeff Ishaq
-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

Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread nmailey
]| |cc: (bcc: Nole Mailey/pmc) | |Subject: Re: TblSetCustomDrawProcedure() - illegal implicit conversion

RE: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Scott Johnson
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

Re: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread nmailey
: 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

TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread nmailey
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

RE: TblSetCustomDrawProcedure() - illegal implicit conversion

2003-08-14 Thread Ben Combee
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