Sender.Tag and 64 bit
I try to use the Sender.Tag in an OnAfterPrint Event (C++ Builder XE4)
If I compile and run this code in a c++ script for 32 bit Windwos it works, under 64 bit I get the message:
"Could not convert variant of type (Null) into type (integer)."
It seems that Sender.Tag is not available under 64 bit!? It is always Null.
void Header1OnAfterPrint(TfrxComponent Sender)
{
int tag = Sender.Tag;
}
If I compile and run this code in a c++ script for 32 bit Windwos it works, under 64 bit I get the message:
"Could not convert variant of type (Null) into type (integer)."
It seems that Sender.Tag is not available under 64 bit!? It is always Null.
void Header1OnAfterPrint(TfrxComponent Sender)
{
int tag = Sender.Tag;
}