Cast from Variant to TfrxPictureView
I'm trying to cast a Variant parameter received on the OnUserFunction event into a TfrxPictureView object but with no chance. Any help will be highly appreciated.
Regards
Variant __fastcall THarbourFR::frxReportUserFunction(const UnicodeString MethodName, Variant &Params)
{
Variant Picture = Params.GetElement(1);
TfrxPictureView *Object;
// How to pass Picture to Object? TIA.
}
Regards
Variant __fastcall THarbourFR::frxReportUserFunction(const UnicodeString MethodName, Variant &Params)
{
Variant Picture = Params.GetElement(1);
TfrxPictureView *Object;
// How to pass Picture to Object? TIA.
}
Comments
Found!!
int pointer = Params.GetElement(1);
TfrxPictureView *Pic=reinterpret_cast<TfrxPictureView *>(pointer);
Regards,