trichview.com

trichview.support




OnPrintComponent event handler


Return to index


Author

Message

Kei

Posted: 01/15/2004 21:43:35


Hello,


I'm seeing this problem when I try to write an event handler for

TRVPrint::OnPrintComponent.

Any suggestions are appreciated !!!


When I set the event handler for TRVPrint::OnPrintComponent on the Object

Inspector,  IDE generates this function:


void __fastcall OnPrintComponentHandler(TCustomRVPrint *Sender,

         TControl *PrintMe, TBitmap *&ComponentImage);


This function generates a compilation error, which says:


[C++ Error] Unit1.h(203): E2015 Ambiguity between 'TBitmap' and

'Windows::TBitmap'


Changing TBitmap to Graphics::TBitmap fixes this error. But now IDE

generates this error message on the message box every time I try to compile

this file.


[The OnPrintComponentImp method referenced by RVPrint1->OnPrintComponent has

an incompatible parameter list. Remove the reference?]


I can select [No] here, and everything works fine (this even handler is

actually called) . But it's more frustrating to select [No] every time I'm

compying this file. Are there any way to fix this problem?


Thank you for your help,

Kei







Powered by ABC Amber Outlook Express Converter