delphi 中注册 activeX 插件

const
CN_EXECUTE_STR
= 'Regsvr32.exe /s %s ';
var
StrPath:
string;
begin
StrPath :
= 'C:\aa.dll ';
WinExec(PChar(Format(CN_EXECUTE_STR, [StrPath])), SW_NORMAL);
end;
posted @ 2011-03-28 15:22  许明吉博客  阅读(513)  评论(0)    收藏  举报