How to compile ApexDC++
--Needed-----------------
-VS / VC++ .NET 2005 (anything else except express edition is fine)
-Patched WTL
-STLport 5.0.1 or newer (don't use betas RC's etc.)
-missing natupnp files
This tutorial assumes that you already have ApexDC++ source in some dir on your Comp And that you have installed Visual Studio / Visual C++ into it's default directory, also in different editions of Visual Studio / Visual C++ 2005 the paths to certain files or folders may be different. So ALWAYS check your paths, as the paths used in this guide are just examples. (they were the paths that I used for my Visual Studio 2005 Professional Edition)
Preparing STLport
1. Download the patched version of STLport from *coming soon* under Downloads
2. Unzip it into any directory i.e. E:\CVS\StrongDC\ STLport-5.0.1 <--- my dir
(Referenced as STLport dir)
3. Go to VS / VC++ 2005 look at the top menu:
Tools > Options > Projects & Solutions > VC++ directories
Them make sure your STLport header directory is on the very top of the Include Files list.
Preparing WTL
1. Download WTL from *coming soon*
(Please note this is a patched WTL)
2. Extract to some folder. In my case E:\CVS\StrongDC
3. Rename folder include to WTL (Optional)
4. Go to VS / VC++ 2005 look at the top menu
Tools > Options > Projects & Solutions > VC++ directories
(in my case: E:\CVS\StrongDC\WTL)
Then click on the up arrow and make sure that the directory goes all the way to the second of the list.
5. Make sure STLport is at the TOP of the Include list of VS / VC++ 2005 & WTL is directly BELOW STLport.
Now you have WTL & STLport prepared !!!
--------------------------------------------------------------------
Get the missing natupnp files from: Here and put them to:
C:\ Program Files\Microsoft Visual Studio 8\VC\include\
--------------------------------------------------------------------
Compilation to .exe & .pbd
1. Go to dir where ApexDC++ source is and find file named StrongDC.sln and double-click it to open
Note: IF YOU HAVE SP2 SDK INSTALLED REMOVE IT FROM VS 2005 Include Files
(This was the thing that failed my compilation numerous of times)
2. Near the toolbars you should see a box with either Debug or Release in it, if it is set to Release leave it as it is otherwise change it to Release
3. right-click the Solution "StrongDC" (8 projects) and choose Build Solution
(after the first compile it's recommended to choose Rebuild Solution)
4. Wait it to Finnish.
5. After it has finished the .exe & .pdb file can be found from the ApexDC++ source dir in Compiled directory.
Edit: This is directly pasted from Word to Rich Text Editor on the forums so bare with the formatting...




