Will MS SDK 8.0a compile this like 6.0a would?

jokulmorder

Chieftain
Joined
Nov 1, 2009
Messages
81
Originally posted on SO:

http://stackoverflow.com/questions/16804221/need-to-know-if-this-will-compile-correctly-with-current-windows-sdk


I'm trying to create a mod for Civilization 4 and want to modify the DLL. I have all the sources, but the game was made back when Microsoft SDK 6.0a was out. I have a makefile for this and all the necessary libraries for compilation, but will the 8.0a SDK work for compiling this project? The tutorial I was looking is here but it seemed like a lot of needless hoops when I can just run the makefile in command line.

I have Visual Studio 2010 if there are any flags or anything I can set to make my life easier, or if there is a simple way to import this project to the .NET framework.

^^I now know the last part is impossible

I can't use the 6.0a SDK because it is too old for my OS (Vista). I do have 8.0a set up though. Do I have to run this in a virtual machine to get it to build properly? That would really be a pain if I can avoid it.
 
Take a look at my tutorial and download the files from there.
They don't require installation so you shouldn't have any problems using them in Vista.

And to directly answer your question - I don't think you can use SDK 8.0, since it can create inconsistencies between the DLL and exe (they run in the same process).

I *know* you can't use a toolkit which is not VC++2003's, but I'm not completely sure regarding SDK 8.0. I do believe it will cause problems, I just don't know which part of this SDK Civ uses (probably audio/video related).
 
Thanks a lot! haven't built yet (compiling now) but got the project to open in Visual C++ and there are no errors yet in the build so things are looking up.

EDIT: Build succeeded and was a lot faster than anticipated, still have to test it with civ but i doubt i'll have any complications if i've gotten to this point.
 
Did using the v8.0 SDK work for you in the end? If not, I have been using the v7.0 SDK with the 2003 toolkit successfully on Win 7 64 so unless you are trying to run on a Win 8 box it should also be OK for you
 
You have to use the same SDK, as that is what the EXE was compiled with and you can't pass binary objects between binaries compiled with separate SDKs in the same process.
 
You have to use the same SDK, as that is what the EXE was compiled with and you can't pass binary objects between binaries compiled with separate SDKs in the same process.

I don't understand this comment given the fact that I have been successfully compiling against the v7.0 SDK for over 12 months now without an issue.
 
Back
Top Bottom