Changeset 1498 for trunk/dll/mainwnd2.c


Ignore:
Timestamp:
Jan 18, 2010, 1:57:01 AM (16 years ago)
Author:
Gregg Young
Message:

Changes to get FM2 to compile with the latest watcom 1.9 beta (mostly type casts of CHAR CONSTANT * to CHAR *). Changes to get the environment settings working everywhere again (broken by the change that moved commands to the INI); Added an environment size variable (set to 2048 which was the largest I found hard coded). Still need to find everywhere the environment size is set and use this variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd2.c

    r1486 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2005, 2008 Steven H. Levine
     9  Copyright (c) 2005, 2010 Steven H. Levine
    1010
    1111  23 May 05 SHL Use datamin.h
     
    3838                aren't user settable; realappname should be used for setting applicable to
    3939                one or more miniapp but not to FM/2
     40  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    4041
    4142***********************************************************************/
     
    604605    fTileBackwards = (fTileBackwards) ? FALSE : TRUE;
    605606    PrfWriteProfileData(fmprof,
    606                         FM3Str,
     607                        (CHAR *) FM3Str,
    607608                        "TileBackwards",
    608609                        (PVOID) & fTileBackwards, sizeof(BOOL));
     
    993994
    994995  case WM_SAVEAPPLICATION:
    995     WinStoreWindowPos(FM2Str,
     996    WinStoreWindowPos((CHAR *) FM2Str,
    996997                      "MainWindowPos2", WinQueryWindow(hwnd, QW_PARENT));
    997998    pd = WinQueryWindowPtr(hwnd, QWL_USER + 4);
     
    14161417
    14171418    if (PrfQueryProfileString(HINI_USERPROFILE,
    1418                               FM2Str,
     1419                              (CHAR *) FM2Str,
    14191420                              "Home", NULL, inipath, sizeof(inipath))) {
    14201421      if (!DosQueryPathInfo(inipath, FIL_STANDARD, &fsa, sizeof(fsa))) {
     
    14321433                                 WS_VISIBLE,
    14331434                                 &FrameFlags,
    1434                                  WC_MAINWND2,
     1435                                 (CHAR *) WC_MAINWND2,
    14351436                                 NULL,
    14361437                                 WS_VISIBLE | WS_ANIMATE,
     
    14381439  if (hwndFrame) {
    14391440    hwndMainMenu = WinWindowFromID(hwndFrame, FID_MENU);
    1440     if (!WinRestoreWindowPos(FM2Str, "MainWindowPos2", hwndFrame)) {
     1441    if (!WinRestoreWindowPos((CHAR *) FM2Str, "MainWindowPos2", hwndFrame)) {
    14411442
    14421443      ULONG fl = SWP_MOVE | SWP_SIZE;
Note: See TracChangeset for help on using the changeset viewer.