Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

I built an activex control which is coded in C++.
This activex is working fine on my pc (windows 7 ) .
When I installed it on a windows xp pc and try to register it, it gives me a message "loadlibrary(".ocx") failed. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

One of the pc's I installed vs2008 and then successfully registered.
I tried on other one but failed.

I have an old ocx and it worked fine (compiled from the same project )but I made some changes on it (I moved positions of some objects)
then I compiled it and everything is ok. But can't be registered on the other pc.

Please, can anyone can help?
Maybe it need something specific to be installed in the client PC.

Regards
Ab Abulubbad
Posted
Updated 2-Jan-11 0:58am
v2
Comments
JF2015 2-Jan-11 6:58am    
Edited to improve spelling.

Yes, you need to install something on the target PC: the microsoft Visual C++ redistributable package. If your ActiveX was developed with visual studio 2008, then you can find the package here[^]. If you used another version of visual studio, then you have to look for the corresponding package.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 2-Jan-11 9:26am    
Sounds sensible! 5+
CPallini 3-Jan-11 7:01am    
You failed because you didn't use your CPMRU to guess the MFC thingie... :-D
hey thanx ,

but this dose not work with me.

i change from the project properties on configuration manager in general area i change the properity of Use of MFC from "Use MFC in a Shared DLL" to "Use MFC in a Static Library" and then its worked fine :-D

regards
Ab Abulubbad
 
Share this answer
 
Comments
ShilpiP 3-Jan-11 7:05am    
Yes i also suggest you the same. There are two ways to solve it either add 4 mfc dll (don't know the name) with your package or statically link the dll :). Anyways now it doesn't matter.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900