I have an application which uses an ActiveX control in CMainFrame (not a dialog). I create it in the OnCreate function and then proceed to use it. If the control (MS Agent) isn't installed, it works fine (just doesn't do anything, but no errors). How can I test to see if it (the control) is installed so that I can disable menu items that use the control?