Miguel
Miguel

Reputation: 924

Targeting multiple Windows versions

I'm developing my application under Windows 8.1 but I want to also target Windows 7 and 8. Can I compile executables for different platforms other than the one I'm developing in, and if so how can I accomplish this?

PS. I'm currently using visual studio 2012 professional.

Upvotes: 0

Views: 123

Answers (1)

Igor Tandetnik
Igor Tandetnik

Reputation: 52621

You don't need to do anything special. The operating system on which you run your build system is largely irrelevant. Simply don't use any newer features that are not available with Windows 7, and your executable will run. The mechanism described in "Using the Windows Headers" would help you avoid using such a feature accidentally.

Upvotes: 1

Related Questions