I construct an ActiveX Control and try to get data from the control thru a function GetData(VARIANT FAR* feature, short FAR* size_of_feature).

Then I apply the control in an exe application program. But now i encounter a problem, that is I can't get data from the function and system error is "Access voilation".

My program section is:

VARIANT f;
short size_f;
my_ctrl.GetData(&f, &size_f);

Pls help me. Thank you.