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 >
Text File  |  1996-07-29  |  2KB  |  56 lines

  1. /*------------------------------------------------------------------------
  2.  * $Source: /rcs/vwrcs/components/vwcat.hh,v $
  3.  * $Date: 1996/05/06 19:49:33 $                 $Revision: 1.7 $
  4.  *
  5.  * Copyright 1992, Visual Edge Software Ltd.
  6.  * -----------------------------------------
  7.  * ALL RIGHTS RESERVED.  This notice is intended as a precaution against
  8.  * inadvertent publication, and shall not be deemed to constitute an 
  9.  * acknowledgment that publication has  occurred nor to imply any waiver  
  10.  * of confidentiality.    The year included in the notice is the year 
  11.  * of the creation of the work.               
  12.  *------------------------------------------------------------------------
  13.  * DESCRIPTION: Provides access to the message catalog file.
  14.  *        Include this file when using the catalog.
  15.  *------------------------------------------------------------------------*/
  16.  
  17. #ifndef VWCAT_HH
  18. #define VWCAT_HH
  19.  
  20. #include <vcatalog.hh>
  21.  
  22.  
  23. // The CenterLine compiler complains when trying to define a String at 
  24. // the command line (-DMACRO="\"STRING\""). The solution to bypass this
  25. // problem is to use the preprocessor operator "#" to stringify a variable
  26. // defined at the command line (-DMACRO="STRING" , will result in "STRING" 
  27. // using the stringify pre-processor). We need to define two temporary
  28. // Macros to be able to use this operator with a defined variable.
  29.  
  30. #ifdef VWCAT_OTHER_FILE
  31.  
  32. #define VWCAT_TMP1(cat_file)    #cat_file
  33. #define VWCAT_TMP2(cat_file)    VWCAT_TMP1(cat_file)
  34. #define VWCAT_FILE        VWCAT_TMP2(VWCAT_OTHER_FILE)
  35.  
  36. #else // VWCAT_OTHER_FILE
  37.  
  38. #ifdef VSYS_UNIX
  39. #    define VWCAT_FILE      "comp.cat"
  40. #elif defined VSYS_WININTEL
  41. #    define VWCAT_FILE      "catalog.dll"
  42. #elif defined VSYS_MAC
  43. #       define VWCAT_FILE      "unused"
  44. #else
  45. #    error "Platform specific code required"
  46. #endif
  47.  
  48. #endif // VWCAT_OTHER_FILE
  49.  
  50.  
  51. VFUNCDECL (VeCatalog *) VeComponentsCatalog();
  52. VFUNCDECL (void) VeCloseComponentsCatalog();
  53.  
  54. #endif
  55.  
  56.