|
[code]//功能: 指定的arx是否已经加载
//参数: strArxFileName,arx文件名,绝对路径
//返回: arx是否已经加载
BOOL CArxAddinChecker::IsArxLoaded(const CString strArxFileName)
{
TCHAR lpName[MAX_PATH];
lstrcpy(lpName,PathFindFileName(strArxFileName));
BOOL bLoad=FALSE;
struct resbuf * LoadArxs=acedArxLoaded();//已经加载的arx文件
if(LoadArxs!=NULL)
{
struct resbuf * LoadArxNext=LoadArxs->rbnext;//遍历LoadArxs
while(LoadArxNext!=NULL)
{
if(lstrcmpi(LoadArxNext->resval.rstring,lpName)==0)
{
bLoad=TRUE;
break;
}
LoadArxNext=LoadArxNext->rbnext;
}
}
return bLoad;
}[/code] |
|