Déja
Beyond the Mod
- Joined
- Dec 19, 2005
- Messages
- 353
I don't know if anyone else has done this, but I finally got VS2005 to compile the SDK.
Because of some surprising problems, the solution I had to resort to is a bit odd, and not exactly ideal.
I created a makefile for the project that simply calls cl and link without specifying a path. Then I wrote a batch file to emulate VS2003's vcvars32.bat (because calling it directly caused the rest of my batch file to not be run) and then call nmake on the makefile I created.
Then it was simply a matter of opening the CvGameCoreDLL.vcproj file in VS2005 and changing the Configuration Type from Dynamic Library (.dll) to Makefile and pointing the NMake->Build Command Line to the batch file I created.
I have no idea what modifications you'd have to do to it to get it to use just the 2003 Platform SDK, but I have proved it possible to do. If there's enough interest, I'll try to clean up the makefile and batch file, and then release a zip of all the necessary files. If this is something you'd be interested in, just drop me a PM.
The only downside is that you have to edit the makefile by hand to add any new files (though it only requires adding two lines for each file, one for the compiler list and one for the linker list). The only other drawback is that I currently only have it configured to use the Final Release configuration, but it wouldn't be much trouble to add others.
Because of some surprising problems, the solution I had to resort to is a bit odd, and not exactly ideal.
I created a makefile for the project that simply calls cl and link without specifying a path. Then I wrote a batch file to emulate VS2003's vcvars32.bat (because calling it directly caused the rest of my batch file to not be run) and then call nmake on the makefile I created.
Then it was simply a matter of opening the CvGameCoreDLL.vcproj file in VS2005 and changing the Configuration Type from Dynamic Library (.dll) to Makefile and pointing the NMake->Build Command Line to the batch file I created.
I have no idea what modifications you'd have to do to it to get it to use just the 2003 Platform SDK, but I have proved it possible to do. If there's enough interest, I'll try to clean up the makefile and batch file, and then release a zip of all the necessary files. If this is something you'd be interested in, just drop me a PM.
The only downside is that you have to edit the makefile by hand to add any new files (though it only requires adding two lines for each file, one for the compiler list and one for the linker list). The only other drawback is that I currently only have it configured to use the Final Release configuration, but it wouldn't be much trouble to add others.