A question about C++ 2008

Started by
9 comments, last by Extrarius 15 years, 6 months ago
Hello all, I can't found a topic where i can post... so... i make a new one... Few weeks ago i've started a game project.. i was programming with C++ 6.0 with DirectX SDK Aug 2008 pack.. but when i was trying to setup DirectInput in my game i got problems.. I was searching information and i found that Directx SDK Aug 2008 pack is not supported with c++ 6.0... so.. i have to start again with a new language or with previous versions of directx sdk... But.. i have one question if i start with visual studio 2008 (Visual c++ 2008)... I know C# needs .NET framework for run... so.. that is a difficulty for gamers if they don't know wtf is that.. so.. Visual c++ 2008 needs something for can run?? i hope you guys can understand me.. i am not good with english.. Thank you all
Advertisement
If you are compiling native code using c++ then no. The only thing the end user needs is the c++ run-time.
Quote:Original post by ezdookie
so.. i have to start again with a new language or with previous versions of directx sdk...


I think you're getting a few things muddled up. The "C++ 6" and "C++ 2008" you're referring to is probably the IDE you're using, NOT the language itself.

Microsoft Visual C++ 6.0 and Microsoft Visual Studio 2008 still use the same C++ language. Visual Studio 2008 just has some extra utilities to help you do your coding (better Intellisense, code wizards, etc).

You don't have to learn a new language, Visual Studio is just an IDE to write your code in and help you compile it. Think of Visual Studio as a glorified Notepad.exe.

"The right, man, in the wrong, place, can make all the dif-fer-rence in the world..." - GMan, Half-Life 2

A blog of my SEGA Megadrive development adventures: http://www.bigevilcorporation.co.uk

can i compile c++ runtime with my game?? or is necesary show the c++ runtime installer...? thanks
@ezdookie I believe you can statically link the run-time library to your executable. It is under Project Properties->C/C++->Code Generation->Runtime library.
@deadstar This is not entirely correct. Actually the compiler that was used in VC6 was created before the official C++ standard was published and does not follow it 100%.
I would think the express edition of VS2008 would work with the latest DirectX SDK. That's free, so you can try it out.

Everything is better with Metal.

ok thanks... one question more... if i make an executable with visual c++ 2008, is it compatible with older versions of windows?? like windows 98??
Quote:Original post by ezdookie
ok thanks... one question more... if i make an executable with visual c++ 2008, is it compatible with older versions of windows?? like windows 98??


That depends entirely on what you link into the executable. If you write a plain-vanilla hello-world application that just prints something to the TTY, then yes it'll work.

But if you use features in your code that are only supported under WinXP, for example, then it will not work. I'm pretty sure DX10 is not compatible with Win98, but feel free to correct me if I'm wrong.

Again - the difference is the IDE. You would still have the same problems with an older version of Visual Studio. I can easily write a program in VC++ 6 that will not be compatible with older versions of Windows.

One last thing, I do believe there's a linker option in Visual Studio to optimize for Windows 98.
ok, that's all.. thanks you guys...
Just wanted to point out that the Win98 "optimization" is deprecated and will be removed in future IDE versions. Also, OS version compatibility has nothing to do with the VS2008 IDE or the MSVC++ Compiler but rather with the APIs/Libraries you use.

This topic is closed to new replies.

Advertisement