Dragonfly Q&A

How to setup PDCurses in Visual Studio 2010/2013

0 like 0 dislike

PDF format is available for download.

LINK

-------------------------------------------------------------------------------

Note:

Visual Studio 2013 PDCurses setup procedures is the same as the procedures laid out below. No need to fret over the lack of Visual Studio 2013 tutorials.

-------------------------------------------------------------------------------

 

How to set up PDCurses in Visual Studio 2010

 

Required:

            Nmake (Located in Visual Studio file directory, VC/bin)

NOTE: This may require elevated access rights. Accessing “nmake” is required.

 

 

1.      Google PDCurses. Click on the first link, “PDCurses – Public Domain Curses.”

2.      Click on “Downloads” in the left pane.

3.      Click on “pdcurses” in the list.

4.      Click on the latest version. As of writing, it is 3.4.

5.      Pick “pdcurs34.zip”. Either open the ZIP folder or save it somewhere.

6.      Extract the contents. In this case, it is extracted to “C:\pdcurses34”.

7.      Run the Visual Studio Command Prompt.

8.      Type in “set PDCURSES_SRCDIR=<PDCurses Directory Location>” and press Enter. In this case, it is typed as “set PDCURSES_SRCDIR=C:\pdcurses34” and press Enter.

9.      Navigate to C:\pdcurses34\win32.

10.  Type “nmake –f vcwin32.mak”. Wait until it is done generating.

11.  Run Visual Studio 2010.

12.  Create an empty project. Name it whatever you want.

13.  Go to project properties by doing “Project > Properties”

14.  In “VC++ Directories”, change:

a.       Include directories: Add a new filepath to “C:\pdcurses34”.

b.      Library directories: Add a new filepath to “C:\pdcurses34\win32”.

15.  In C/C++:

a.       In “Code Generation” tab, change “Runtime Library” to “Multithreaded Debug (/MTd)”.

16.  In Linker:

a.       In “Input” tab, add to Additional Dependencies, “pdcurses.lib”

17.  Click on Apply, and OK.

18.  Create a CPP file with the codes:

19.  Build, compile, and run, by pressing F5. Your program should run, displays the message, “Hello world.”, and waits for your input before closing. For more info on how to use PDCurses, go to this link given below:

 

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/index.html

 

 

If anyone have questions, please post below.

asked Sep 8, 2014 in Tutorial by tom_mai78101
edited Jan 24, 2015 by tom_mai78101

Please log in or register to answer this question.

More information about Dragonfly can be found on the Dragonfly Home Page.
...