NO

Author Topic: Console Applications  (Read 17770 times)

Paolo_R

  • Guest
Re: Console Applications
« Reply #15 on: June 21, 2009, 11:49:59 PM »
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

  • Guest
Re: Console Applications
« Reply #16 on: June 22, 2009, 12:11:41 AM »
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

  • Guest
Re: Console Applications
« Reply #17 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

nicolas.sitbon

  • Guest
Re: Console Applications
« Reply #18 on: June 22, 2009, 10:36:43 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

  • Guest
Re: Console Applications
« Reply #19 on: June 22, 2009, 10:51:46 AM »
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

  • Guest
Re: Console Applications
« Reply #20 on: June 22, 2009, 10:58:37 AM »
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

  • Guest
Re: Console Applications
« Reply #21 on: June 22, 2009, 11:25:18 AM »
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

  • Guest
Re: Console Applications
« Reply #22 on: June 22, 2009, 11:45:19 AM »
menu.h is an extension, it is not part of opengroup standard.

Paolo_R

  • Guest
Re: Console Applications
« Reply #23 on: June 22, 2009, 11:56:13 AM »
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

  • Guest
Re: Console Applications
« Reply #24 on: June 22, 2009, 12:16:54 PM »
Quote
PDCurses 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

  • Guest
Re: Console Applications
« Reply #25 on: June 22, 2009, 12:33:44 PM »
Nicolas: I obviously misunderstood. thanks for your assistance.

nicolas.sitbon

  • Guest
Re: Console Applications
« Reply #26 on: June 22, 2009, 12:36:51 PM »
You're welcome.  :)

Romashka

  • Guest
Re: Console Applications
« Reply #27 on: June 22, 2009, 01:06:18 PM »
One 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

  • Guest
Re: Console Applications
« Reply #28 on: June 28, 2009, 06:46:16 PM »
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

Paolo_R

  • Guest
Re: Console Applications
« Reply #29 on: June 28, 2009, 09:33:04 PM »