Changeset 74 for branches/v2.9_Lars/common_functions/message.c
- Timestamp:
- Sep 30, 2023, 11:06:42 PM (23 months ago)
- Location:
- branches/v2.9_Lars
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/v2.9_Lars/common_functions/message.c
r4 r74 10 10 { 11 11 WinMessageBox(HWND_DESKTOP,0, 12 "The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \13 Please check your installation.",14 "Problem with class installation",12345,12 (PSZ)"The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \ 13 Please check your installation.", 14 (PSZ)"Problem with class installation",12345, 15 15 MB_OK|MB_MOVEABLE|MB_ERROR); 16 16 } … … 23 23 At least I suspect this happens on system where the MM classes don't work. 24 24 Instead there's a new function errorResourceVerbose() which may be called when we 25 know, the WPS is up and running. 25 know, the WPS is up and running. 26 26 */ 27 27 WinMessageBox(HWND_DESKTOP,0, … … 51 51 /* */ 52 52 /*!!*************************************************/ 53 ULONG messageBox( char*text, ULONG ulTextID , LONG lSizeText,54 char*title, ULONG ulTitleID, LONG lSizeTitle,53 ULONG messageBox( PSZ text, ULONG ulTextID , LONG lSizeText, 54 PSZ title, ULONG ulTitleID, LONG lSizeTitle, 55 55 HMODULE hResource, HWND hwnd, ULONG ulFlags) 56 56 { … … 67 67 } 68 68 69 static ULONG mBox( char*text, ULONG ulTextID , LONG lSizeText,70 char*title, ULONG ulTitleID, LONG lSizeTitle,69 static ULONG mBox( PSZ text, ULONG ulTextID , LONG lSizeText, 70 PSZ title, ULONG ulTitleID, LONG lSizeTitle, 71 71 HMODULE hResource, HWND hwnd, ULONG ulFlags) 72 72 { … … 183 183 ULONG MsgShowMessageBox(HWND hwnd, ULONG ulIDTitle, ULONG ulIDText, HMODULE hModule, ULONG ulFlag) 184 184 { 185 char*pText;186 char*pTitle;185 PSZ pText; 186 PSZ pTitle; 187 187 ULONG rc; 188 188 … … 223 223 /* */ 224 224 /*!!*************************************************/ 225 BOOL getMessage( char*text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)225 BOOL getMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd) 226 226 { 227 227 if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulID,lSizeText,text)) { 228 strcpy( text,"");228 strcpy((PCHAR)text,""); 229 229 return FALSE; 230 230 } … … 250 250 /* */ 251 251 /*!!**********************************************************/ 252 BOOL MsgGetMessage( char*text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)252 BOOL MsgGetMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd) 253 253 { 254 254 return getMessage( text, ulID, lSizeText, hResource, hwnd); … … 258 258 { 259 259 WinMessageBox(HWND_DESKTOP,0, 260 "This helper shouldn't be started by hand. It is called by the multimedia classes. \261 If you didn't launch the helper by hand you may have found a bug. Please contact the author.",262 "Problem with multimedia classes",12345,260 (PSZ)"This helper shouldn't be started by hand. It is called by the multimedia classes. \ 261 If you didn't launch the helper by hand you may have found a bug. Please contact the author.", 262 (PSZ)"Problem with multimedia classes",12345, 263 263 MB_OK|MB_MOVEABLE|MB_ERROR); 264 264
Note:
See TracChangeset
for help on using the changeset viewer.