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. ActiveX control Initialization

ActiveX control Initialization

Scheduled Pinned Locked Moved COM
c++comsysadminhelp
5 Posts 3 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.
  • A Offline
    A Offline
    AssemblySoft
    wrote on last edited by
    #1

    Hi, i've just created an ATL dll which houses a full control for activeX support. Basically it's working ok. However i need to run some code once the control has been installed successfully. (after Register server) This control is windowless. In an MFC based control i could use something like OnCreate() but i don't have a clue where to start here. I basically need an event that gets called once the control is installed. Please Help Thanks in advance!!! Carl

    E 1 Reply Last reply
    0
    • A AssemblySoft

      Hi, i've just created an ATL dll which houses a full control for activeX support. Basically it's working ok. However i need to run some code once the control has been installed successfully. (after Register server) This control is windowless. In an MFC based control i could use something like OnCreate() but i don't have a clue where to start here. I basically need an event that gets called once the control is installed. Please Help Thanks in advance!!! Carl

      E Offline
      E Offline
      ElCachubrey
      wrote on last edited by
      #2

      Why you won't use DllRegsidterServer of you module class for this purpose???

      A 1 Reply Last reply
      0
      • E ElCachubrey

        Why you won't use DllRegsidterServer of you module class for this purpose???

        A Offline
        A Offline
        AssemblySoft
        wrote on last edited by
        #3

        Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister. Carl

        S 2 Replies Last reply
        0
        • A AssemblySoft

          Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister. Carl

          S Offline
          S Offline
          Saivert
          wrote on last edited by
          #4

          Why don't you add a key to "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" that will execute a function in your DLL, like: rundll32.exe yourdllpath.dll,YourFunc_RunDLL YourFunc_RunDLL must be declared in your DLL like this: int YourFunc_RunDLL(HWND parent, HINSTANCE hinst, LPCTSTR params) { return 0; } My homepage is down cos' I violated their Terms and Conditions.

          1 Reply Last reply
          0
          • A AssemblySoft

            Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister. Carl

            S Offline
            S Offline
            Saivert
            wrote on last edited by
            #5

            Why don't you add a key to "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" that will execute a function in your DLL, like: rundll32.exe yourdllpath.dll,YourFunc_RunDLL YourFunc_RunDLL must be declared in your DLL like this: int YourFunc_RunDLL(HWND parent, HINSTANCE hinst, LPCTSTR params) { return 0; } You may need to tell the user to restart his computer for this to work. I know there is a system function you can call to make the OS execute the RunOnce entries, but don't have that in my mind right now! My homepage is down cos' I violated their Terms and Conditions.

            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