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

  1. //------------------------------------------------------------------------------------------------------
  2. // Name       : import.c
  3. // Date       : 05.03.1997     Author : SM / OK    Language : E
  4. //------------------------------------------------------------------------------------------------------
  5. // This file contains all language-dependent text definitions of the module IMPORT_.DLL. Together with
  6. // the file IMPORT.RC, it is used to build the language library IMPORT.DLL.
  7. // The library file IMPORT.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.           "Coordinates (*.TXT)",                                                // 01
  23.           "Import Coordinates (*.TXT)...",                                      // 02
  24.           "",                                                                   // 03
  25.           "Coordinates (*.txt)",                                                // 04
  26.           "*.txt",                                                              // 05
  27.           "txt",                                                                // 06
  28.           END_TEXT
  29.         },
  30.  
  31.         eDialogText     [] = {
  32.           "TommySoftwareÆ Coordinate Import",                                   // 00
  33.           "untitled.txt",                                                       // 01
  34.           "Importing from File\n%s...",                                         // 02
  35.           "Line %ld",                                                           // 03
  36.           "%ld KBytes",                                                         // 04
  37.           END_TEXT
  38.         },
  39.  
  40.         eMessageText    [] = {
  41.           "This plug-in requires at least\nToso Interface Version 4.2.",        // 00
  42.           "Insufficient memory.\nPlease close other application to continue.",  // 01
  43.           "The import was canceled.",                                           // 02
  44.           "Error %ld in file selector box.",                                    // 03
  45.           "Out of memory during import.",                                       // 04
  46.           "Error %d in line %ld (offset %ld bytes).",                           // 05
  47.           END_TEXT
  48.         };
  49.  
  50. //------------------------------------------------------------------------------------------------------
  51. // This DLL entry procedure must exist in any DLL to be used in Win32. Since our language DLL does not
  52. // need any initialization, this procedure is quite empty.
  53.  
  54. BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD Reason, LPVOID Dummy )
  55. {
  56.   switch( Reason ) {
  57.     case DLL_PROCESS_ATTACH:
  58.       break;
  59.  
  60.     case DLL_PROCESS_DETACH:
  61.       break;
  62.   }
  63.   return( TRUE );
  64. }
  65.