alex@hpgnd.grenoble.hp.com (Alexis MERMET-GRANDFILLES) (02/19/91)
Hello everybody, 1) I am looking for a software package based on X11-Motif that allow to draw graphism like bar-charts, line-charts, and to represent any kind of statistics likely to be used in network monitoring. I would appreciate any information about tools like HP-IVI, Architect, or any tools , library or even source code binding that would allow me to build those graphism very easily. 2) Does anybody knows of a C++ binding for X11-Motif. I am pretty sure that such package should exist to help X11 programmers . 3) Is X11-R4 very different of X11-R3 ? Has anybody an idea of the time investment that is needed to port an application from X11-R3 to X11-R4 ? -------------------------------------------------------------------------- Alexis MERMET-GRANDFILLES alex@hpgndxo.hp.com -------------------------------------------------------------------------
dsr@mir.mitre.org (Douglas S. Rand) (02/22/91)
It seems this question is asked every week. The include files with
X11R4 are compatible with C++. Motif is usable as is, mostly include
the header files inside extern "C" { .... }. There is a minor
problem with Instrinsics.h and a definition of String which causes confusion
with the libg++ or other String class. This is fixable but not quite
right in the distribution:
should be:
// Right in the beginning of Instrinsics.h
#if defined(__cplusplus) || defined(c_plusplus)
#define CONST const
/* make const String do the right thing */
#define String char*
#else
typedef char *String;
#define CONST
#endif /* __cplusplus */
and:
// At end
#undef String
#undef CONST
--
Douglas S. Rand
Internet: <dsrand@mitre.org>
Snail: MITRE, Burlington Road, Bedford, MA
Disclaimer: MITRE might agree with me - then again...
Amateur Radio: KC1KJ