Hi to everyone, I have created two Active x dynamic linking library in c++. Marked one of the active x as safety using IObjectSafety and another is normal unsigned active x. I have tested both the active x in all internet explorer version (6, 7, 8, 9, 10). Both works fine in internet explorer 6, 7 and 8. In internet explorer 9 and 10 (Normal mode), unsigned active x works fine but signed active x doesn't seem to work. I have tested the same in internet explorer 9 & 10 (compatibility view), both works fine. The class name for the Active x control is Test. I have highlighted the line below. Sample Source for IObjectSafety: // Test.h : Declaration of the CTest #pragma once #include "objsafe.h" #include "atlctl.h" class ATL_NO_VTABLE CTest : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CTest, &CLSID_Test>, public IObjectSafetyImpl <CTest, INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA>, public IDispatchImpl<ITest, &IID_ILegend, &LIBID_APILib, /*wMajor =*/ 1, /*wMinor =*/ 0> { public: CTest() { } DECLARE_REGISTRY_RESOURCEID(IDR_Test) BEGIN_COM_MAP(CTest) COM_INTERFACE_ENTRY(ITest) COM_INTERFACE_ENTRY(IDispatch) COM_INTERFACE_ENTRY(IObjectSafety) END_COM_MAP() DECLARE_PROTECT_FINAL_CONSTRUCT() HRESULT FinalConstruct() { return S_OK; } void FinalRelease() { } }; OBJECT_ENTRY_AUTO(__uuidof(Test), CTest) Is internet explorer 9 and 10 support IObjectSafety or did i make any mistake?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)