Changeset 104 for trunk/common_functions/message.c
- Timestamp:
- Oct 2, 2023, 11:34:35 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/v2.9 merged eligible /branches/v2.9_Lars merged eligible
-
Property svn:mergeinfo
set to
-
trunk/common_functions/message.c
r4 r104 11 11 WinMessageBox(HWND_DESKTOP,0, 12 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,13 \nPlease check your installation.", 14 "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.", 260 "This helper shouldn't be started by hand. \ 261 \nIt is called by the multimedia classes. \ 262 \nIf you didn't launch the helper by hand you may have found a bug. \ 263 \nPlease contact the author.", 262 264 "Problem with multimedia classes",12345, 263 265 MB_OK|MB_MOVEABLE|MB_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.