Ignore:
Timestamp:
Sep 30, 2023, 11:06:42 PM (23 months ago)
Author:
erdmann
Message:

Created branch v2.9_Lars.

Location:
branches/v2.9_Lars
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/v2.9_Lars/common_functions/message.c

    r4 r74  
    1010{
    1111  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,
    1515                MB_OK|MB_MOVEABLE|MB_ERROR);
    1616}
     
    2323    At least I suspect this happens on system where the MM classes don't work.
    2424    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.
    2626   */
    2727  WinMessageBox(HWND_DESKTOP,0,
     
    5151/*                                                  */
    5252/*!!*************************************************/
    53 ULONG messageBox( char* text, ULONG ulTextID , LONG lSizeText,
    54                   char* title, ULONG ulTitleID, LONG lSizeTitle,
     53ULONG messageBox( PSZ text, ULONG ulTextID , LONG lSizeText,
     54                  PSZ title, ULONG ulTitleID, LONG lSizeTitle,
    5555                  HMODULE hResource, HWND hwnd, ULONG ulFlags)
    5656{
     
    6767}
    6868
    69 static ULONG mBox( char* text, ULONG ulTextID , LONG lSizeText,
    70                    char* title, ULONG ulTitleID, LONG lSizeTitle,
     69static ULONG mBox( PSZ text, ULONG ulTextID , LONG lSizeText,
     70                   PSZ title, ULONG ulTitleID, LONG lSizeTitle,
    7171                   HMODULE hResource, HWND hwnd, ULONG ulFlags)
    7272{
     
    183183ULONG MsgShowMessageBox(HWND hwnd, ULONG ulIDTitle, ULONG ulIDText, HMODULE hModule, ULONG ulFlag)
    184184{
    185   char* pText;
    186   char* pTitle;
     185  PSZ pText;
     186  PSZ pTitle;
    187187  ULONG rc;
    188188
     
    223223/*                                                  */
    224224/*!!*************************************************/
    225 BOOL getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
     225BOOL getMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
    226226{
    227227  if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulID,lSizeText,text)) {
    228     strcpy(text,"");
     228    strcpy((PCHAR)text,"");
    229229    return FALSE;
    230230  }
     
    250250/*                                                           */
    251251/*!!**********************************************************/
    252 BOOL MsgGetMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
     252BOOL MsgGetMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
    253253{
    254254  return getMessage( text, ulID, lSizeText, hResource, hwnd);
     
    258258{
    259259  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,
    263263                MB_OK|MB_MOVEABLE|MB_ERROR);
    264264
Note: See TracChangeset for help on using the changeset viewer.