Problem with registering MFC Activex Control
-
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
-
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
Please refer Redistributing the MFC Library[^] Regards, Paresh.
-
Please refer Redistributing the MFC Library[^] Regards, Paresh.
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
-
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
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.
-
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.
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
-
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
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.