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. Problem with registering MFC Activex Control

Problem with registering MFC Activex Control

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++visual-studiocom
6 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.
  • A Offline
    A Offline
    ashishbhatt 0
    wrote on last edited by
    #1

    Hi, I have created MFC Activex Control in VS 2005.It is working very fine on my machine. Now I want to run it on the different machine**(NOTE : Without VS 2005)**.So I tried to register it with REGSVR32 , but I gives me the error like..... LoadLibrary ("ActivexVS05.ocx") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. And also it is registered very easily on diff machine with installled VS 2005. So,Can anyone suggest me what is the problem??

    Ashish Bhatt

    P 1 Reply Last reply
    0
    • A ashishbhatt 0

      Hi, I have created MFC Activex Control in VS 2005.It is working very fine on my machine. Now I want to run it on the different machine**(NOTE : Without VS 2005)**.So I tried to register it with REGSVR32 , but I gives me the error like..... LoadLibrary ("ActivexVS05.ocx") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. And also it is registered very easily on diff machine with installled VS 2005. So,Can anyone suggest me what is the problem??

      Ashish Bhatt

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      Please refer Redistributing the MFC Library[^] Regards, Paresh.

      A 1 Reply Last reply
      0
      • P Paresh Chitte

        Please refer Redistributing the MFC Library[^] Regards, Paresh.

        A Offline
        A Offline
        ashishbhatt 0
        wrote on last edited by
        #3

        Thanks For Reply. As you told me to read the content as linked in your reply, I read it very carefully. And I got one confusion that In this content I found the below line......... If you redistribute an MFC DLL, be sure you redistribute the retail version rather than the debug version. Debug versions of the DLLs are not redistributable. Debug versions of the MFC DLLs have a trailing "d" in their file names, as in Mfc80d.dll. Here how can I redistribute my ocx of the retail version not debug version.And where this retail version is on my system. Sorry for the such silly quetions but I have no idea about this retail version. can you suggest me something more? Thanks.

        Ashish Bhatt

        P 1 Reply Last reply
        0
        • A ashishbhatt 0

          Thanks For Reply. As you told me to read the content as linked in your reply, I read it very carefully. And I got one confusion that In this content I found the below line......... If you redistribute an MFC DLL, be sure you redistribute the retail version rather than the debug version. Debug versions of the DLLs are not redistributable. Debug versions of the MFC DLLs have a trailing "d" in their file names, as in Mfc80d.dll. Here how can I redistribute my ocx of the retail version not debug version.And where this retail version is on my system. Sorry for the such silly quetions but I have no idea about this retail version. can you suggest me something more? Thanks.

          Ashish Bhatt

          P Offline
          P Offline
          Paresh Chitte
          wrote on last edited by
          #4

          Hi Ashish, Retail version means release build. You have to build your OCX in release configuration. Release build does not have debug information. Please read http://msdn2.microsoft.com/en-us/library/ms889184.aspx for more information. Regards, Paresh.

          A 1 Reply Last reply
          0
          • P Paresh Chitte

            Hi Ashish, Retail version means release build. You have to build your OCX in release configuration. Release build does not have debug information. Please read http://msdn2.microsoft.com/en-us/library/ms889184.aspx for more information. Regards, Paresh.

            A Offline
            A Offline
            ashishbhatt 0
            wrote on last edited by
            #5

            Thank you very much for replying me. After very long time but still reply is important. Now in present I have started my control to be registered on other PC also. If you have no any problem then may I ask you one more quetion? So, At right now I have created one package of Project setup to install my Activex on other PC.But I have to register my control manually Using REGSVR32.exe But I want to register that Control during package installation Process. Do you have any Idea? I so then you can share with me. Thanks.

            Ashish Bhatt

            P 1 Reply Last reply
            0
            • A ashishbhatt 0

              Thank you very much for replying me. After very long time but still reply is important. Now in present I have started my control to be registered on other PC also. If you have no any problem then may I ask you one more quetion? So, At right now I have created one package of Project setup to install my Activex on other PC.But I have to register my control manually Using REGSVR32.exe But I want to register that Control during package installation Process. Do you have any Idea? I so then you can share with me. Thanks.

              Ashish Bhatt

              P Offline
              P Offline
              Paresh Chitte
              wrote on last edited by
              #6

              Hi Ashish, Thanks. Yes, you can very well use the RegSvr32.exe in packager. However, I don't know much about how to. Regards, Paresh.

              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