Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 684
  • Last Modified:

curses.h

Hey There

I am runnin MS visual studio 6 and when I compile my program it seems like it does not recognize the curses.h lib. Would anyone know how I can add the curses.h to my Visual Studio

Thanks
0
ledeni
Asked:
ledeni
1 Solution
 
gj62Commented:
Visual Studio does not directly support curses.h - what are you trying to do?  Port code from UNIX?
0
 
gj62Commented:
What are you using from curses.h?  The easiest might be to rewrite that section for Windows...
0
 
ledeniAuthor Commented:
well there is a program that I wrote that a part of it uses curses.h. But got some bugs ... so I was hopping to use Visual Studo debuger to debug the program
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
gj62Commented:
OK, but curses is not supported directly by VS.  So you either have to rewrite without curses, or look for a Win32 implementation of curses and get that.

A public-domain version can be found here:

http://sourceforge.net/projects/pdcurses/

Here's a fee-based version:  http://www.crystalcom.com/crs_snt.htm

0
 
KocilCommented:
Well, if it works let us know.
A lot of questions have been asking about clearscreen, gotoxy, etc on VC++ :)
0
 
CuperousCommented:
I really don't know what curses.h does, but I heard clearscreen in the last message, that can be accomplished by adding the class:
                #include <process.h>
and using:
                system("cls");
0
 
frogger1999Commented:
another way to clear the screen is with the console api

void ClearScreen()
{
HANDLE hConsoleOut = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
COORD Home = {0,0};
GetConsoleScreenBufferInfo(hConsoleOut, &csbiInfo);
FillConsoleOutputCharacter(hConsoleOut, ' ',csbiInfo.dwSize.X * csbiInfo.dwSize.Y, Home, &dummy);
CloseHandle(hConsoleOut);
}
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now