64,637
社区成员
发帖
与我相关
我的任务
分享
HKEY hKey;
LPCTSTR data_Set= "SOFTWARE\\Classes\\CLSID\\{BDEB0088-66F9-4A55-ABD2-0BF8DEEC1196}\\InprocServer32\\";
long ret = ::RegOpenKeyEx( HKEY_LOCAL_MACHINE, data_Set, 0, 0, &hKey);
if(ret == 0x02)//Register didn't have the com clsid
{
char strAddr[300];
char strCMD[400] = "regsvr32.exe \"";
//ActiveX Com
GetCurrentDirectory(150, strAddr);
strcat( strAddr, "\\TeeChart8.ocx\"");
strcat( strCMD, strAddr);
WinExec( _T(strCMD), SW_MAXIMIZE );
}