Step 1: Download PDCurses
Step 2: Create a folder called pdcurs34 in C:\
Step 3: Extract the PDCurses files in the pdcurs34 folder
Step 4: Copy this: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
Step 5: In command prompt (cmd.exe – admin) type cd “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin” (make sure you include the “) and press enter
Step 6: Type vcvars32.bat and press enter. This should appear underneath “Setting environment for using Microsoft Visual Studio 2010 x86 tools.”
Step 7: Type set PDCURSES_SRCDIR=C:\pdcurs34 and press enter
Step 8: Type cd C:\pdcurs34\win32 and press enter
Step 9: Type nmake -f vcwin32.mak and press enter. This should make loads of text appear in the console – files are being created
Step 10: Go to Visual Studio 2010 (I have the C++ edition) – Make a new project – in visual c++ choose Win32 then click Win32 Project and give it a name – Click Ok – Click Next – Change from windows application to Console application and click the option Empty project - Click finish
Step 11: In Solution Explorer (VS2010) right click the folder Source Files and hover over Add – Click New Item – Click C++ File & give it a name
Step 12: Go to Project – <projectname> Properties – In configuration properties go to VC++ Directories – In the include directories click the arrow (left of bar) and click edit and then locate to C:\pdcurs34 click ok
Step 13: Do the same with Library Directories but instead point it to C:\pscurs34\win32
Step 14: Go the C/C++ dropdown – Code Generation – Change the option in Runtime Library to Multi-threaded Debug (\MTd)
Step 15: Go to Linker dropdown – Input – Additional Dependencies – Arrow – Edit and type pscurses.lib – press ok
The PDCurses set-up should now be complete you should test it by putting some simple code in the .cpp you made, here is some code to copy:
#include <curses.h>
int main ()
{
initscr();
printw(“Hello World!”);
refresh();
getch();
endwin();
return 0;
}