TMetaClass??一个有深度的问题
phoex 2002-11-03 04:39:46 有一个控件中有这么一段DELPHI程序:
type
Ttmpb=class(Ttmpa)
end
Ttmpc=class of Ttmpa;//1
procedure Testfun;
var m:Ttmpc;
begin
m=Ttmpb;
end;
在编译成BCB以后,在头文件中(hpp).语句一变成了
typedef TMetaClass* Ttmpc;
1. class of 在delphi中应该是类指针,哪TMetaClass 是一个什么东东?
2. 我如何写一个BCB版本的Testfun?
void Testfun
{
//?????
}