How to compile c++ code to support win98, win 2000, and winxp

  • Thread starter Thread starter larry
  • Start date Start date
L

larry

Hello,

I'm using Visual studio 2003 on Windows XP Pro. I have an unmanaged c++
program. I'm tring to generate just one exe file that can run on all
the windows operating system. How can I do it?

Best regards,

Larry

Larry
 
I'm using Visual studio 2003 on Windows XP Pro. I have an unmanaged c++
program. I'm tring to generate just one exe file that can run on all
the windows operating system. How can I do it?

Larry,

The key is to ensure you're not dependent on any OS facilities that
the lesser OS's don't have.

Have a look in your MSDN documentation on the WINVER preprocessor
symbol. If you define that you can (hopefully) set the base OS your
project supports.

You may also find it advantageous (if not essential) to build your
project with the 'C' run-time libraries statically linked.

The depends utility will help you identify if you have any missing
dependencies too.

Dave
 
Back
Top