Migrating application from windows XP to windows 8

Dear Experts,

I have some applications that run smooth on win XP.
I need to migrate these applications from win XP to win 8.

The thing I concern now is that, whether all the Window APIs can work normally?
Can you help me:
-  How to find risk or can-not-work APIs (when move from Win XP to Win 8)?

Regards.
DreamSAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dipopoCommented:
Hello,

I think you can select application compatibility when installing select XP.

Right click the installer, select troubleshoot compatibility and test with XP compatibility if it runs OK, save this for the application.
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Windows XP applications are expected to work on Windows 8. The only way to know for sure there isn't something very, very ancient API in use is to try.
0
phoffricCommented:
Are these applications ones that you developed or purchased?

This Gartner report is over a year old, and perhaps Windows 8.1 alleviates the "beta" concerns in migrating XP to Windows 8.
    "Gartner: XP Holdouts Should Migrate to Windows 7 by 2013"
    http://rcpmag.com/articles/2012/05/24/gartner-xp-holdouts-should-migrate-to-windows-7-by-2013.aspx


It looks like the best way to migrate with highest functional certainty (with probably some loss of performance) is virtualization. Take a look at this article for guidance.
    http://www.pcadvisor.co.uk/how-to/windows/3411230/how-migrate-windows-xp-mode-windows-8/
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

jkrCommented:
In my experience, everything should work fine, yet there are some caveats:

- file system and registry virtualization:

If you are relying on files being stored at a certain location, your application might encounter problems. E.g.

Real path
C:\Program Files\Foo\Foo bar\config.ini

Virtual path
C:\Users\<account>\AppData\Local\VirtualStore\Program Files\Foo\Foo bar\config.ini  

Open in new window


The OS handles that transparently, but better look out. If all of a sudden a file can't be located, this might be the reason. The same applies to the registry:

Real path
HKEY_LOCAL_MACHINE\Software\FooKey

Virtual path
HKEY_USERS\<User SID>_Classes\VirtualStore\Machine\Software\FooKey   

Open in new window


- UAC:

If your application does things that require higher privileges thann on XP, you'll get the infamous UAC prompt. To identify and prevent issues like that, refer to http://www.codeproject.com/Articles/17968/Making-Your-Application-UAC-Aware ("Making Your Application UAC Aware") - this article also addresses the virtualization issue, the examples above were takne from it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phoffricCommented:
most people don't seem to know Hyper-V even exists in Windows 8, let alone what it's good for.
This link shows how to determine whether your Windows 8 platform will be sufficient for the Hyper-V installation. 5 excellent uses of Windows 8 Hyper-V

This link shows how to "Use Windows 8 Hyper-V to virtualize Windows XP"
0
DreamSAAuthor Commented:
Thanks for your all expert comments.
All are valid for me with my problem.
I'm going to accept all solutions.

But, I want to ask 1 more question:
-  Can I export all used Win APIs from my source code? Do we have any tool for doing this (It's terrible if we do it manually - my project is about hundreds of kLOC)?

Regards.
0
jkrCommented:
>> Can I export all used Win APIs from my source code?

Open a Visual Studio Command Prompt (from the "Tools" menu), 'cd' to your app's directory and type

dumpbin /imports myfile.exe > imports.txt

Open in new window


If you use any 3rd party libraries, you will have to manually remove them from the resulting list.
0
DreamSAAuthor Commented:
Thanks for your quick answer.
Please explain me one more:
-  Why in windows 8 (C:\Windows\System32), there're:
   +  not only user32.dll and kernel32.dll
   +  but also api-ms-win-....dll and \downlevel\api-ms-win-....dll

Regards.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.