Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Adding ActiveX control in ActiveX control Project

Adding ActiveX control in ActiveX control Project

Scheduled Pinned Locked Moved COM
csscomhelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Muhammad Azam
    wrote on last edited by
    #1

    hi I am developing an ActiveX control in which i have placed a dialog box and and on that dialog box there are some controls like button control,edit control etc (its working fine). But when i add registered controls like flex grid control (from project>Add to project...>components and controls ...) on the dialog, the dialog box's m_hWnd member becomes NULL. Does any one know how to solve this problem.its urgent please. regards Azam

    L 1 Reply Last reply
    0
    • M Muhammad Azam

      hi I am developing an ActiveX control in which i have placed a dialog box and and on that dialog box there are some controls like button control,edit control etc (its working fine). But when i add registered controls like flex grid control (from project>Add to project...>components and controls ...) on the dialog, the dialog box's m_hWnd member becomes NULL. Does any one know how to solve this problem.its urgent please. regards Azam

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Does your ActiveX control assert failure with a message saying "An unsupported operation was attempted"? I had a similar problem and solved it by using AfxOleInit instead of CoInitialize(NULL).

      M 1 Reply Last reply
      0
      • L Lost User

        Does your ActiveX control assert failure with a message saying "An unsupported operation was attempted"? I had a similar problem and solved it by using AfxOleInit instead of CoInitialize(NULL).

        M Offline
        M Offline
        Muhammad Azam
        wrote on last edited by
        #3

        thanks Herbert now its working fine :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups