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. ATL / WTL / STL
  4. OCX Rename

OCX Rename

Scheduled Pinned Locked Moved ATL / WTL / STL
c++tutorial
8 Posts 4 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
    Member 7411422
    wrote on last edited by
    #1

    Hi , I developed a new OCX in VC++ 2008 , it is working .i want to rename the OCX. how to do that. Pls give u’r suggestion . Now my OCX file name is “IPCalling.ocx”, rename to “IPCall.ocx” Thanks shakumar

    C 1 Reply Last reply
    0
    • M Member 7411422

      Hi , I developed a new OCX in VC++ 2008 , it is working .i want to rename the OCX. how to do that. Pls give u’r suggestion . Now my OCX file name is “IPCalling.ocx”, rename to “IPCall.ocx” Thanks shakumar

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      you can simply rename the ocx file, but should register it again (either manually or using RegSvr32.exe) to work properly.

      S 1 Reply Last reply
      0
      • C Cool_Dev

        you can simply rename the ocx file, but should register it again (either manually or using RegSvr32.exe) to work properly.

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        This may or may not work depending on how the registration code is implemented: if it hard codes the name of the exe it will not.

        Steve

        C S 2 Replies Last reply
        0
        • S Stephen Hewitt

          This may or may not work depending on how the registration code is implemented: if it hard codes the name of the exe it will not.

          Steve

          C Offline
          C Offline
          Cool_Dev
          wrote on last edited by
          #4

          I just guessed that he wasn't writing the acitveX from scratch and didn't hardcode any file names in his own DllRegisterServer :)

          1 Reply Last reply
          0
          • S Stephen Hewitt

            This may or may not work depending on how the registration code is implemented: if it hard codes the name of the exe it will not.

            Steve

            S Offline
            S Offline
            Sauro Viti
            wrote on last edited by
            #5

            That's true :thumbsup:, but to register an ActiveX, the full path of it is needed: using an hardcoded one, means that to work properly, the ActiveX must reside on a specific folder (the one that the programmer had choosen)... :wtf: :(( It's too much better to let unmodified the registration code generated by the Application Wizard, as it uses the GetModuleFileName function. :-D

            C 1 Reply Last reply
            0
            • S Sauro Viti

              That's true :thumbsup:, but to register an ActiveX, the full path of it is needed: using an hardcoded one, means that to work properly, the ActiveX must reside on a specific folder (the one that the programmer had choosen)... :wtf: :(( It's too much better to let unmodified the registration code generated by the Application Wizard, as it uses the GetModuleFileName function. :-D

              C Offline
              C Offline
              Cool_Dev
              wrote on last edited by
              #6

              yes.. thats what i exactly meant and what he might have already done! :thumbsup:

              M 1 Reply Last reply
              0
              • C Cool_Dev

                yes.. thats what i exactly meant and what he might have already done! :thumbsup:

                M Offline
                M Offline
                Member 7411422
                wrote on last edited by
                #7

                Thanks for u’r reply Finally I able to rename the OCX file .it is working fine in my test application. But my requirement is , I am already having “IPCall.ocx” , now I created new “IPCalling.ocx” and i try to rename to “IPCall.ocx” but i cant. so i created another new OCX application in name of “IPCall.ocx” and include the all files , methods & property as older OCX and applying older OCX GUID CDECL to new it is working in Test application. But when I applying to main application this new OCX rise error Error : 339:component ’ IPCall.ocx’or one of its dependencis not correctly registered: a file missing or invalid I registerd the OCX file & it is working in Test application which is tested by the older OCX file.. But not working in main application. How to check the "missing dependencis in new OCX". or list all dependencis in older OCX so ill compare to new and if it is missing i will include. Regards & Thanks shakumar

                modified on Friday, September 3, 2010 9:40 AM

                C 1 Reply Last reply
                0
                • M Member 7411422

                  Thanks for u’r reply Finally I able to rename the OCX file .it is working fine in my test application. But my requirement is , I am already having “IPCall.ocx” , now I created new “IPCalling.ocx” and i try to rename to “IPCall.ocx” but i cant. so i created another new OCX application in name of “IPCall.ocx” and include the all files , methods & property as older OCX and applying older OCX GUID CDECL to new it is working in Test application. But when I applying to main application this new OCX rise error Error : 339:component ’ IPCall.ocx’or one of its dependencis not correctly registered: a file missing or invalid I registerd the OCX file & it is working in Test application which is tested by the older OCX file.. But not working in main application. How to check the "missing dependencis in new OCX". or list all dependencis in older OCX so ill compare to new and if it is missing i will include. Regards & Thanks shakumar

                  modified on Friday, September 3, 2010 9:40 AM

                  C Offline
                  C Offline
                  Cool_Dev
                  wrote on last edited by
                  #8

                  if you just want to only change the name of output binary, why don't you cahnge it in Project Properties->Linker->General->Output File. ? As you could successfully register the ocx, there is rare chance to miss the dependencies. still to make sure on implicitly linked dependencies, if any, use tools like 'Dependency Walker'

                  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