home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 1997 / CT_SW_97.ISO / mac / Software / bild / win95 / t422l1d.exe / _002480_ / TSAMPLE.C
C/C++ Source or Header  |  1997-03-12  |  4KB  |  78 lines

  1. //------------------------------------------------------------------------------------------------------
  2. // Name       : tsample.c
  3. // Date       : 05.03.1997     Author : SM / OK    Language : E
  4. //------------------------------------------------------------------------------------------------------
  5. // This file contains all language-dependent text definitions of the module TSAMPLE_.DLL. Together with
  6. // the file TSAMPLE.RC, it is used to build the language library TSAMPLE.DLL.
  7. // The library file TSAMPLE.LIB which is created during the compilation of this language DLL must be
  8. // linked to the module's main DLL in order to have access to the texts and resources defined here.
  9. //------------------------------------------------------------------------------------------------------
  10.  
  11. #include        "windows.h"
  12. #include        "windowsx.h"
  13. #include        "stdlib.h"
  14.  
  15. #include        "e:\release4\tosoapi4.h"        // Toso Interface Definitions
  16.  
  17. //------ Language-dependent strings --------------------------------------------------------------------
  18.  
  19. DLL_EXPORT LPSTR
  20.         eStartUpText    [] = {
  21.           "Version 1.10e, %s\n\nCopyright 1997 TommySoftwareÆ\n\nDeveloper: Stefan Malz.",
  22.           "Sample Plug-In",                                                      // 01
  23.           "Sample Plug-In >",                                                    // 02
  24.           END_TEXT
  25.         },
  26.  
  27.         eDialogText     [] = {
  28.           "TommySoftwareÆ Sample Plug-In",                                      // 00
  29.           "Star (TSAMPLE)",                                                     // 01
  30.           END_TEXT
  31.         },
  32.  
  33.         eMessageText    [] = {
  34.           "This plug-in requires at least\nToso Interface Version 4.2.",        // 00
  35.           "Insufficient memory.\nPlease close other application to continue.",  // 01
  36.           "Invalid value.",                                                     // 02
  37.           "Invalid number. Enter values between 3 and 100.",                    // 03
  38.           END_TEXT
  39.         },
  40.  
  41.         eCommandName    [] = {
  42.           "Sample Plug-In >Star (Polyline)...",                                 // 00
  43.           "Sample Plug-In >Star (User Object)...",                              // 01
  44.           NULL,                                                                 // 02
  45.           "Sample Plug-In >About...",                                           // 03
  46.           END_TEXT
  47.         },
  48.  
  49.         eCommandEntry   [] = {
  50.           "&1  Star (Polyline)...",                                             // 00
  51.           "&2  Star (User Object)...",                                          // 01
  52.           NULL,                                                                 // 02
  53.           "&+  About...",                                                       // 03
  54.           END_TEXT
  55.         },
  56.  
  57.         eNewPoint       [] = {
  58.           "Enter inner radius",                                                 // 00
  59.           "Enter outer radius",                                                 // 01
  60.           END_TEXT
  61.         };
  62.  
  63. //------------------------------------------------------------------------------------------------------
  64. // This DLL entry procedure must exist in any DLL to be used in Win32. Since our language DLL does not
  65. // need any initialization, this procedure is quite empty.
  66.  
  67. BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD Reason, LPVOID Dummy )
  68. {
  69.   switch( Reason ) {
  70.     case DLL_PROCESS_ATTACH:
  71.       break;
  72.  
  73.     case DLL_PROCESS_DETACH:
  74.       break;
  75.   }
  76.   return( TRUE );
  77. }
  78.