I developed a dll which has an active-x control, which is not getting loaded from other vc++ projects. I had set the AfxEnableControl continer in InitInstance of the dll application and the control is also registered.