home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611B.ISO
/
vabasic
/
ntclnt.exe
/
DISK8
/
data.8
/
datab
/
INCLUDE
/
VWCAT.HH
< prev
next >
Wrap
Text File
|
1996-07-29
|
2KB
|
56 lines
/*------------------------------------------------------------------------
* $Source: /rcs/vwrcs/components/vwcat.hh,v $
* $Date: 1996/05/06 19:49:33 $ $Revision: 1.7 $
*
* Copyright 1992, Visual Edge Software Ltd.
* -----------------------------------------
* ALL RIGHTS RESERVED. This notice is intended as a precaution against
* inadvertent publication, and shall not be deemed to constitute an
* acknowledgment that publication has occurred nor to imply any waiver
* of confidentiality. The year included in the notice is the year
* of the creation of the work.
*------------------------------------------------------------------------
* DESCRIPTION: Provides access to the message catalog file.
* Include this file when using the catalog.
*------------------------------------------------------------------------*/
#ifndef VWCAT_HH
#define VWCAT_HH
#include <vcatalog.hh>
// The CenterLine compiler complains when trying to define a String at
// the command line (-DMACRO="\"STRING\""). The solution to bypass this
// problem is to use the preprocessor operator "#" to stringify a variable
// defined at the command line (-DMACRO="STRING" , will result in "STRING"
// using the stringify pre-processor). We need to define two temporary
// Macros to be able to use this operator with a defined variable.
#ifdef VWCAT_OTHER_FILE
#define VWCAT_TMP1(cat_file) #cat_file
#define VWCAT_TMP2(cat_file) VWCAT_TMP1(cat_file)
#define VWCAT_FILE VWCAT_TMP2(VWCAT_OTHER_FILE)
#else // VWCAT_OTHER_FILE
#ifdef VSYS_UNIX
# define VWCAT_FILE "comp.cat"
#elif defined VSYS_WININTEL
# define VWCAT_FILE "catalog.dll"
#elif defined VSYS_MAC
# define VWCAT_FILE "unused"
#else
# error "Platform specific code required"
#endif
#endif // VWCAT_OTHER_FILE
VFUNCDECL (VeCatalog *) VeComponentsCatalog();
VFUNCDECL (void) VeCloseComponentsCatalog();
#endif