-
June 19th, 2013, 12:04 PM
#1
[RESOLVED] Has anybody figured out how to run 2012 apps on XP
Installed 2012 last week and apps won't run on XP or 2003. They give a message "Not a valid Win32 application", or something to that effect. So if I set the platform toolset to Visual Studio 2012 Windows XP, I get a link error "error LNK2019: unresolved external symbol __imp___vsnprintf referenced in function _StringVPrintfWorkerA@20"
I'd rather not go back to 2008, but I'm kind of stuck at this point.
-
June 20th, 2013, 06:39 AM
#2
Re: Has anybody figured out how to run 2012 apps on XP
the C++ runtime library in VS2012 uses features not available in XP or 2003.
so you either accept that, write your own runtime library, or make programs that don't need the runtime at all.
-
June 20th, 2013, 06:53 AM
#3
Re: Has anybody figured out how to run 2012 apps on XP
I don't know whether this will help or not ...
http://blogs.msdn.com/b/vcblog/archi.../10357555.aspx
edit : re-reading your post, it looks like you might be already doing this. Sorry.
-
June 20th, 2013, 07:08 AM
#4
Re: Has anybody figured out how to run 2012 apps on XP
Originally Posted by GCDEF
So if I set the platform toolset to Visual Studio 2012 Windows XP, I get a link error "error LNK2019: unresolved external symbol __imp___vsnprintf referenced in function _StringVPrintfWorkerA@20"
I'd rather not go back to 2008, but I'm kind of stuck at this point.
In case you're not sensitive too much to what really vsnprintf comes from, you may implement some dll, dummy or not so dummy, with the said function exported. At least this will let you be un-stuck from where you now are.
Best regards,
Igor
-
June 20th, 2013, 07:19 AM
#5
Re: Has anybody figured out how to run 2012 apps on XP
Originally Posted by Igor Vartanov
In case you're not sensitive too much to what really vsnprintf comes from, you may implement some dll, dummy or not so dummy, with the said function exported. At least this will let you be un-stuck from where you now are.
I seem to have this working now, but what a pain.
I downloaded the Vista SDK and explicitly link in odbccp32.lib from that SDK, select platform toolset to Visual Studio 2012 Windows XP. That gave the error "The procedure entry point InitializeCriticalSectionEx could not be located in the dynamic link library KERNEL32.dll. " Searching around on that error led me to installing Visual Studio Update 3. That combination seems to work, but it shouldn't be that difficult.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|