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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Registering ActiveX Control

Registering ActiveX Control

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomperformance
5 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.
  • V Offline
    V Offline
    vin
    wrote on last edited by
    #1

    Hi, I have created an ActiveX control. Now i want to register this control in another machine. I copied the .ocx file to that machine and used the regsvr32 for registering the control. But i'm getting an error "LoadLibrary("control.ocx") failed. Invalid Access to memory Location." Why is this. I have the local admin power to register the control in that machine. Pls help Vini

    J 1 Reply Last reply
    0
    • V vin

      Hi, I have created an ActiveX control. Now i want to register this control in another machine. I copied the .ocx file to that machine and used the regsvr32 for registering the control. But i'm getting an error "LoadLibrary("control.ocx") failed. Invalid Access to memory Location." Why is this. I have the local admin power to register the control in that machine. Pls help Vini

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Could it be your .ocx is dependant on some DLLs not present in the target system? Check for dependencies from the C run-time library and MFC. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      V 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        Could it be your .ocx is dependant on some DLLs not present in the target system? Check for dependencies from the C run-time library and MFC. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        V Offline
        V Offline
        vin
        wrote on last edited by
        #3

        Thanks for the reply. But i'm new to this area. So can you tell me how to check for the dependencies? Please...

        J 1 Reply Last reply
        0
        • V vin

          Thanks for the reply. But i'm new to this area. So can you tell me how to check for the dependencies? Please...

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          Sure. Go to Project->Settings->General tab. The "Microsoft Foundation Classes" combobox sets whether MFC is statically or dynamically linked ("Shared DLL"). If the latter, try switching to the former to see if your problem disappears. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          V 1 Reply Last reply
          0
          • J Joaquin M Lopez Munoz

            Sure. Go to Project->Settings->General tab. The "Microsoft Foundation Classes" combobox sets whether MFC is statically or dynamically linked ("Shared DLL"). If the latter, try switching to the former to see if your problem disappears. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

            V Offline
            V Offline
            vin
            wrote on last edited by
            #5

            It worked!!!!! Thanks a lot.... :) :) Vini

            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