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. C / C++ / MFC
  4. mfc ActiveX control install issue

mfc ActiveX control install issue

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpc++questiondiscussion
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.
  • W Offline
    W Offline
    work_to_live
    wrote on last edited by
    #1

    Not sure if this belongs here or in the COM discussion. Since I created an mfc ActiveX control with the mfc ActiveX Wizard, I'll try here... I created my first ActiveX control, and successfully installed it on my machine with regsvr32 "my controls name" Then I fired up VB and verified that I could use the control in a VB application. I was fat dumb and happy. To test it, I sent the .ocx file to a friend and had him put it in C:\temp. (The controls name is transponder.ocx) I had him execute the following from "Start" "Run"... regsvr32 C:\temp\transponder.ocx When he executed the command, he got the following error... Load Library “C:\temp\transponder.ocx” failed – the specified module could not be found. Any idea what this is trying to tell me? I set up the project as a static build, so I don't think it's looking for any dlls.

    D 1 Reply Last reply
    0
    • W work_to_live

      Not sure if this belongs here or in the COM discussion. Since I created an mfc ActiveX control with the mfc ActiveX Wizard, I'll try here... I created my first ActiveX control, and successfully installed it on my machine with regsvr32 "my controls name" Then I fired up VB and verified that I could use the control in a VB application. I was fat dumb and happy. To test it, I sent the .ocx file to a friend and had him put it in C:\temp. (The controls name is transponder.ocx) I had him execute the following from "Start" "Run"... regsvr32 C:\temp\transponder.ocx When he executed the command, he got the following error... Load Library “C:\temp\transponder.ocx” failed – the specified module could not be found. Any idea what this is trying to tell me? I set up the project as a static build, so I don't think it's looking for any dlls.

      D Offline
      D Offline
      Dave Bryant
      wrote on last edited by
      #2

      Use dependancy walker to see what DLLs it does need. Even if it is statically linked to MFC, it may still require the C-runtime DLLs (e.g. msvcrt.dll). Dave

      W 1 Reply Last reply
      0
      • D Dave Bryant

        Use dependancy walker to see what DLLs it does need. Even if it is statically linked to MFC, it may still require the C-runtime DLLs (e.g. msvcrt.dll). Dave

        W Offline
        W Offline
        work_to_live
        wrote on last edited by
        #3

        WOW... According to dependency walker, it requires the following... kernel32.dll, user32.dll, gdi32.dll, comdlg32.dll, winspool.drv, advapi32.dll, shell32.dll, comctl32.dll, ole32.dll, olepro32.dll, oleaut32.dll at the first level Then each of them has a list! Is it necessary to include all these in an install utility? Does one of these look like a good candidate for something that's not typically loaded in a Win2000 installation? Thanks!

        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