News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Console Applications

Started by Paolo_R, June 20, 2009, 08:15:55 AM

Previous topic - Next topic

Paolo_R

Nicolas: I have attached testcurs.c from the demo programs.

Compiles and builds OK but just hangs when run in an XP console.

nicolas.sitbon

OK, i just understand what you say, it is the normal behaviour. You have 2 possiblities :
- put pdcurses.dll in system32
- add C:\Program Files\PellesC\Bin to the %PATH% environment variable

Seltsamuel

Hi,

third option:
put the .dll beside the executable inside your project folder.

I personally prefere this because of dllhell and different versions of dlls ;-)

Greetings

Seltsamuel

nicolas.sitbon

Quote from: Seltsamuel on June 22, 2009, 10:19:28 AM
Hi,

third option:
put the .dll beside the executable inside your project folder.

I personally prefere this because of dllhell and different versions of dlls ;-)

Greetings

Seltsamuel
you need an update : http://www.davidlenihan.com/2007/07/winsxs.html

Paolo_R

Well,  I've spent the day compiling sample programs found in the Index of /HOWTO/NCURSES-Programming-HOWTO.

Some compile and run fine, some I needed to correct for them to run, and others either hang, or bomb due to access violations.

However, I have discovered that the Menu and Form functionality is not implemented in PDCurses - apart from the basic curses functionality only the Panels functions are implemented. This rather limits the use of PDCurses as a windowing/menu based/form data entry library. A bit disappointing really.

nicolas.sitbon

Here are all the functions defined by the standard : http://opengroup.org/onlinepubs/007908799/xcurses/curses.h.html
Please can you tell me which functions aren't implemented?
thanks.

Paolo_R

Nicolas: PDCurses provides curses.h and panel.h functions but the menu.h and form.h are not provided.

I tried compiling a menu demo program starting thus:

#pragma comment(lib, "pdcurses.lib")
#include <curses.h>
#include <menu.h> ....

and got this error:

C:\WORKAREA\pdcurses tests\menu1\menu1.c(3): fatal error #1035: Can't find include file <menu.h>.

I researched this and found some conversations involving W McBrine (who I believe is supporting PDCurses) and they implied menus and forms are not available.

nicolas.sitbon

menu.h is an extension, it is not part of opengroup standard.

Paolo_R

OK, it may not be part of opengroup standard but it certainly seems to be part of ncurses. I believed that pdcurses was an implementation of ncurses.

nicolas.sitbon

QuotePDCurses is a public domain curses library for DOS, OS/2, Win32, X11 and SDL, implementing most of the functions available in X/Open and System V R4 curses

Paolo_R

Nicolas: I obviously misunderstood. thanks for your assistance.

nicolas.sitbon


Romashka

Quote from: Paolo_R on June 21, 2009, 11:39:14 PMOne comment, I have tried building some of the demo programs that came with the GnuWin version. Some wouldn't run 'cos they couldn't 'find' pdcurses.dll, so I put a copy in my windows/system32 folder and that solved that problem. Why do I need to do this if Pelles C compiler already has a copy in its /bin folder?
pdcurses.dll must be either in the same directory as exe file you're running or in c:\windows\system32 directory

jwzumwalt

Would you please post a link to a zip file with the working examples? Or you can e-mail them to me and I will make them avalable on my site....

jwzumwalt(at)rock(dot)com