Changeset 190
- Timestamp:
- Jan 25, 2007, 8:16:01 PM (14 years ago)
- Location:
- trunk/Lucide
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/SOURCE/gui/lcd.c
r138 r190 34 34 35 35 #define INCL_DOS 36 #define INCL_WIN 36 37 #include <os2.h> 37 38 39 #include <stdio.h> 38 40 #include <string.h> 39 41 #include <process.h> … … 52 54 int result = 1; 53 55 char *last_slash; 56 CHAR modName[ CCHMAXPATH ] = { 0 }; 54 57 HMODULE hmod = NULLHANDLE; 58 APIRET rc = 0; 55 59 56 60 #ifdef __TEST__ … … 73 77 DosSetExtLIBPATH( lucideDir, BEGIN_LIBPATH ); 74 78 75 if ( DosLoadModule( NULL, 0, "Lucide", &hmod ) == 0 ) 79 rc = DosLoadModule( modName, sizeof( modName ), "Lucide", &hmod ); 80 if ( rc == 0 ) 76 81 { 77 82 PFN pfn = NULL; … … 81 86 result = LucideMain( argc, argv ); 82 87 } 83 DosFreeModule (hmod); 88 DosFreeModule( hmod ); 89 } 90 else 91 { 92 HAB hab; 93 HMQ hmq; 94 char msg[ 256 ]; 95 96 hab = WinInitialize( 0 ); 97 hmq = WinCreateMsgQueue( hab, 0 ); 98 99 if ( modName[0] == 0 ) { // No modulename 100 snprintf( msg, sizeof( msg ), "Error loading Lucide.dll: SYS%04u", rc ); 101 } 102 else { 103 snprintf( msg, sizeof( msg ), 104 "Error loading Lucide.dll: can't find module '%s' (SYS%04u)", 105 modName, rc ); 106 } 107 WinMessageBox( HWND_DESKTOP, NULLHANDLE, msg, NULL, 1, MB_OK | MB_MOVEABLE ); 108 109 WinDestroyMsgQueue( hmq ); 110 WinTerminate( hab ); 84 111 } 85 112 -
trunk/Lucide/changelog
r189 r190 1 1 1.0: 2 - Updated NLS-files: German. 2 - Show message with missed modulename if Lucide.dll cannot be loaded. 3 - Updated NLS-files: German, French. 3 4 4 5 1.0 RC1:
Note: See TracChangeset
for help on using the changeset viewer.