C
cherryjing
Unregistered / Unconfirmed
GUEST, unregistred user!
type
PExample = ^TExample;
TExample = record
a:integer;
b:word;
end;
var
ov:OleVariant;//COM组件返回的OleVariant类型变量定义
example: TExample;
begin
... // 调用COM取得ov
example.a := PExample(ov)^.a;
example.b := PExample(ov)^.b;
end;
编译出错提示为Invalid typecast
刚刚加入,分数不多,还望不吝赐教!
PExample = ^TExample;
TExample = record
a:integer;
b:word;
end;
var
ov:OleVariant;//COM组件返回的OleVariant类型变量定义
example: TExample;
begin
... // 调用COM取得ov
example.a := PExample(ov)^.a;
example.b := PExample(ov)^.b;
end;
编译出错提示为Invalid typecast
刚刚加入,分数不多,还望不吝赐教!