[SDK] Using Microsoft Visual C++ 2005 Express Edition

Note that I am using the professional version of VS2008, so it's possible that something here wouldn't be supported in the Express editions.

Bah! Professional versions are for amateurs. :p

Thanks for the summary. This will be handy for when I make the jump to Win7. Any trouble with games running the x64 version?
 
Bah! Professional versions are for amateurs. :p

Thanks for the summary. This will be handy for when I make the jump to Win7. Any trouble with games running the x64 version?

No idea about VS 2005 or VS 2008 on Win 7 64-bit, but I am running Windows 7 Ultimate 64-bit with VS 2003 and not all of the functionality is working.

So I am dual booting with Windows XP Pro and use that to mod Civ 4 using VS 2003.
 
@Chazcon - Are you using VS 2003 to compile the DLL or just to edit files and kick off the makefile build? I expect the former, otherwise you could just use VS 2008 and get more features (I assume). I use VS 2008 on XP Pro to edit the SDK code and kick off the build using the makefile.
 
Nope, I've had no issues except for Panzer General I :lol:.

lol THAT brings back memories! Man, I loved Panzer General...

I would stay up all night playing, and then in frustration, on the way to work I would take the CD and throw it out the window of my truck.

Later that week I would show up at my friend's software store to buy another copy. It was a great joke for a while. What a great game.

I have tried to play it again on my screaming modern computer, to no avail. the hardware is too fast for it these days, sadly. Maybe I should build an old 486 machine! lol...
 
I followed the instructions on the first page and used the makefile for BTS v319 by glider and got this during the build. I'm basically only going by step by step instructions as I have zero knowledge of what I'm doing.

Spoiler :
1>------ Build started: Project: CvGameCoreDLL, Configuration: Final_Release Win32 ------
1>Performing Makefile project actions
1>Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
1>Copyright (C) Microsoft Corporation. All rights reserved.
1> "C:/Program Files/Microsoft Visual C++ Toolkit 2003/bin/cl.exe" /nologo /MD /Gd /G7 /GR /O2 /W3 /EHsc /DWIN32 /DNDEBUG /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /DFINAL_RELEASE /IBoost-1.32.0/include /IPython24/include /I"C:/Program Files/Microsoft Visual C++ Toolkit 2003/include" /I"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include" /c CvArea.cpp /FoFinal_Release/CvArea.obj
1>CvArea.cpp
1>c:\Documents and Settings\Sam Fong\Desktop\Hetalia Civ4\CvGameCoreDLL_v319\CvGameCoreDLL\CvGameCoreDLL.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>NMAKE : fatal error U1077: '"C:/Program Files/Microsoft Visual C++ Toolkit 2003/bin/cl.exe"' : return code '0x2'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://c:\Documents and Settings\Sam Fong\Desktop\Hetalia Civ4\CvGameCoreDLL_v319\CvGameCoreDLL\Final_Release\BuildLog.htm"
1>CvGameCoreDLL - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Did you change the paths at the top of the makefile to point where you installed the VC++ Toolkit and the PSDK? They are currently set to

C:/Program Files/Microsoft Visual C++ Toolkit 2003​

and

C:/Program Files/Microsoft SDKs/Windows/v6.0A​
 
No, I did not change them as I've installed them in that location.

Edit: Alright, I've found another tutorial concerning BTS v317. I hope it runs for v319, solution build in progress...

2nd EDIT:

Okay...I followed the tutorial step by step but it encounters errors where its unable to finish the compliation. Here's the build log attached.
 

Attachments

I have tried to play it again on my screaming modern computer, to no avail. the hardware is too fast for it these days, sadly. Maybe I should build an old 486 machine! lol...

You should take a look at this, then... I just found it. Haven't installed it yet, but it looks promising!
 
With Glider's makefile and Refar's PDF I was able to successfully build and debug the 3.19 SDK DLL from Visual Studio 2008 on Windows 7 x64.

--snip
Also managed to set this up fine on Windows 7 x64 using Visual Studio Express 2008 following the instructions in the PDF but ignoring the part about installing a PDSK. VS2008 comes with PDSK so its not necessary to download it (plus its the x86 version).

Brief description of the steps I used were:-
  • Install Visual Studio 2008 Express Edition
  • Install VC Toolkit 2003
  • Copy the 3 MSxxx.lib files into C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003\lib
In the makefile set:-
  • TOOLKIT=C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003
  • PDSK=C:/Program Files/Microsoft SDKs/Windows/v6.0A
Hope this points some of you in the right direction if you are scratching your heads trying to compile the DLL under 64 bit Windows. Should also work fine with Vista 64 using this method.

~Ted
 
You should take a look at this, then... I just found it. Haven't installed it yet, but it looks promising!

WOW what a nice find! I must try this out. I can't tell you how many hours I have spent playing Panzer general back in the day...
 
Hello,

Does anybody know why I can't clean the solution?

------ Clean started: Project: CvGameCoreDLL, Configuration: Final_Release Win32 ------
Performing Makefile project actions
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
del Debug\CvGameCoreDLL.dll Debug\CvArea.obj Debug\CvArtFileMgr.obj Debug\CvCity.obj Debug\CvCityAI.obj Debug\CvDeal.obj Debug\CvDiploParameters.obj Debug\CvDLLButtonPopup.obj Debug\CvDLLEntity.obj Debug\CvDLLPython.obj Debug\CvDLLWidgetData.obj Debug\CvFractal.obj Debug\CvGame.obj Debug\CvGameAI.obj Debug\CvGameCoreDLL.obj Debug\CvGameCoreUtils.obj Debug\CvGameTextMgr.obj Debug\CvGlobals.obj Debug\CvHallOfFameInfo.obj Debug\CvInfoWater.obj Debug\CvInfos.obj Debug\CvInitCore.obj Debug\CvMap.obj Debug\CvMapGenerator.obj Debug\CvPlayer.obj Debug\CvPlayerAI.obj Debug\CvPlot.obj Debug\CvPlotGroup.obj Debug\CvPopupInfo.obj Debug\CvPopupReturn.obj Debug\CvRandom.obj Debug\CvReplayInfo.obj Debug\CvReplayMessage.obj Debug\CvSelectionGroup.obj Debug\CvSelectionGroupAI.obj Debug\CvStructs.obj Debug\CvTalkingHeadMessage.obj Debug\CvTeam.obj Debug\CvTeamAI.obj Debug\CvUnit.obj Debug\CvUnitAI.obj Debug\CvXMLLoadUtility.obj Debug\CvXMLLoadUtilityGet.obj Debug\CvXMLLoadUtilityInit.obj Debug\CvXMLLoadUtilitySet.obj Debug\CyArea.obj Debug\CyAreaInterface.obj Debug\CyArgsList.obj Debug\CyArtFileMgr.obj Debug\CyArtFileMgrInterface.obj Debug\CyCity.obj Debug\CyCityInterface1.obj Debug\CyDeal.obj Debug\CyEnumsInterface.obj Debug\CyGame.obj Debug\CyGameCoreUtils.obj Debug\CyGameCoreUtilsInterface.obj Debug\CyGameInterface.obj Debug\CyGameTextMgr.obj Debug\CyGameTextMgrInterface.obj Debug\CyGlobalContext.obj Debug\CyGlobalContextInterface1.obj Debug\CyGlobalContextInterface2.obj Debug\CyGlobalContextInterface3.obj Debug\CyGlobalContextInterface4.obj Debug\CyHallOfFameInfo.obj Debug\CyHallOfFameInterface.obj Debug\CyInfoInterface1.obj Debug\CyInfoInterface2.obj Debug\CyInfoInterface3.obj Debug\CyMap.obj Debug\CyMapGenerator.obj Debug\CyMapGeneratorInterface.obj Debug\CyMapInterface.obj Debug\CyPlayer.obj Debug\CyPlayerInterface1.obj Debug\CyPlot.obj Debug\CyPlotInterface1.obj Debug\CyRandomInterface.obj Debug\CyReplayInfo.obj Debug\CySelectionGroup.obj Debug\CySelectionGroupInterface.obj Debug\CyStructsInterface1.obj Debug\CyTeam.obj Debug\CyTeamInterface.obj Debug\CyUnit.obj Debug\CyUnitInterface1.obj Debug\FAssert.obj Debug\FDialogTemplate.obj Debug\_precompile.obj Debug\CvGameCoreDLL.lib Debug\CvGameCoreDLL.def Debug\CvGameCoreDLL.exp Debug\CvGameCoreDLL.pdb Debug\CvGameCoreDLL.ilk
Le fichier spécifié est introuvable.
NMAKE : fatal error U1077: 'del' : return code '0x1'
Stop.
Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
CvGameCoreDLL - 2 error(s), 0 warning(s)
========== Clean: 0 succeeded, 1 failed, 0 skipped ==========

I run VS2008 express on Windows XP and did everything like the first page of the Topic. I take the makefile 3.19

Thanks
 
No I have not.

On the first page it s written to remove the debug... I did so!

Thanks
 
I'm having trouble installing the Microsoft Platform SDK that I downloaded from Kael's website. It gives me an Error 1330 fails to install. I tried the second link in Refar's guide: http://downloads.zdnet.co.uk/0,1000000375,39329568s,00.htm but all it gave me was a blank page, and I had disabled my pop up blocker. I also downloaded Windows® Server 2003 R2 Platform SDK ISO Download here: http://www.microsoft.com/downloads/...ac-60be-41bd-aa14-7f1e0f19ca0d&displaylang=en, but all it gave me was an .img file which I have no idea what to do with. I'm using Vista.

So I'm stuck with no idea what to do next.
 
Well, I got the compiler running, but when I went to build something went wrong.

Spoiler :
1>------ Build started: Project: CvGameCoreDLL, Configuration: Final_Release Win32 ------
1>Performing Makefile project actions
1>Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
1>Copyright (C) Microsoft Corporation. All rights reserved.
1> "C:\Program Files\Microsoft Visual C++ Toolkit 2003/bin/cl.exe" /nologo /MD /Gd /G7 /GR /O2 /W3 /EHsc /DWIN32 /DNDEBUG /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /DFINAL_RELEASE /IBoost-1.32.0/include /IPython24/include /I"C:\Program Files\Microsoft Visual C++ Toolkit 2003/include" /I"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2/Include" /c CvArea.cpp /FoFinal_Release/CvArea.obj
1>CvArea.cpp
1>c:\Users\Household\Desktop\CvGameCoreDLL\CvGameCoreDLL.h(160) : fatal error C1083: Cannot open include file: 'boost/python/list.hpp': No such file or directory
1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual C++ Toolkit 2003/bin/cl.exe"' : return code '0x2'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://c:\Users\Household\Desktop\CvGameCoreDLL\Final_Release\BuildLog.htm"
1>CvGameCoreDLL - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Not entirely sure what I'm doing wrong. I thought I followed all the instructions to the letter.

This is the top part of my makefile:

Spoiler :
### Variables used in this Makefile
TOOLKIT=C:\Program Files\Microsoft Visual C++ Toolkit 2003
PSDK=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
 
There should be a part of the makefile that points to the Python Boost libraries. Make sure it is pointing to your BTS install folder correctly.
 
There should be a part of the makefile that points to the Python Boost libraries. Make sure it is pointing to your BTS install folder correctly.

I figured out what I was doing wrong. I was trying to compile the files from a mod called RFC without a makefile specific to it and without copying the the Boost and Python directories from BTS.

So once I am able to compile the mod, all I need to do is edit the .cpp files in Notepad++, recompile, put it in the Mods folder in BTS, and then I can play my edited version? Or do I need to debug as well?

Refar's pdf instructions indicate I need to set a breakpoint if I debug. But I'm not entirely sure what to next.
 
You only need to build and use a debug DLL if your code doesn't work. ;)

BTW, you can point the makefile to the Boost Python include and library folders inside BTS--no need to copy them to your mod folder, but it doesn't hurt.
 
Back
Top Bottom