FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SUBSYSTEM:WINDOWS:6.00 doesn't work on WindowsXP

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
nocide



Joined: 03 Nov 2009
Posts: 19

PostPosted: Sat May 15, 2010 11:52 am    Post subject: SUBSYSTEM:WINDOWS:6.00 doesn't work on WindowsXP Reply with quote

WindowsXP has the versionNr: NT5.1,
so application linked with SUBSYSTEM:WINDOWS:6.00 dos not work on WinXP.
But leave the version away should also work fine, sine the default for
Subsystem:Windows ist:
4.00 (x86) 5.01 (Itanium) 5.02 (x64)


greets
matthias
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Sun May 16, 2010 10:15 am    Post subject: Reply with quote

I'll remove the version number. I had just copied it from another report.

Thanks for the feedback.
Rainer
Back to top
View user's profile Send private message
dickl



Joined: 19 Oct 2006
Posts: 6

PostPosted: Sun May 16, 2010 8:30 pm    Post subject: Reply with quote

Windows,6.0 works on Vista and above. Use Windows,5.0 for XP
Back to top
View user's profile Send private message
torhu



Joined: 30 Mar 2006
Posts: 56

PostPosted: Sat Jun 19, 2010 9:09 am    Post subject: Reply with quote

Optlink defaults to 3.1, so I usually build my stuff with /subsystem:windows:4. Windows disables some GUI features for 3.1, but version 4 seems to be ok.
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Sat Jun 19, 2010 11:05 am    Post subject: Reply with quote

Ok, I'll set it to 4.0, which seems the default for the microsoft linker before VS2010.

I understand that a newer versioned executable won't run on an earlier OS. But does anybody have a link or reference, explaining what restrictions apply if the executable is run on a newer OS?
Back to top
View user's profile Send private message
nocide



Joined: 03 Nov 2009
Posts: 19

PostPosted: Sat Jun 19, 2010 4:41 pm    Post subject: Reply with quote

Walter's suggestion is:

SUBSYSTEM
SYNTAX: SUBSYSTEM [ NATIVE | WINDOWS [n.nn] | CONSOLE | POSIX ]
EXAMPLE: SUBSYSTEM WINDOWS 4.0
COMMENTS: Use 4.0 for n.nn when developing Windows XP applications.

http://www.digitalmars.com/ctg/ctgDefFiles.html
Back to top
View user's profile Send private message
torhu



Joined: 30 Mar 2006
Posts: 56

PostPosted: Sat Jun 19, 2010 5:38 pm    Post subject: Reply with quote

I think msvc 2008 defaults to version 5.0 too, at least the express version does.

It's hard to find any info about the subsystem versions. I found these links:
http://blog.koroirc.com/2008/06/visual-cpp-woes/comment-page-1/
http://blog.koroirc.com/2008/06/visual-cpp-woes/comment-page-1/#comment-140
http://support.microsoft.com/kb/125705

According to the blog, newer versions of the msvc crt (msvcr90.dll, etc) might be incompatible with older versions of Windows.
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Sun Jun 20, 2010 1:51 am    Post subject: Reply with quote

Thanks for the links. From what I read version 4.0 seems good enough. You can always change it in the command line options, but maybe I should make it an explicte option in the linker tab.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group