home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 September / PCShareware-9-97.iso / programy / tommy / _002010_ < prev    next >
Text File  |  1996-06-04  |  3KB  |  68 lines

  1. //------------------------------------------------------------------------------------------------------
  2. // Name       : import.c
  3. // Date       : 23.05.1996     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\toso40.h"          // Toso Interface 4.0 Definitions
  16.  
  17. //------ Language-dependent strings --------------------------------------------------------------------
  18.  
  19. DLL_EXPORT LPSTR
  20.         eStartUpText    [] = {
  21.           "Version 1.00e\n\nCopyright 1996 TommySoftware«\n\nDeveloper: Stefan Malz.",
  22.           "Coordinates (*.TXT)",                                                // 01
  23.           "Import Coordinates (*.TXT)...",                                      // 02
  24.           END_TEXT
  25.         },
  26.  
  27.         eDefaultName    [] = {
  28.           "untitled.txt",                                                       // 00
  29.           "TommySoftware IMPORT",                                               // 01
  30.           "TXT",                                                                // 02
  31.           END_TEXT
  32.         },
  33.  
  34.         eDialogText     [] = {
  35.           "TommySoftware« Coordinate Import",                                   // 00
  36.           "Coordinates (*.TXT)\0*.TXT\0All Files (*.*)\0*.*\0\0",               // 01
  37.           "Importing from File\n%s...",                                         // 02
  38.           "Line %ld",                                                           // 03
  39.           "%ld KBytes",                                                         // 04
  40.           END_TEXT
  41.         },
  42.  
  43.         eMessageText    [] = {
  44.           "This module requires at least\nToso Interface Version 4.0.",         // 00
  45.           "Insufficient memory.\nPlease close other application to continue.",  // 01
  46.           "The import was canceled.",                                           // 02
  47.           "Error %ld in file selector box.",                                    // 03
  48.           "Out of memory during import.",                                       // 04
  49.           "Error %d in line %ld (offset %ld bytes).",                           // 05
  50.           END_TEXT
  51.         };
  52.  
  53. //------------------------------------------------------------------------------------------------------
  54. // This DLL entry procedure must exist in any DLL to be used in Win32. Since our language DLL does not
  55. // need any initialization, this procedure is quite empty.
  56.  
  57. BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD Reason, LPVOID Dummy )
  58. {
  59.   switch( Reason ) {
  60.     case DLL_PROCESS_ATTACH:
  61.       break;
  62.  
  63.     case DLL_PROCESS_DETACH:
  64.       break;
  65.   }
  66.   return( TRUE );
  67. }
  68.