Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add IObjectSafety for activex controls made by Qt?
Forum Updated to NodeBB v4.3 + New Features

How to add IObjectSafety for activex controls made by Qt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zhangsi
    wrote on last edited by
    #1

    I can add IObjectSafety for ocx controls made by MFC as this:

    DECLARE_INTERFACE_MAP()
    BEGIN_INTERFACE_PART(ObjectSafety, IObjectSafety)
    	STDMETHOD(GetInterfaceSafetyOptions)(REFIID riid, DWORD __RPC_FAR *pdwSupportedOptions, DWORD __RPC_FAR *pdwEnabledOptions);
    	STDMETHOD(SetInterfaceSafetyOptions)(REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions);
    END_INTERFACE_PART(ObjectSafety)
    

    but, i don't know how to add it in Qt. Give me your hands please. Thank you~

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhangsi
      wrote on last edited by
      #2

      Can anybody help?

      jsulmJ 1 Reply Last reply
      0
      • Z zhangsi

        Can anybody help?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @zhangsi I'm not sure how this MFC question is related to Qt?
        What do you want to achieve?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        Z 1 Reply Last reply
        0
        • jsulmJ jsulm

          @zhangsi I'm not sure how this MFC question is related to Qt?
          What do you want to achieve?

          Z Offline
          Z Offline
          zhangsi
          wrote on last edited by zhangsi
          #4

          @jsulm I hope that this message can disappear. (without certificate)

          An ActiveX Control on this page is not safe...

          hskoglundH 1 Reply Last reply
          0
          • Z zhangsi

            @jsulm I hope that this message can disappear. (without certificate)

            An ActiveX Control on this page is not safe...

            hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            @zhangsi Hi, I think it's possible to add IObjectSafety for your ActiveQt controls, either by subclassing your QAxxxx class or encapsulating it. Are you using QAxFactory or some other QAx.. class for you controls?

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved