Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I'm trying to put a VC++10 app that I've used successfully in computers with windows XP professional with the service pack 2 installed.

Now it is mandatory to install the same * application to a windows XP computer without the service pack 2 installed and it seems that I can't install that service pack there. :((

* I can rebuild.

The problem I'm seeing here is that when I try to run that app in the computer without SP2 I get this error message:

"The procedure entry point EncodePointer could not be located in the dynamic link library KERNEL32.dll."

It seems that without SP2 installed this is quite normal... :(

Is it possible to use VC++10 to link the app and to make it work into that XP pro without SP2 computer?

I can also use VC++2005 in order to do it and I've already tried to rebuild all the solution, but then it still fails to load the appplication... it tells me:

"this application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

This was initially a project developed using VC8, then it got modified and a lot of upgrades using VC10.

I don't get why... all the libraries that are dependant are in the same folder than the exe file...

I'm completely lost now...

What should I take a look into?

Thank you in advance for your help! :thumbsup:
Posted
Updated 22-Jan-12 1:05am
v2
Comments
Sergey Alexandrovich Kryukov 22-Jan-12 13:25pm    
Why without SP2?!
--SA
Joan M 22-Jan-12 13:28pm    
Even if it sounds stupid, it is a computer with Windows XP embedded, it is the computer that controls a robot and therefore it is not as easy to update as it should as the manufacturers of the robot device need the OS in a really specific way to allow the robot software to work properly... so I can't update it... :((

System libraries (such as KERNEL32.dll) are distributed with the OS and updated as required when a Service Pack is installed. You have built an application that makes use of some feature that requires SP2, so the target machine needs to be at the same level. Alternatively, remove the dependency on this feature so your application is targetted at the lowest level of system it is to work on.
 
Share this answer
 
Comments
Joan M 22-Jan-12 7:57am    
Thank you Richard, but this is not the case (at least as far as I've seen it)... The app was developed under xp and using vc8. Then I started to update a lot of minor things new edit controls, some changes on the dialog layouts, some name conventios updated... But nothing big.
Anyway it is not working as without sp2 the mfc used in vc10 doesn't works undewr xp without sp2.
Richard MacCutchan 22-Jan-12 8:07am    
but this is not the case
Well, this is exactly the case; as you have described.
Richard MacCutchan 22-Jan-12 8:10am    
Additional: See the minimum supported level of EncodePointer as defined here.
Joan M 22-Jan-12 9:12am    
I guess that what has happened is that after importing the code into VC10 then it automatically has
updated several parts of the solution... because I've discovered the EncodePointer today... :sigh:

Thank you!
Sergey Alexandrovich Kryukov 22-Jan-12 13:25pm    
Correct, a 5.
--SA
Now it is mandatory to install the same * application to a windows XP computer without the service pack 2 installed and it seems that I can't install that service pack there.

I'd try to convince the customer to upgrade XP to service pack 3. MS has made a serious effort when it comes to improve the security of their OS. If those aren't installed your system will be open to what is now well known flaws that can easily be exploited.

Have a look at: Security: It’s Getting Worse[^]

The practice of never patching production systems makes automation systems particularly vulnerable. So you will be doing your customer a favor, and save yourself a bit of trouble.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Kim Togo 22-Jan-12 7:50am    
My 5 Espen. Good points. Windows XP is over 10 years old now. Service Pack 3 for Windows XP is mandatory :-)
Espen Harlinn 22-Jan-12 7:51am    
Thank you Kim!
Joan M 22-Jan-12 7:53am    
Espen! I can't do that, the computer is an industrial system that moves a robot... Impossible to update due to protections and blocking systems from the manufacturer... :(
Espen Harlinn 22-Jan-12 8:02am    
Microsoft Visual C++ 2010 Redistributable Package requires Windows XP with Service Pack 3, see: http://www.microsoft.com/download/en/details.aspx?id=5555
Joan M 22-Jan-12 9:13am    
Then I will have to go back to the old version, use the VC8 to make all the changes again and at the end build the complete solution again... :( I'm afraid that I won't be able to update the robot OS...
Thank you!

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