OCX Rename
-
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
-
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
-
you can simply rename the ocx file, but should register it again (either manually or using RegSvr32.exe) to work properly.
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
-
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
-
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
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 -
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 -
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
-
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
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'