Maks,

Thanks for the fast response -- that code actually gives me the compiler error too. I'm using the original CW9 version of POL, no updates, with the CW9 C++ compiler. Here's the instance member def:

void NumericField::Attach (UInt16 fieldId)
{
   CForm* pparent;

   CField::Attach (fieldId);
   pparent = CField::GetForm ();
   pparent->RegisterComponent (this);
}

Here's the err:

Error : function call 'operator new(unsigned long, void *)' does not match
'operator new(unsigned long)'
(point of instantiation: 'POL::CForm::RegisterComponent(POL::CComponent *)')
(instantiating: 'POL::CList<POL::CComponent *, POL::CObjectTraits<POL::CComponent *>, POL::CCompareTraits<POL::CComponent *>>::AddToTail(POL::CComponent *const &)')
(instantiating: 'POL::CObjectTraits<POL::CComponent *>::Constructor(POL::CComponent *&)')
POLColHelper.h line 157 ::new((void*)&rData) DATA_TYPE;


I haven't tried to trace this back into the source, thought I would see if it's something stupid before rooting around in POL.

Thanks,

Will

P.S. This is my first project using POL, it's making Palm dev fun again, nice work.





Maks Pyatkovskiy wrote:

Good day Palm,

Tuesday, October 7, 2003, 6:21:32 PM, you wrote:

W> I'm basically looking to see if anyone has used the CComponent object to
W> intercept events for a standard UI control, like a field.  I am getting
W> some template errors (compile-time) attempting to register the control
W> with a CForm instance.  I am subclassing both CField and CComponent,
W> then overriding the standard event handler, to try and get a field into
W> which you can only enter integers, for example.  I haven't dug through
W> the internals of the POL to try and figure it out, it seems I must be
W> using something incorrectly if I'm having compile-time problems like this.

Look into Q5/A5 topic at http://www.aqpoint.com/pol/faq.asp and you'll
see exact answer/example for your question.

-----------------------
Sincerely yours,
 Maks Pyatkovskiy              mailto:[EMAIL PROTECTED]





--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to