Changeset 1498
- Timestamp:
- Jan 18, 2010, 1:57:01 AM (16 years ago)
- Location:
- trunk/dll
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Ensure archive name not garbage … … 81 81 aren't user settable; realappname should be used for setting applicable to 82 82 one or more miniapp but not to FM/2 83 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 83 84 84 85 ***********************************************************************/ … … 87 88 #include <string.h> 88 89 #include <ctype.h> 89 #include <direct.h> 90 #include <direct.h> // rmdir 90 91 #include <share.h> // SH_DENYWR 91 92 #include <limits.h> // ULONG_MAX … … 3254 3255 0); /* Index to DRAGITEM */ 3255 3256 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 3256 DRM_OS2FILE, /* mechanisms and data */3257 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 3257 3258 NULL) && !(pDItem->fsControl & DC_PREPARE)) { 3258 3259 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */ … … 3278 3279 if (!ParentIsDesktop(hwnd, dcd->hwndParent) && 3279 3280 fSplitStatus && hwndStatus2) 3280 WinSetWindowText(hwndStatus2, GetPString(IDS_DRAGARCMEMTEXT));3281 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRAGARCMEMTEXT)); 3281 3282 if (DoFileDrag(hwnd, 3282 3283 dcd->hwndObject, … … 3294 3295 fSplitStatus && hwndStatus2) 3295 3296 WinSetWindowText(hwndStatus2, 3296 GetPString(IDS_DRAGARCFILETEXT));3297 (CHAR *) GetPString(IDS_DRAGARCFILETEXT)); 3297 3298 DragOne(hwnd, dcd->hwndObject, dcd->arcname, FALSE); 3298 3299 if (!ParentIsDesktop(hwnd, dcd->hwndParent) && … … 3638 3639 WS_VISIBLE, 3639 3640 &FrameFlags, 3640 WC_ARCCONTAINER,3641 (CHAR *) WC_ARCCONTAINER, 3641 3642 title, 3642 3643 WS_VISIBLE | fwsAnimate, -
trunk/dll/arccnrs.h
r1306 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 08Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 05 Jan 08 SHL Move arccnrs.c definitions here -
trunk/dll/archive.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 08Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 15 15 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 16 16 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 17 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 17 18 18 19 ***********************************************************************/ … … 93 94 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 94 95 WinSetDlgItemText(hwnd, ARCH_HELP, 95 GetPString(IDS_ARCDEFAULTHELPTEXT));96 (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 96 97 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 97 98 WinSetDlgItemText(hwnd, ARCH_HELP, 98 GetPString(IDS_ARCARCNAMEHELPTEXT));99 (CHAR *) GetPString(IDS_ARCARCNAMEHELPTEXT)); 99 100 break; 100 101 … … 102 103 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 103 104 WinSetDlgItemText(hwnd, ARCH_HELP, 104 GetPString(IDS_ARCDEFAULTHELPTEXT));105 (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 105 106 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 106 WinSetDlgItemText(hwnd, ARCH_HELP, GetPString(IDS_ARCCMDHELPTEXT));107 WinSetDlgItemText(hwnd, ARCH_HELP, (CHAR *) GetPString(IDS_ARCCMDHELPTEXT)); 107 108 break; 108 109 … … 110 111 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 111 112 WinSetDlgItemText(hwnd, ARCH_HELP, 112 GetPString(IDS_ARCDEFAULTHELPTEXT));113 (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 113 114 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 114 WinSetDlgItemText(hwnd, ARCH_HELP, GetPString(IDS_ARCMASKHELPTEXT));115 WinSetDlgItemText(hwnd, ARCH_HELP, (CHAR *) GetPString(IDS_ARCMASKHELPTEXT)); 115 116 116 117 break; -
trunk/dll/assoc.c
r1497 r1498 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2004, 20 08Steven H.Levine7 Copyright (c) 2004, 2010 Steven H.Levine 8 8 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage … … 22 22 15 Nov 09 GKY Add check for attempt to open zero byte file (avoids MMPM trying to play them) 23 23 21 Dec 09 GKY Added CheckExecutibleFlags to streamline code in command.c assoc.c & cmdline.c 24 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 24 25 25 26 **************************************************************************************/ … … 234 235 bstripcr(szEnviroment); 235 236 if (*szEnviroment) 236 PrfWriteProfileString(fmprof, FM3Str, temp->pszCmdLine, szEnviroment);237 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, temp->pszCmdLine, szEnviroment); 237 238 pszDisplayStr = xmallocz((CCHMAXPATH * 2) + MaxComLineStrg + 6, 238 239 pszSrcFile, __LINE__); … … 638 639 size = sizeof(env) - 1; 639 640 if (PrfQueryProfileData(fmprof, 640 FM3Str, info->pszCmdLine, env, &size) && *env)641 (CHAR *) FM3Str, info->pszCmdLine, env, &size) && *env) 641 642 WinSetDlgItemText(hwnd, ASS_ENVIRON, env); 642 643 else … … 883 884 } 884 885 bstrip(temp.mask); 885 PrfWriteProfileData(fmprof, FM3Str, temp.mask, NULL, 0L);886 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, temp.mask, NULL, 0L); 886 887 if (kill_association(&temp)) { 887 888 x = (SHORT) WinSendDlgItemMsg(hwnd, … … 989 990 } 990 991 bstrip(temp.mask); 991 PrfWriteProfileData(fmprof, FM3Str, temp.mask, NULL, 0L);992 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, temp.mask, NULL, 0L); 992 993 if (!kill_association(&temp)) 993 994 Runtime_Error(pszSrcFile, __LINE__, "kill_association"); -
trunk/dll/attribs.c
r1398 r1498 7 7 8 8 Copyright (c) 1993, 1998 M. Kimes 9 Copyright (c) 2006, 20 08Steven H.Levine9 Copyright (c) 2006, 2010 Steven H.Levine 10 10 11 11 14 Jul 06 SHL Use Runtime_Error 12 12 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 13 13 01 Sep 07 GKY Use xDosSetPathInfo to fix case where FS3 buffer crosses 64k boundry 14 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 14 15 15 16 ***********************************************************************/ … … 169 170 else if (SHORT2FROMMP(mp1) == LN_SETFOCUS) 170 171 WinSetDlgItemText(hwnd, ATR_HELP, 171 GetPString(IDS_ATTRLISTBOXHELPTEXT));172 (CHAR *) GetPString(IDS_ATTRLISTBOXHELPTEXT)); 172 173 break; 173 174 case ATR_YEAR: … … 175 176 WinSetDlgItemText(hwnd, ATR_HELP, NullStr); 176 177 if (SHORT2FROMMP(mp1) == SPBN_SETFOCUS) 177 WinSetDlgItemText(hwnd, ATR_HELP, GetPString(IDS_ATTRYEARHELPTEXT));178 WinSetDlgItemText(hwnd, ATR_HELP, (CHAR *) GetPString(IDS_ATTRYEARHELPTEXT)); 178 179 break; 179 180 case ATR_MONTH: … … 181 182 WinSetDlgItemText(hwnd, ATR_HELP, NullStr); 182 183 if (SHORT2FROMMP(mp1) == SPBN_SETFOCUS) 183 WinSetDlgItemText(hwnd, ATR_HELP, GetPString(IDS_ATTRMONTHHELPTEXT));184 WinSetDlgItemText(hwnd, ATR_HELP, (CHAR *) GetPString(IDS_ATTRMONTHHELPTEXT)); 184 185 break; 185 186 case ATR_DAY: … … 187 188 WinSetDlgItemText(hwnd, ATR_HELP, NullStr); 188 189 if (SHORT2FROMMP(mp1) == SPBN_SETFOCUS) 189 WinSetDlgItemText(hwnd, ATR_HELP, GetPString(IDS_ATTRDAYHELPTEXT));190 WinSetDlgItemText(hwnd, ATR_HELP, (CHAR *) GetPString(IDS_ATTRDAYHELPTEXT)); 190 191 break; 191 192 case ATR_HOUR: … … 193 194 WinSetDlgItemText(hwnd, ATR_HELP, NullStr); 194 195 if (SHORT2FROMMP(mp1) == SPBN_SETFOCUS) 195 WinSetDlgItemText(hwnd, ATR_HELP, GetPString(IDS_ATTRHOURHELPTEXT));196 WinSetDlgItemText(hwnd, ATR_HELP, (CHAR *) GetPString(IDS_ATTRHOURHELPTEXT)); 196 197 break; 197 198 case ATR_MINUTES: … … 199 200 WinSetDlgItemText(hwnd, ATR_HELP, NullStr); 200 201 if (SHORT2FROMMP(mp1) == SPBN_SETFOCUS) 201 WinSetDlgItemText(hwnd, ATR_HELP, GetPString(IDS_ATTRMINHELPTEXT));202 WinSetDlgItemText(hwnd, ATR_HELP, (CHAR *) GetPString(IDS_ATTRMINHELPTEXT)); 202 203 break; 203 204 case ATR_SECONDS: … … 205 206 WinSetDlgItemText(hwnd, ATR_HELP, NullStr); 206 207 if (SHORT2FROMMP(mp1) == SPBN_SETFOCUS) 207 WinSetDlgItemText(hwnd, ATR_HELP, GetPString(IDS_ATTRSECHELPTEXT));208 WinSetDlgItemText(hwnd, ATR_HELP, (CHAR *) GetPString(IDS_ATTRSECHELPTEXT)); 208 209 break; 209 210 case ATR_READONLY: -
trunk/dll/autoview.c
r1482 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 08Steven H.Levine9 Copyright (c) 2001, 2010 Steven H.Levine 10 10 11 11 12 Sep 02 SHL AutoObjProc: catch buff2 overflows … … 35 35 aren't user settable; realappname should be used for setting applicable to 36 36 one or more miniapp but not to FM/2 37 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 37 38 38 39 ***********************************************************************/ … … 676 677 DosError(FERR_DISABLEHARDERR); 677 678 WinRegisterClass(hab2, 678 WC_OBJECTWINDOW,679 (CHAR *) WC_OBJECTWINDOW, 679 680 AutoObjProc, 0, sizeof(PVOID)); 680 681 hwndAutoObj = WinCreateWindow(HWND_OBJECT, 681 WC_OBJECTWINDOW,682 (CHAR *) WC_OBJECTWINDOW, 682 683 (PSZ) NULL, 683 684 0, -
trunk/dll/avv.c
r1480 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 09Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 31 Jul 04 SHL ArcReviewDlgProc: correct nameis... decodes … … 29 29 23 Nov 08 JBS Support use of CMD files in archiver definitions 30 30 11 Jan 08 GKY Replace "ARCHIVER.BB2" in string file with global set at compile in init.c 31 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 31 32 32 33 ***********************************************************************/ … … 653 654 654 655 case LN_SETFOCUS: 655 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_TEXTARCPRODUCEDTEXT));656 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_TEXTARCPRODUCEDTEXT)); 656 657 break; 657 658 } … … 662 663 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 663 664 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 664 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADIDTEXT));665 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADIDTEXT)); 665 666 break; 666 667 … … 669 670 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 670 671 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 671 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADADDTEXT));672 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADADDTEXT)); 672 673 break; 673 674 … … 676 677 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 677 678 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 678 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADMOVETEXT));679 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADMOVETEXT)); 679 680 break; 680 681 … … 683 684 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 684 685 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 685 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADEXTTEXT));686 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADEXTTEXT)); 686 687 break; 687 688 … … 690 691 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 691 692 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 692 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADEXTRACTTEXT));693 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADEXTRACTTEXT)); 693 694 break; 694 695 … … 697 698 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 698 699 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 699 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADWDIRSTEXT));700 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADWDIRSTEXT)); 700 701 break; 701 702 … … 704 705 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 705 706 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 706 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADSIGTEXT));707 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADSIGTEXT)); 707 708 break; 708 709 … … 711 712 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 712 713 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 713 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADLISTTEXT));714 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADLISTTEXT)); 714 715 break; 715 716 … … 718 719 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 719 720 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 720 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADTESTTEXT));721 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADTESTTEXT)); 721 722 break; 722 723 … … 725 726 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 726 727 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 727 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADADDWPATHSTEXT));728 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADADDWPATHSTEXT)); 728 729 break; 729 730 … … 732 733 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 733 734 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 734 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADMOVEWPATHSTEXT));735 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADMOVEWPATHSTEXT)); 735 736 break; 736 737 … … 739 740 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 740 741 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 741 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADADDRECURSETEXT));742 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADADDRECURSETEXT)); 742 743 break; 743 744 … … 746 747 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 747 748 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 748 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADDELETETEXT));749 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADDELETETEXT)); 749 750 break; 750 751 … … 753 754 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 754 755 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 755 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADSIGPOSTEXT));756 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADSIGPOSTEXT)); 756 757 break; 757 758 … … 760 761 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 761 762 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 762 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADFNAMEPOSTEXT));763 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADFNAMEPOSTEXT)); 763 764 break; 764 765 … … 767 768 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 768 769 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 769 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADOLDSZTEXT));770 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADOLDSZTEXT)); 770 771 break; 771 772 … … 774 775 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 775 776 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 776 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADNUMDATEFLDSTEXT));777 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADNUMDATEFLDSTEXT)); 777 778 break; 778 779 … … 781 782 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 782 783 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 783 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADDATEPOSTEXT));784 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADDATEPOSTEXT)); 784 785 break; 785 786 … … 788 789 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 789 790 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 790 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADNEWSZTEXT));791 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADNEWSZTEXT)); 791 792 break; 792 793 … … 795 796 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 796 797 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 797 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADSTARTLISTTEXT));798 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADSTARTLISTTEXT)); 798 799 break; 799 800 … … 802 803 WinSetDlgItemText(hwnd, AD_HELP, NullStr); 803 804 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 804 WinSetDlgItemText(hwnd, AD_HELP, GetPString(IDS_ADENDLISTTEXT));805 WinSetDlgItemText(hwnd, AD_HELP, (CHAR *) GetPString(IDS_ADENDLISTTEXT)); 805 806 break; 806 807 -
trunk/dll/chklist.c
r1398 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2005, 20 09Steven H.Levine9 Copyright (c) 2005, 2010 Steven H.Levine 10 10 11 11 10 Jan 05 SHL Allow DND_TARGET to hold CCHMAXPATH … … 14 14 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 15 15 29 Nov 08 GKY Add flag to tell CheckListProc file is in an archive so it won't try to open it. 16 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 16 17 17 18 ***********************************************************************/ … … 374 375 switch (SHORT2FROMMP(mp1)) { 375 376 case LN_SETFOCUS: 376 WinSetDlgItemText(hwnd, DND_HELP, GetPString(IDS_DNDLISTBOXHELPTEXT));377 WinSetDlgItemText(hwnd, DND_HELP, (CHAR *) GetPString(IDS_DNDLISTBOXHELPTEXT)); 377 378 break; 378 379 case LN_KILLFOCUS: 379 WinSetDlgItemText(hwnd, DND_HELP, GetPString(IDS_DNDHELPTEXT));380 WinSetDlgItemText(hwnd, DND_HELP, (CHAR *) GetPString(IDS_DNDHELPTEXT)); 380 381 break; 381 382 case LN_ENTER: … … 400 401 switch (SHORT2FROMMP(mp1)) { 401 402 case EN_SETFOCUS: 402 WinSetDlgItemText(hwnd, DND_HELP, GetPString(IDS_DNDTARGETHELPTEXT));403 WinSetDlgItemText(hwnd, DND_HELP, (CHAR *) GetPString(IDS_DNDTARGETHELPTEXT)); 403 404 break; 404 405 case EN_KILLFOCUS: 405 WinSetDlgItemText(hwnd, DND_HELP, GetPString(IDS_DNDHELPTEXT));406 WinSetDlgItemText(hwnd, DND_HELP, (CHAR *) GetPString(IDS_DNDHELPTEXT)); 406 407 break; 407 408 } -
trunk/dll/cmdline.c
r1488 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 08Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 27 27 one or more miniapp but not to FM/2 28 28 21 Dec 09 GKY Added CheckExecutibleFlags to streamline code in command.c assoc.c & cmdline.c 29 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 29 30 30 31 ***********************************************************************/ … … 435 436 WinSetDlgItemText(hwnd, 436 437 EXEC_WARNING2, 437 GetPString(IDS_CANTFINDFILETEXT));438 (CHAR *) GetPString(IDS_CANTFINDFILETEXT)); 438 439 break; 439 440 } … … 455 456 WinSetDlgItemText(hwnd, 456 457 EXEC_WARNING2, 457 GetPString(IDS_RUNTHRUCMDEXETEXT));458 (CHAR *) GetPString(IDS_RUNTHRUCMDEXETEXT)); 458 459 break; 459 460 } 460 461 } 461 WinSetDlgItemText(hwnd, 462 EXEC_WARNING2, GetPString(IDS_NOTDIRECTEXETEXT)); 462 WinSetDlgItemText(hwnd, EXEC_WARNING2, (CHAR *) GetPString(IDS_NOTDIRECTEXETEXT)); 463 463 } 464 464 else if (apptype) { /* acceptable */ … … 467 467 468 468 *s = 0; 469 WinSetDlgItemText(hwnd, 470 EXEC_WARNING, GetPString(IDS_ACCEPTABLEAPPTEXT)); 469 WinSetDlgItemText(hwnd, EXEC_WARNING, (CHAR *) GetPString(IDS_ACCEPTABLEAPPTEXT)); 471 470 if (apptype & FAPPTYP_DOS) 472 471 strcat(s, GetPString(IDS_DOSTEXT)); … … 526 525 } 527 526 else 528 WinSetDlgItemText(hwnd, 529 EXEC_WARNING2, GetPString(IDS_UNKNOWNDEFAULTTEXT)); 527 WinSetDlgItemText(hwnd, EXEC_WARNING2, (CHAR *) GetPString(IDS_UNKNOWNDEFAULTTEXT)); 530 528 } 531 529 return 0; … … 666 664 EXEC_WARNING2, 667 665 sizeof(ex->tempprompt), ex->tempprompt); 668 WinSetDlgItemText(hwnd, 669 EXEC_WARNING2, GetPString(IDS_CMDSELCMDHELPTEXT)); 666 WinSetDlgItemText(hwnd, EXEC_WARNING2, (CHAR *) GetPString(IDS_CMDSELCMDHELPTEXT)); 670 667 ex->dropped = TRUE; 671 668 if ((SHORT) WinSendDlgItemMsg(hwnd, -
trunk/dll/codepage.c
r1391 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2006, 20 08Steven H.Levine9 Copyright (c) 2006, 2010 Steven H.Levine 10 10 11 11 14 Jul 06 SHL Use Runtime_Error 12 12 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 13 13 11 Jan 09 GKY Moved codepage names to a character array here from the string file. 14 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 14 15 15 16 ***********************************************************************/ … … 93 94 PICK_INPUT, 94 95 EM_SETTEXTLIMIT, MPFROM2SHORT(256, 0), MPVOID); 95 WinSetWindowText(hwnd, GetPString(IDS_PICKCODEPAGETEXT));96 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_PICKCODEPAGETEXT)); 96 97 PostMsg(hwnd, UM_STRETCH, MPVOID, MPVOID); 97 98 break; -
trunk/dll/collect.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 20 09Steven H. Levine9 Copyright (c) 2003, 2010 Steven H. Levine 10 10 11 11 15 Oct 02 MK Baseline … … 70 70 13 Jul 09 GKY Fixed double free of memory buffer in UM_COLLECTFROMFILE 71 71 15 Sep 09 SHL Use UM_GREP when passing pathname 72 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 72 73 73 74 ***********************************************************************/ … … 653 654 if (!hwndStatus) { 654 655 WinSetWindowText(WinWindowFromID(dcd->hwndClient, DIR_SELECTED), 655 GetPString(IDS_COLLECTINGTEXT));656 (CHAR *) GetPString(IDS_COLLECTINGTEXT)); 656 657 } 657 658 else { 658 659 if (WinQueryFocus(HWND_DESKTOP) == dcd->hwndCnr) 659 WinSetWindowText(hwndStatus, GetPString(IDS_COLLECTINGTEXT));660 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_COLLECTINGTEXT)); 660 661 } 661 662 … … 1266 1267 } 1267 1268 if (dcd->amextracted) 1268 WinSetWindowText(hwndStatus2, GetPString(IDS_INSEEKSCANTEXT)); // Say working1269 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_INSEEKSCANTEXT)); // Say working 1269 1270 WinSendMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 1270 1271 } … … 1369 1370 } 1370 1371 if (dcd->amextracted && hwndStatus2 && !fStatus2Used) 1371 WinSetWindowText(hwndStatus2, GetPString(IDS_INSEEKSCANTEXT)); // Say working1372 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_INSEEKSCANTEXT)); // Say working 1372 1373 } 1373 1374 else { 1374 1375 if (hwndStatus2) { 1375 1376 if (dcd->amextracted) 1376 WinSetWindowText(hwndStatus2, GetPString(IDS_INSEEKSCANTEXT)); // Say working1377 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_INSEEKSCANTEXT)); // Say working 1377 1378 else 1378 1379 WinSetWindowText(hwndStatus2, NullStr); … … 2475 2476 0); /* Index to DRAGITEM */ 2476 2477 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 2477 DRM_OS2FILE, /* mechanisms and data */2478 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 2478 2479 NULL)) { 2479 2480 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */ … … 2510 2511 if (hwndStatus2) 2511 2512 WinSetWindowText(hwndStatus2, 2512 GetPString(IDS_DRAGFILEOBJTEXT));2513 (CHAR *) GetPString(IDS_DRAGFILEOBJTEXT)); 2513 2514 if (DoFileDrag(hwnd, dcd->hwndObject, mp2, NULL, NULL, TRUE)) { 2514 2515 if ((fUnHilite && wasemphasized) || dcd->ulItemsToUnHilite) … … 2993 2994 WS_VISIBLE, 2994 2995 &FrameFlags, 2995 WC_COLLECTOR,2996 (CHAR *) WC_COLLECTOR, 2996 2997 NULL, 2997 2998 WS_VISIBLE | fwsAnimate, … … 3047 3048 Collector = dcd->hwndCnr; 3048 3049 WinSetWindowPtr(dcd->hwndCnr, QWL_USER, (PVOID) dcd); 3049 WinSetWindowText(hwndFrame, GetPString(IDS_COLLECTORTITLETEXT));3050 WinSetWindowText(hwndFrame, (CHAR *) GetPString(IDS_COLLECTORTITLETEXT)); 3050 3051 if (FrameFlags & FCF_MENU) { 3051 3052 PFNWP oldmenuproc; -
trunk/dll/colors.c
r1395 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2006, 20 08Steven H. Levine9 Copyright (c) 2006, 2010 Steven H. Levine 10 10 11 11 14 Jul 06 SHL Use Runtime_Error … … 13 13 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 14 14 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 15 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 15 16 16 17 ***********************************************************************/ … … 48 49 co = (COLORS *) mp2; 49 50 if (co->prompt) 50 WinSetWindowText(hwnd, GetPString(co->prompt));51 WinSetWindowText(hwnd, (CHAR *) GetPString(co->prompt)); 51 52 for (x = 0; x < co->numcolors; x++) 52 53 WinSendDlgItemMsg(hwnd, -
trunk/dll/command.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 08Steven H. Levine9 Copyright (c) 2004, 2010 Steven H. Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 36 36 27 Dec 09 GKY Added QueryCommandSettings to streamline code 37 37 27 Dec 09 GKY Made command hotkeys user selectable. 38 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 38 39 39 40 ***********************************************************************/ … … 374 375 375 376 size = sizeof(BOOL) * 300; 376 PrfQueryProfileData(fmprof, FM3Str, "COMMANDS.UsedCommandIDs", &UsedCommandIDs,377 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.UsedCommandIDs", &UsedCommandIDs, 377 378 &size); 378 379 size = sizeof(BOOL) * 40; 379 PrfQueryProfileData(fmprof, FM3Str, "COMMANDS.UsedHotKeyIDs", &UsedHotKeyIDs,380 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.UsedHotKeyIDs", &UsedHotKeyIDs, 380 381 &size); size = sizeof(BOOL); 381 PrfQueryProfileData(fmprof, FM3Str, "COMMANDS.LoadCommandsFromINI",382 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.LoadCommandsFromINI", 382 383 &fLoadCommandsFromINI, &size); 383 384 if (!fLoadCommandsFromINI) { … … 480 481 cmdloaded = TRUE; 481 482 size = sizeof(ULONG); 482 PrfQueryProfileData(fmprof, FM3Str, "COMMANDS.SizeSortOrder",483 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.SizeSortOrder", 483 484 &ulSizeCommandsList, &size); 484 485 pszCommandsList = xmallocz(ulSizeCommandsList, pszSrcFile, __LINE__); 485 486 if (pszCommandsList) { 486 PrfQueryProfileString(fmprof, FM3Str, "COMMANDS.SortOrder",487 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, "COMMANDS.SortOrder", 487 488 NullStr, pszCommandsList, ulSizeCommandsList); 488 489 p = pszCommandsList; … … 501 502 sprintf(key, "COMMAND.%sID", szTitle); 502 503 size = sizeof(ULONG); 503 PrfQueryProfileData(fmprof, FM3Str, key, &ID, &size);504 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, &ID, &size); 504 505 sprintf(key, "COMMAND.%sHotKeyID", szTitle); 505 506 size = sizeof(ULONG); 506 PrfQueryProfileData(fmprof, FM3Str, key, &HotKeyID, &size);507 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, &HotKeyID, &size); 507 508 sprintf(key, "COMMAND.%sflags", szTitle); 508 509 size = sizeof(ULONG); 509 PrfQueryProfileData(fmprof, FM3Str, key, &flags, &size);510 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, &flags, &size); 510 511 sprintf(key, "COMMAND.%senv", szTitle); 511 PrfQueryProfileString(fmprof, FM3Str, key, NullStr, env, sizeof(env));512 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, key, NullStr, env, sizeof(env)); 512 513 sprintf(key, "COMMAND.%sCmdLine", szTitle); 513 PrfQueryProfileString(fmprof, FM3Str, key, NullStr, pszCmdLine, MaxComLineStrg);514 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, key, NullStr, pszCmdLine, MaxComLineStrg); 514 515 } 515 516 info = xmallocz(sizeof(LINKCMDS), pszSrcFile, __LINE__); … … 550 551 sprintf(key, "COMMAND.%sID", info->title); 551 552 size = sizeof(ULONG); 552 PrfQueryProfileData(fmprof, FM3Str, key, &ID, &size);553 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, &ID, &size); 553 554 sprintf(key, "COMMAND.%sHotKeyID", info->title); 554 555 size = sizeof(ULONG); 555 PrfQueryProfileData(fmprof, FM3Str, key, &HotKeyID, &size);556 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, &HotKeyID, &size); 556 557 sprintf(key, "COMMAND.%senv", info->title); 557 PrfQueryProfileString(fmprof, FM3Str, key, NullStr, env, sizeof(env));558 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, key, NullStr, env, sizeof(env)); 558 559 if (ID != 0) { 559 560 if (env != NullStr) … … 584 585 GetPString(IDS_COMMANDSLIMITREACHEDTEXT )); 585 586 } 586 PrfQueryProfileString(fmprof, FM3Str, info->pszCmdLine, NullStr, env, sizeof(env));587 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, info->pszCmdLine, NullStr, env, sizeof(env)); 587 588 info->env = xstrdup(env, pszSrcFile, __LINE__); 588 589 } … … 610 611 while (info) { 611 612 sprintf(key, "COMMAND.%sflags", info->title); 612 PrfWriteProfileData(fmprof, FM3Str, key, &info->flags, sizeof(ULONG));613 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, key, &info->flags, sizeof(ULONG)); 613 614 sprintf(key, "COMMAND.%sCmdLine", info->title); 614 PrfWriteProfileString(fmprof, FM3Str, key, info->pszCmdLine);615 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, key, info->pszCmdLine); 615 616 bstripcr(info->title); 616 617 sprintf(key, "COMMAND.%sID", info->title); 617 PrfWriteProfileData(fmprof, FM3Str, key, &info->ID, sizeof(INT));618 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, key, &info->ID, sizeof(INT)); 618 619 sprintf(key, "COMMAND.%sHotKeyID", info->title); 619 PrfWriteProfileData(fmprof, FM3Str, key, &info->HotKeyID, sizeof(INT));620 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, key, &info->HotKeyID, sizeof(INT)); 620 621 if (info->env != NullStr) { 621 622 sprintf(key, "COMMAND.%senv", info->title); 622 PrfWriteProfileString(fmprof, FM3Str, key, info->env);623 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, key, info->env); 623 624 } 624 625 if ((strlen(pszCommandsList) + strlen(info->title) + 1) > ulSizeCommandsList) … … 630 631 info = info->next; 631 632 } // while info 632 PrfWriteProfileData(fmprof, FM3Str, "COMMANDS.UsedCommandIDs", &UsedCommandIDs,633 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.UsedCommandIDs", &UsedCommandIDs, 633 634 sizeof(BOOL) * 300); 634 PrfWriteProfileData(fmprof, FM3Str, "COMMANDS.UsedHotKeyIDs", &UsedHotKeyIDs,635 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.UsedHotKeyIDs", &UsedHotKeyIDs, 635 636 sizeof(BOOL) * 40); 636 637 ulSizeCommandsList = strlen(pszCommandsList) + 1; 637 PrfWriteProfileData(fmprof, FM3Str, "COMMANDS.SizeSortOrder",638 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.SizeSortOrder", 638 639 &ulSizeCommandsList, sizeof(ULONG)); 639 PrfWriteProfileString(fmprof, FM3Str, "COMMANDS.SortOrder", pszCommandsList);640 PrfWriteProfileData(fmprof, FM3Str, "COMMANDS.LoadCommandsFromINI",640 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "COMMANDS.SortOrder", pszCommandsList); 641 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "COMMANDS.LoadCommandsFromINI", 641 642 &fLoadCommandsFromINI, sizeof(BOOL)); 642 643 } … … 747 748 pszCommandsList = xmallocz(ulSizeCommandsList, pszSrcFile, __LINE__); 748 749 if (pszCommandsList) 749 PrfQueryProfileString(fmprof, FM3Str, "COMMANDS.SortOrder",750 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, "COMMANDS.SortOrder", 750 751 NullStr, pszCommandsList, ulSizeCommandsList); 751 752 return 0; … … 1102 1103 sprintf(keyHotKeyID, "COMMAND.%sHotKeyID", temp); 1103 1104 sprintf(keyenv, "COMMAND.%senv", temp); 1104 PrfWriteProfileData(fmprof, FM3Str, keyID, NULL, 0);1105 PrfWriteProfileData(fmprof, FM3Str, keyHotKeyID, NULL, 0);1106 PrfWriteProfileString(fmprof, FM3Str, keyenv, NULL);1105 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, keyID, NULL, 0); 1106 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, keyHotKeyID, NULL, 0); 1107 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, keyenv, NULL); 1107 1108 x = (SHORT) WinSendDlgItemMsg(hwnd, 1108 1109 CMD_LISTBOX, … … 1157 1158 sprintf(keyHotKeyID, "COMMAND.%sHotKeyID", temp->title); 1158 1159 sprintf(keyenv, "COMMAND.%senv", temp->title); 1159 PrfQueryProfileData(fmprof, FM3Str, keyID, &ID, &size);1160 PrfQueryProfileData(fmprof, FM3Str, keyHotKeyID, &HotKeyID, &size);1160 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, keyID, &ID, &size); 1161 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, keyHotKeyID, &HotKeyID, &size); 1161 1162 temp->ID = ID; 1162 1163 if (temp->HotKeyID == HotKeyID || temp->HotKeyID == 0) 1163 1164 fDontCheckHotKey = TRUE; 1164 1165 if (kill_command(temp->title)) { 1165 PrfWriteProfileData(fmprof, FM3Str, keyID, NULL, 0);1166 PrfWriteProfileData(fmprof, FM3Str, keyHotKeyID, NULL, 0);1167 PrfWriteProfileString(fmprof, FM3Str, keyenv, NULL);1166 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, keyID, NULL, 0); 1167 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, keyHotKeyID, NULL, 0); 1168 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, keyenv, NULL); 1168 1169 x = (SHORT) WinSendDlgItemMsg(hwnd, 1169 1170 CMD_LISTBOX, -
trunk/dll/common.c
r1455 r1498 7 7 8 8 Copyright (c) 1993, 1998 M. Kimes 9 Copyright (c) 2001, 20 08Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 13 Aug 05 SHL Renames … … 32 32 inappropriate menu context choices 33 33 14 Sep 09 SHL Blink thread LEDs while threads working 34 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 34 35 35 36 ***********************************************************************/ … … 235 236 break; 236 237 } 237 hwndTmp = WinCreateWindow(hwnd, class, s, attrs, 0, 0, 0, 0, hwnd,238 hwndTmp = WinCreateWindow(hwnd, (CHAR *) class, s, attrs, 0, 0, 0, 0, hwnd, 238 239 HWND_TOP, ids[x], NULL, NULL); 239 240 if (!hwndTmp) … … 437 438 // Left status window 438 439 hwndStatus = WinCreateWindow(hwndFrame, 439 WC_STATUS,440 (CHAR *) WC_STATUS, 440 441 "Status", 441 442 WS_VISIBLE | SS_TEXT | DT_LEFT | … … 458 459 // Right status window 459 460 hwndStatus2 = WinCreateWindow(hwndFrame, 460 WC_STATUS,461 (CHAR *) WC_STATUS, 461 462 "Status2", 462 463 WS_VISIBLE | SS_TEXT | DT_LEFT | … … 479 480 480 481 hwndAttr = WinCreateWindow(hwndFrame, 481 WC_STATUS,482 (CHAR *) WC_STATUS, 482 483 "Attr", 483 484 WS_VISIBLE | SS_TEXT | DT_CENTER | … … 498 499 499 500 hwndDate = WinCreateWindow(hwndFrame, 500 WC_STATUS,501 (CHAR *) WC_STATUS, 501 502 "Date", 502 503 WS_VISIBLE | SS_TEXT | DT_CENTER | … … 517 518 518 519 hwndName = WinCreateWindow(hwndFrame, 519 WC_STATUS,520 (CHAR *) WC_STATUS, 520 521 "Name", 521 522 WS_VISIBLE | SS_TEXT | DT_LEFT | … … 536 537 537 538 hwndTmp = WinCreateWindow(hwndFrame, 538 WC_TOOLBACK,539 (CHAR *) WC_TOOLBACK, 539 540 NullStr, 540 541 WS_VISIBLE | SS_TEXT | DT_CENTER | DT_VCENTER, … … 554 555 555 556 hwndBack = WinCreateWindow(hwndFrame, 556 WC_DRIVEBACK,557 (CHAR *) WC_DRIVEBACK, 557 558 NullStr, 558 559 WS_VISIBLE | SS_TEXT | DT_RIGHT | DT_BOTTOM, … … 575 576 576 577 hwndLED = WinCreateWindow(hwndFrame, 577 WC_LED,578 (CHAR *) WC_LED, 578 579 "#920", // LEDOFF_BMP 579 580 WS_VISIBLE | SS_BITMAP, … … 587 588 588 589 hwndLEDHdr = WinCreateWindow(hwndFrame, 589 WC_LED,590 (CHAR *) WC_LED, 590 591 "0", 591 592 WS_VISIBLE | SS_TEXT | DT_VCENTER | … … 601 602 602 603 hwndAutoview = WinCreateWindow(hwndFrame, 603 WC_AUTOVIEW,604 (CHAR *) WC_AUTOVIEW, 604 605 NullStr, 605 606 WS_VISIBLE | SS_TEXT | DT_LEFT | … … 623 624 hwndAutoMLE = WinCreateWindow(hwndFrame, 624 625 // GetPString(IDS_WCAUTOVIEW), 625 WC_MLE,626 (CHAR *) WC_MLE, 626 627 NullStr, 627 628 WS_VISIBLE | MLS_HSCROLL | -
trunk/dll/comp.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-02 M. Kimes 9 Copyright (c) 2003, 20 09Steven H. Levine9 Copyright (c) 2003, 2010 Steven H. Levine 10 10 11 11 16 Oct 02 MK Baseline … … 73 73 27 Sep 09 SHL Allow fast cancel 74 74 27 Sep 09 SHL Drop unused reset logic 75 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 75 76 76 77 ***********************************************************************/ … … 296 297 sprintf(s, GetPString(IDS_COMPCANTOPENTEXT), fc.file1); 297 298 AddToListboxBottom(fc.hwndList, s); 298 WinSetWindowText(fc.hwndHelp, GetPString(IDS_ERRORTEXT));299 WinSetWindowText(fc.hwndHelp, (CHAR *) GetPString(IDS_ERRORTEXT)); 299 300 } 300 301 else { … … 303 304 sprintf(s, GetPString(IDS_COMPCANTOPENTEXT), fc.file2); 304 305 AddToListboxBottom(fc.hwndList, s); 305 WinSetWindowText(fc.hwndHelp, GetPString(IDS_ERRORTEXT));306 WinSetWindowText(fc.hwndHelp, (CHAR *) GetPString(IDS_ERRORTEXT)); 306 307 } 307 308 else { … … 314 315 AddToListboxBottom(fc.hwndList, s); 315 316 WinSetWindowText(fc.hwndHelp, 316 GetPString(IDS_COMPDONTMATCHTEXT));317 (CHAR *) GetPString(IDS_COMPDONTMATCHTEXT)); 317 318 } 318 319 else { 319 320 WinSetWindowText(fc.hwndHelp, 320 GetPString(IDS_COMPCOMPARINGTEXT));321 (CHAR *) GetPString(IDS_COMPCOMPARINGTEXT)); 321 322 while (WinIsWindow(hab2, fc.hwndList)) { 322 323 numread1 = fread(s, 1, 1024, fp1); … … 326 327 offset, offset); 327 328 AddToListboxBottom(fc.hwndList, s); 328 WinSetWindowText(fc.hwndHelp, GetPString(IDS_ERRORTEXT));329 WinSetWindowText(fc.hwndHelp, (CHAR *) GetPString(IDS_ERRORTEXT)); 329 330 break; 330 331 } … … 336 337 GetPString(IDS_COMPWONDERWHYTEXT)); 337 338 WinSetWindowText(fc.hwndHelp, 338 GetPString(IDS_COMPCOMPLETETEXT));339 (CHAR *) GetPString(IDS_COMPCOMPLETETEXT)); 339 340 break; 340 341 } … … 346 347 offset, offset); 347 348 WinSetWindowText(fc.hwndHelp, 348 GetPString(IDS_COMPODDERRORTEXT));349 (CHAR *) GetPString(IDS_COMPODDERRORTEXT)); 349 350 AddToListboxBottom(fc.hwndList, s); 350 351 break; … … 360 361 AddToListboxBottom(fc.hwndList, s); 361 362 WinSetWindowText(fc.hwndHelp, 362 GetPString(IDS_COMPDONTMATCHTEXT));363 (CHAR *) GetPString(IDS_COMPDONTMATCHTEXT)); 363 364 break; 364 365 } … … 2199 2200 ULONG size = sizeof(SWP); 2200 2201 2201 PrfQueryProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp, &size);2202 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "CompDir.Position", (PVOID) &swp, &size); 2202 2203 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 2203 2204 WinSetWindowPos(hwnd, … … 2387 2388 case UM_CONTAINERHWND: 2388 2389 // Building list 2389 WinSetDlgItemText(hwnd, COMP_NOTE, GetPString(IDS_COMPHOLDBLDLISTTEXT));2390 WinSetDlgItemText(hwnd, COMP_NOTE, (CHAR *) GetPString(IDS_COMPHOLDBLDLISTTEXT)); 2390 2391 return 0; 2391 2392 2392 2393 case UM_CONTAINERDIR: 2393 2394 // Filling container 2394 WinSetDlgItemText(hwnd, COMP_NOTE, GetPString(IDS_COMPHOLDFILLCNRTEXT));2395 WinSetDlgItemText(hwnd, COMP_NOTE, (CHAR *) GetPString(IDS_COMPHOLDFILLCNRTEXT)); 2395 2396 return 0; 2396 2397 … … 2445 2446 } 2446 2447 else 2447 WinSetDlgItemText(hwnd, COMP_NOTE, GetPString(IDS_COMPREADYTEXT));2448 WinSetDlgItemText(hwnd, COMP_NOTE, (CHAR *) GetPString(IDS_COMPREADYTEXT)); 2448 2449 } 2449 2450 break; … … 2709 2710 else { 2710 2711 WinSetDlgItemText(hwnd, COMP_NOTE, 2711 GetPString(IDS_COMPHOLDREADDISKTEXT));2712 (CHAR *) GetPString(IDS_COMPHOLDREADDISKTEXT)); 2712 2713 SetButtonEnables(cmp, FALSE); 2713 2714 cmp->selleft = 0; … … 2727 2728 } 2728 2729 WinSetDlgItemText(hwnd, COMP_NOTE, 2729 GetPString(IDS_COMPHOLDFILTERINGTEXT));2730 (CHAR *) GetPString(IDS_COMPHOLDFILTERINGTEXT)); 2730 2731 // cmp->dcd.suspendview = 1; // 12 Jan 08 SHL appears not to be used here 2731 2732 priority_idle(); // Don't hog resources … … 2743 2744 } 2744 2745 else 2745 WinSetDlgItemText(hwnd, COMP_NOTE, GetPString(IDS_COMPREADYTEXT));2746 WinSetDlgItemText(hwnd, COMP_NOTE, (CHAR *) GetPString(IDS_COMPREADYTEXT)); 2746 2747 } 2747 2748 return 0; … … 2805 2806 } 2806 2807 else 2807 WinSetDlgItemText(hwnd, COMP_NOTE, GetPString(IDS_COMPREADYTEXT));2808 WinSetDlgItemText(hwnd, COMP_NOTE, (CHAR *) GetPString(IDS_COMPREADYTEXT)); 2808 2809 WinCheckButton(hwnd, COMP_HIDENOTSELECTED, nowHidden); 2809 2810 } … … 3095 3096 case COMP_DELETERIGHT: 3096 3097 WinSetDlgItemText(hwnd, COMP_NOTE, 3097 GetPString(IDS_COMPHOLDDELETINGTEXT));3098 (CHAR *) GetPString(IDS_COMPHOLDDELETINGTEXT)); 3098 3099 break; 3099 3100 case COMP_MOVELEFT: 3100 3101 case COMP_MOVERIGHT: 3101 3102 WinSetDlgItemText(hwnd, COMP_NOTE, 3102 GetPString(IDS_COMPHOLDMOVINGTEXT));3103 (CHAR *) GetPString(IDS_COMPHOLDMOVINGTEXT)); 3103 3104 break; 3104 3105 case COMP_COPYLEFT: 3105 3106 case COMP_COPYRIGHT: 3106 3107 WinSetDlgItemText(hwnd, COMP_NOTE, 3107 GetPString(IDS_COMPHOLDCOPYINGTEXT));3108 (CHAR *) GetPString(IDS_COMPHOLDCOPYINGTEXT)); 3108 3109 break; 3109 3110 default: … … 3122 3123 3123 3124 WinQueryWindowPos(hwnd, &swp); 3124 PrfWriteProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp,3125 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "CompDir.Position", (PVOID) &swp, 3125 3126 size); 3126 3127 } … … 3140 3141 ULONG size = sizeof(SWP); 3141 3142 WinQueryWindowPos(hwnd, &swp); 3142 PrfWriteProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp,3143 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "CompDir.Position", (PVOID) &swp, 3143 3144 size); 3144 3145 } … … 3204 3205 case IDM_DESELECTBOTH: 3205 3206 WinSetDlgItemText(hwnd, COMP_NOTE, 3206 GetPString(IDS_COMPHOLDDESELTEXT));3207 (CHAR *) GetPString(IDS_COMPHOLDDESELTEXT)); 3207 3208 break; 3208 3209 case IDM_INVERT: 3209 3210 WinSetDlgItemText(hwnd, COMP_NOTE, 3210 GetPString(IDS_COMPHOLDINVERTTEXT));3211 (CHAR *) GetPString(IDS_COMPHOLDINVERTTEXT)); 3211 3212 break; 3212 3213 default: 3213 3214 WinSetDlgItemText(hwnd, COMP_NOTE, 3214 GetPString(IDS_COMPHOLDSELTEXT));3215 (CHAR *) GetPString(IDS_COMPHOLDSELTEXT)); 3215 3216 break; 3216 3217 } -
trunk/dll/datamin.c
r1482 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 08Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 14 Sep 02 SHL Handle large partitions … … 34 34 aren't user settable; realappname should be used for setting applicable to 35 35 one or more miniapp but not to FM/2 36 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 36 37 37 38 ***********************************************************************/ … … 261 262 for (c = 0; ids[c]; c++) { 262 263 if (!WinCreateWindow(hwnd, 263 WC_MINITIME,264 (CHAR *) WC_MINITIME, 264 265 NullStr, 265 266 SS_TEXT | DT_CENTER | DT_VCENTER | WS_VISIBLE, … … 322 323 if ((ulDriveMap & (1L << c)) && !(driveflags[c] & drivestyle)) { 323 324 if (!WinCreateWindow(hwnd, 324 WC_MINITIME,325 (CHAR *) WC_MINITIME, 325 326 NullStr, 326 327 SS_TEXT | DT_CENTER | DT_VCENTER | … … 1009 1010 WS_VISIBLE, 1010 1011 &FrameFlags, 1011 WC_DATABAR,1012 (CHAR *) WC_DATABAR, 1012 1013 NULL, WS_VISIBLE, 0, MINI_FRAME, &hwndClient)) { 1013 1014 WinSendMsg(hwndClient, UM_RESTORE, MPFROMLONG(fl), MPVOID); -
trunk/dll/dircnrs.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 16 Oct 02 SHL Handle large partitions … … 74 74 aren't user settable; realappname should be used for setting applicable to 75 75 one or more miniapp but not to FM/2 76 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 76 77 77 78 ***********************************************************************/ … … 867 868 if (hwndStatus && 868 869 dcd->hwndFrame == WinQueryActiveWindow(dcd->hwndParent)) { 869 WinSetWindowText(hwndStatus, GetPString(IDS_PLEASEWAITSCANNINGTEXT));870 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_PLEASEWAITSCANNINGTEXT)); 870 871 if (hwndMain) 871 872 WinSendMsg(hwndMain, UM_LOADFILE, MPVOID, MPVOID); … … 2988 2989 */ 2989 2990 pDItem = DrgQueryDragitemPtr(pDInfo, 0); 2990 if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL) ||2991 if (DrgVerifyRMF(pDItem, (CHAR *) DRM_OS2FILE, NULL) || 2991 2992 ((!pci || (pci->attrFile & FILE_DIRECTORY)) && 2992 DrgVerifyRMF(pDItem, DRM_FM2ARCMEMBER,DRF_FM2ARCHIVE))) {2993 DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2ARCMEMBER, (CHAR *) DRF_FM2ARCHIVE))) { 2993 2994 DrgFreeDraginfo(pDInfo); 2994 2995 if (driveflags[toupper(*dcd->directory) - 'A'] & … … 3029 3030 if (hwndStatus2) { 3030 3031 if (pci) 3031 WinSetWindowText(hwndStatus2, 3032 GetPString(IDS_DRAGFILEOBJTEXT)); 3032 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRAGFILEOBJTEXT)); 3033 3033 else 3034 WinSetWindowText(hwndStatus2, GetPString(IDS_DRAGDIRTEXT));3034 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRAGDIRTEXT)); 3035 3035 } 3036 3036 if (DoFileDrag(hwnd, … … 3435 3435 if (hwndStatus) 3436 3436 WinSetWindowText(hwndStatus, 3437 GetPString(IDS_RESCANSUGGESTEDTEXT));3437 (CHAR *) GetPString(IDS_RESCANSUGGESTEDTEXT)); 3438 3438 } 3439 3439 else { … … 3719 3719 WS_VISIBLE, 3720 3720 &FrameFlags, 3721 WC_DIRCONTAINER,3721 (CHAR *) WC_DIRCONTAINER, 3722 3722 NULL, 3723 3723 WS_VISIBLE | fwsAnimate, -
trunk/dll/dircnrs.h
r1411 r1498 14 14 all the details view settings (both the global variables and those in the 15 15 DIRCNRDATA struct) into a new struct: DETAILS_SETTINGS. 16 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 16 17 17 18 ***********************************************************************/ … … 144 145 ULONG lasttime; 145 146 BOOL arcfilled; 147 #ifdef INCL_DOSSEMAPHORES 146 148 HMTX filling; 149 #endif 147 150 BOOL firsttree; 148 151 ULONG lastattr; -
trunk/dll/dirs.c
r1438 r1498 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2003, 20 08Steven H.Levine7 Copyright (c) 2003, 2010 Steven H.Levine 8 8 9 9 Directory manipulation 10 10 11 11 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 12 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 12 13 13 14 ***********************************************************************/ … … 89 90 if ((CHAR) ((CHAR) curdrive + '@') != (CHAR) toupper(*HomePath) && 90 91 (CHAR) ((CHAR) curdrive + '@') != (CHAR) toupper(*path)) 91 DosChDir( PCSZ_BACKSLASH);92 DosChDir((CHAR *) PCSZ_BACKSLASH); 92 93 } 93 94 ret = DosSelectDisk(toupper(*path) - '@'); -
trunk/dll/dirsize.c
r1482 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 16 Oct 02 SHL Handle large partitions … … 51 51 aren't user settable; realappname should be used for setting applicable to 52 52 one or more miniapp but not to FM/2 53 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 53 54 54 55 ***********************************************************************/ … … 528 529 ULONG size = sizeof(SWP); 529 530 530 PrfQueryProfileData(fmprof, FM3Str, "DirSizes.Position", (PVOID) &swp, &size);531 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "DirSizes.Position", (PVOID) &swp, &size); 531 532 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 532 533 WinSetWindowPos(hwnd, … … 606 607 } 607 608 else 608 WinSetDlgItemText(hwnd, 609 DSZ_FREESPACE, GetPString(IDS_FREESPACEUTEXT)); 609 WinSetDlgItemText(hwnd, DSZ_FREESPACE, (CHAR *) GetPString(IDS_FREESPACEUTEXT)); 610 610 } 611 611 } … … 1019 1019 1020 1020 WinQueryWindowPos(hwnd, &swp); 1021 PrfWriteProfileData(fmprof, FM3Str, "DirSizes.Position", (PVOID) &swp, 1022 size); 1021 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "DirSizes.Position", (PVOID) &swp, size); 1023 1022 } 1024 1023 pState = INSTDATA(hwnd); -
trunk/dll/draglist.c
r1463 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 08Steven H.Levine9 Copyright (c) 2001, 2010 Steven H.Levine 10 10 11 11 16 Oct 02 SHL DoFileDrag: don't free stack … … 25 25 12 Sep 09 GKY Fix (probably spurrious) error message generated on drag of 26 26 items from a pmmail mail message (PMERR_INVALID_PARAMETER) 27 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 27 28 28 29 ***********************************************************************/ … … 183 184 DItem.ulItemID = 1; 184 185 DItem.hstrType = DrgAddStrHandle(DRT_UNKNOWN); 185 DItem.hstrRMF = DrgAddStrHandle( DRMDRFLIST);186 DItem.hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFLIST); 186 187 DItem.hstrContainerName = DrgAddStrHandle(szDir); 187 188 DItem.hstrSourceName = DrgAddStrHandle(szFile); … … 364 365 pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN); 365 366 ok = pDItem->hstrType; 366 pDItem->hstrRMF = DrgAddStrHandle( DRMDRFLIST);367 pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFLIST); 367 368 ok = ok && pDItem->hstrRMF; 368 369 pDItem->hstrContainerName = DrgAddStrHandle(szBuffer); … … 440 441 pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN); 441 442 ok = pDItem->hstrType; 442 pDItem->hstrRMF = DrgAddStrHandle( DRMDRFOS2FILE);443 pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFOS2FILE); 443 444 ok = ok && pDItem->hstrRMF; 444 445 pDItem->hstrContainerName = DrgAddStrHandle(arcfile); … … 479 480 pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN); 480 481 ok = ok && pDItem->hstrType; 481 pDItem->hstrRMF = DrgAddStrHandle( DRMDRFFM2ARC);482 pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFFM2ARC); 482 483 ok = ok && pDItem->hstrRMF; 483 484 pDItem->hstrContainerName = DrgAddStrHandle(arcfile); … … 691 692 pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN); 692 693 ok = pDItem->hstrType; 693 pDItem->hstrRMF = DrgAddStrHandle( DRMDRFLIST);694 pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFLIST); 694 695 ok = ok && pDItem->hstrRMF; 695 696 pDItem->hstrContainerName = DrgAddStrHandle(szBuffer); -
trunk/dll/droplist.c
r1402 r1498 1 2 1 /*********************************************************************** 3 2 … … 7 6 8 7 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 20 09Steven H.Levine8 Copyright (c) 2003, 2010 Steven H.Levine 10 9 11 10 22 Nov 02 SHL Baseline … … 22 21 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 23 22 08 Mar 09 GKY Additional strings move to PCSZs 23 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 24 24 25 25 ***********************************************************************/ … … 204 204 if (buflen && buffer) { 205 205 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 206 DRM_OS2FILE, /* mechanisms and data */206 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 207 207 NULL) && !(pDItem->fsControl & DC_PREPARE)) 208 208 ret = FullDrgName(pDItem, buffer, buflen); … … 238 238 239 239 /* Check valid rendering mechanisms and data formats */ 240 if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL))240 if (DrgVerifyRMF(pDItem, (CHAR *) DRM_OS2FILE, NULL)) 241 241 ret = TRUE; 242 242 … … 372 372 373 373 if (DrgVerifyRMF(pDItem, 374 DRM_OS2FILE,374 (CHAR *) DRM_OS2FILE, 375 375 NULL) || 376 376 (arcfilesok && 377 377 ((arctest = DrgVerifyRMF(pDItem, 378 DRM_FM2ARCMEMBER,379 DRF_FM2ARCHIVE)) != FALSE))) {378 (CHAR *) DRM_FM2ARCMEMBER, 379 (CHAR *) DRF_FM2ARCHIVE)) != FALSE))) { 380 380 if (pDItem->fsControl & DC_PREPARE) { 381 381 DrgSendTransferMsg(pDItem->hwndItem, -
trunk/dll/eas.c
r1480 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 08Steven H. Levine9 Copyright (c) 2004, 2010 Steven H. Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 24 24 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 25 25 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory 26 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 26 27 27 28 ***********************************************************************/ … … 162 163 DosBeep(50, 100); 163 164 WinSetDlgItemText(hwnd, EAC_TEXT, 164 GetPString(IDS_EANAMEEXISTSTEXT));165 (CHAR *) GetPString(IDS_EANAMEEXISTSTEXT)); 165 166 break; 166 167 } … … 170 171 DosBeep(50, 100); 171 172 WinSetDlgItemText(hwnd, EAC_TEXT, 172 GetPString(IDS_EANAMERESERVEDTEXT));173 (CHAR *) GetPString(IDS_EANAMERESERVEDTEXT)); 173 174 return 0; 174 175 } … … 184 185 DosBeep(50, 100); 185 186 WinSetDlgItemText(hwnd, EAC_TEXT, 186 GetPString(IDS_EAWRONGTYPETEXT));187 (CHAR *) GetPString(IDS_EAWRONGTYPETEXT)); 187 188 return 0; 188 189 } … … 423 424 } 424 425 else 425 WinSetDlgItemText(hwnd, EA_TEXT, GetPString(IDS_EANOEAS));426 WinSetDlgItemText(hwnd, EA_TEXT, (CHAR *) GetPString(IDS_EANOEAS)); 426 427 return 0; 427 428 … … 441 442 switch (SHORT2FROMMP(mp1)) { 442 443 case LN_SETFOCUS: 443 WinSetDlgItemText(hwnd, EA_HELP, GetPString(IDS_EAFILENAMESHELPTEXT));444 WinSetDlgItemText(hwnd, EA_HELP, (CHAR *) GetPString(IDS_EAFILENAMESHELPTEXT)); 444 445 break; 445 446 case LN_KILLFOCUS: … … 476 477 switch (SHORT2FROMMP(mp1)) { 477 478 case LN_SETFOCUS: 478 WinSetDlgItemText(hwnd, EA_HELP, GetPString(IDS_EATYPESHELPTEXT));479 WinSetDlgItemText(hwnd, EA_HELP, (CHAR *) GetPString(IDS_EATYPESHELPTEXT)); 479 480 break; 480 481 case LN_KILLFOCUS: … … 788 789 switch (SHORT2FROMMP(mp1)) { 789 790 case EN_SETFOCUS: 790 WinSetDlgItemText(hwnd, EA_HELP, GetPString(IDS_EADATAHELPTEXT));791 WinSetDlgItemText(hwnd, EA_HELP, (CHAR *) GetPString(IDS_EADATAHELPTEXT)); 791 792 break; 792 793 case EN_KILLFOCUS: … … 802 803 switch (SHORT2FROMMP(mp1)) { 803 804 case LN_SETFOCUS: 804 WinSetDlgItemText(hwnd, EA_HELP, GetPString(IDS_EADATAHELPTEXT));805 WinSetDlgItemText(hwnd, EA_HELP, (CHAR *) GetPString(IDS_EADATAHELPTEXT)); 805 806 break; 806 807 case LN_KILLFOCUS: … … 813 814 switch (SHORT2FROMMP(mp1)) { 814 815 case MLN_SETFOCUS: 815 WinSetDlgItemText(hwnd, EA_HELP, GetPString(IDS_EADATAHELPTEXT));816 WinSetDlgItemText(hwnd, EA_HELP, (CHAR *) GetPString(IDS_EADATAHELPTEXT)); 816 817 break; 817 818 case MLN_KILLFOCUS: … … 983 984 } 984 985 if (!eap->head) 985 WinSetDlgItemText(hwnd, EA_TEXT, GetPString(IDS_EANOEAS));986 WinSetDlgItemText(hwnd, EA_TEXT, (CHAR *) GetPString(IDS_EANOEAS)); 986 987 break; 987 988 -
trunk/dll/extract.c
r1395 r1498 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2004, 20 08Steven H. Levine7 Copyright (c) 2004, 2010 Steven H. Levine 8 8 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage … … 18 18 for the extract path. 19 19 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 20 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 20 21 21 22 ***********************************************************************/ … … 120 121 QWL_USER, (PVOID) oldproc); 121 122 size = sizeof(BOOL); 122 PrfQueryProfileData(fmprof, FM3Str, "RememberExt",123 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "RememberExt", 123 124 (PVOID) & fRemember, &size); 124 125 size = sizeof(BOOL); 125 PrfQueryProfileData(fmprof, FM3Str, "DirectoryExt",126 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "DirectoryExt", 126 127 (PVOID) & fDirectory, &size); 127 128 size = sizeof(BOOL); 128 PrfQueryProfileData(fmprof, FM3Str, "FileNamePathExt",129 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "FileNamePathExt", 129 130 (PVOID) & fFileNameExtPath, &size); 130 131 WinCheckButton(hwnd, EXT_REMEMBER, fRemember); … … 142 143 WinSetDlgItemText(hwnd, EXT_FILENAME, arcdata->arcname); 143 144 else 144 WinSetDlgItemText(hwnd, EXT_FILENAME, GetPString(IDS_EXTVARIOUSTEXT));145 WinSetDlgItemText(hwnd, EXT_FILENAME, (CHAR *) GetPString(IDS_EXTVARIOUSTEXT)); 145 146 146 147 if (fFileNameExtPath && arcdata->arcname) { … … 176 177 CHAR textdir[CCHMAXPATH]; 177 178 178 PrfQueryProfileString(fmprof, FM3Str, "Ext_ExtractDir", NULL, textdir, sizeof(textdir));179 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, "Ext_ExtractDir", NULL, textdir, sizeof(textdir)); 179 180 if (*textdir && !IsFile(textdir)) 180 181 strcpy(arcdata->extractdir, textdir); 181 PrfQueryProfileString(fmprof, FM3Str, "Ext_Mask", NULL, textdir, sizeof(textdir));182 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, "Ext_Mask", NULL, textdir, sizeof(textdir)); 182 183 WinSetDlgItemText(hwnd, EXT_MASK, textdir); 183 184 } … … 223 224 fRemember = FALSE; 224 225 size = sizeof(BOOL); 225 PrfQueryProfileData(fmprof, FM3Str, "Ext_WDirs",226 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Ext_WDirs", 226 227 (PVOID) &fRemember, &size); 227 228 if (fRemember) … … 249 250 BOOL fRemember = WinQueryButtonCheckstate(hwnd, EXT_REMEMBER); 250 251 size = sizeof(BOOL); 251 PrfWriteProfileData(fmprof, FM3Str, "RememberExt",252 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "RememberExt", 252 253 (PVOID) &fRemember, size); 253 254 WinSendDlgItemMsg(hwnd, EXT_FILENAMEEXT, BM_SETCHECK, … … 260 261 BOOL fDirectory = WinQueryButtonCheckstate(hwnd, EXT_AWDIRS); 261 262 size = sizeof(BOOL); 262 PrfWriteProfileData(fmprof, FM3Str, "DirectoryExt",263 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "DirectoryExt", 263 264 (PVOID) &fDirectory, size); 264 265 … … 281 282 BOOL fRemember = WinQueryButtonCheckstate(hwnd, EXT_REMEMBER); 282 283 size = sizeof(BOOL); 283 PrfWriteProfileData(fmprof, FM3Str, "FileNamePathExt",284 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "FileNamePathExt", 284 285 fRemember ? FALSE : (PVOID) &fFileNameExtPath, size); 285 286 if (fRemember) { … … 346 347 case EXT_FILENAME: 347 348 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 348 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));349 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 349 350 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 350 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCARCNAMEHELPTEXT));351 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCARCNAMEHELPTEXT)); 351 352 break; 352 353 353 354 case EXT_DIRECTORY: 354 355 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 355 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));356 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 356 357 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 357 WinSetDlgItemText(hwnd, EXT_HELP, 358 GetPString(IDS_EXTEXTRACTDIRHELPTEXT)); 358 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_EXTEXTRACTDIRHELPTEXT)); 359 359 break; 360 360 361 361 case EXT_COMMAND: 362 362 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 363 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));363 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 364 364 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 365 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCCMDHELPTEXT));365 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCCMDHELPTEXT)); 366 366 break; 367 367 368 368 case EXT_MASK: 369 369 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 370 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));370 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 371 371 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 372 WinSetDlgItemText(hwnd, EXT_HELP, GetPString(IDS_ARCMASKHELPTEXT));372 WinSetDlgItemText(hwnd, EXT_HELP, (CHAR *) GetPString(IDS_ARCMASKHELPTEXT)); 373 373 break; 374 374 … … 430 430 strcpy(lastextractpath, s); 431 431 if (fRemember) { 432 PrfWriteProfileString(fmprof, FM3Str, "Ext_ExtractDir", s);432 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "Ext_ExtractDir", s); 433 433 fRemember = WinQueryButtonCheckstate(hwnd, EXT_WDIRS); 434 434 size = sizeof(BOOL); 435 PrfWriteProfileData(fmprof, FM3Str, "Ext_WDirs",435 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Ext_WDirs", 436 436 (PVOID) &fRemember, size); 437 437 fRemember = TRUE; … … 446 446 strcpy(arcdata->masks, s); 447 447 if (fRemember) 448 PrfWriteProfileString(fmprof, FM3Str, "Ext_Mask", s);448 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "Ext_Mask", s); 449 449 arcdata->ret = 1; 450 450 WinDismissDlg(hwnd, 1); -
trunk/dll/filldir.c
r1478 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 10 Jan 04 SHL ProcessDirectory: avoid most large drive failures … … 84 84 15 Nov 09 GKY Avoid szBuf overflow in FillTreeCnr 85 85 15 Nov 09 GKY Optimize some check code 86 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 86 87 87 88 ***********************************************************************/ … … 1095 1096 if (hwndStatus && dcd && 1096 1097 dcd->hwndFrame == WinQueryActiveWindow(dcd->hwndParent)) { 1097 WinSetWindowText(hwndStatus, GetPString(IDS_PLEASEWAITCOUNTINGTEXT));1098 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_PLEASEWAITCOUNTINGTEXT)); 1098 1099 } 1099 1100 pci = pciFirst; … … 1709 1710 char s[64]; 1710 1711 sprintf(s, "PARAMETERS=%s", szSuggest); 1711 WinCreateObject( WPProgram, "FM/2", s,FM3Folder, CO_UPDATEIFEXISTS);1712 WinCreateObject( WPProgram,1713 "FM/2 Lite", s, FM3Folder, CO_UPDATEIFEXISTS);1714 WinCreateObject( WPProgram,1715 "Archive Viewer/2", s, FM3Tools, CO_UPDATEIFEXISTS);1716 WinCreateObject( WPProgram,1717 "Dir Sizes", s, FM3Tools, CO_UPDATEIFEXISTS);1718 WinCreateObject( WPProgram,1719 "Visual Tree", s, FM3Tools, CO_UPDATEIFEXISTS);1720 WinCreateObject( WPProgram,1721 "Visual Directory", s, FM3Tools, CO_UPDATEIFEXISTS);1722 WinCreateObject( WPProgram,1723 "Global File Viewer", s, FM3Tools, CO_UPDATEIFEXISTS);1724 WinCreateObject( WPProgram, "Databar", s,FM3Tools, CO_UPDATEIFEXISTS);1712 WinCreateObject((CHAR *) WPProgram, "FM/2", s, (CHAR *) FM3Folder, CO_UPDATEIFEXISTS); 1713 WinCreateObject((CHAR *) WPProgram, 1714 "FM/2 Lite", s, (CHAR *) FM3Folder, CO_UPDATEIFEXISTS); 1715 WinCreateObject((CHAR *) WPProgram, 1716 "Archive Viewer/2", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1717 WinCreateObject((CHAR *) WPProgram, 1718 "Dir Sizes", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1719 WinCreateObject((CHAR *) WPProgram, 1720 "Visual Tree", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1721 WinCreateObject((CHAR *) WPProgram, 1722 "Visual Directory", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1723 WinCreateObject((CHAR *) WPProgram, 1724 "Global File Viewer", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1725 WinCreateObject((CHAR *) WPProgram, "Databar", s, (CHAR *) FM3Tools, CO_UPDATEIFEXISTS); 1725 1726 } 1726 1727 else if (MBID_CANCEL) { -
trunk/dll/filter.c
r1471 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 09Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 19 19 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 20 20 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 21 28 Sep 09 SHL Remember last selected mask listbox entry21 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 22 22 23 23 ***********************************************************************/ … … 40 40 #include "errutil.h" // Dos_Error... 41 41 #include "strutil.h" // GetPString 42 #include "pathutil.h" 42 #include "pathutil.h" // BldFullPathName 43 43 #include "filter.h" 44 44 #include "select.h" // SetMask … … 52 52 #pragma data_seg(FILTER_DATA) 53 53 54 static PCSZ PSCZ_FILTER_LASTMASK_SELECT = "Filter.LastMaskSelect";55 56 54 static PSZ pszSrcFile = __FILE__; 57 55 … … 74 72 INT APIENTRY Filter(PMINIRECORDCORE rmini, PVOID arg) 75 73 { 76 MASK *mask = (MASK *)arg; 74 75 MASK *mask = (MASK *) arg; 77 76 PCNRITEM r; 78 77 INT x; … … 100 99 || ((mask->antiattr & FILE_DIRECTORY) 101 100 && !(r->attrFile & FILE_DIRECTORY))) 102 101 return FALSE; 103 102 if (*mask->szMask) { 104 103 file = strrchr(r->pszFileName, '\\'); 105 104 if (!file) 106 105 file = strrchr(r->pszFileName, ':'); 107 106 if (file) 108 107 file++; 109 108 else 110 109 file = r->pszFileName; 111 110 if (mask->pszMasks[1]) { 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 111 for (x = 0; mask->pszMasks[x]; x++) { 112 if (*mask->pszMasks[x]) { 113 if (*mask->pszMasks[x] != '/') { 114 if (wildcard((strchr(mask->pszMasks[x], '\\') || 115 strchr(mask->pszMasks[x], ':')) ? 116 r->pszFileName : file, mask->pszMasks[x], FALSE)) 117 ret = TRUE; 118 } 119 else { 120 if (wildcard((strchr(mask->pszMasks[x], '\\') || 121 strchr(mask->pszMasks[x], ':')) ? 122 r->pszFileName : file, mask->pszMasks[x] + 1, 123 FALSE)) { 124 ret = FALSE; 125 break; 126 } 127 } 128 } 129 } 131 130 } 132 131 else { 133 134 135 136 132 if (wildcard((strchr(mask->szMask, '\\') || 133 strchr(mask->szMask, ':')) ? 134 r->pszFileName : file, mask->szMask, FALSE)) 135 ret = TRUE; 137 136 } 138 137 } … … 151 150 static VOID load_masks(VOID) 152 151 { 152 153 153 FILE *fp; 154 154 LINKMASKS *info, *last = NULL; … … 178 178 } 179 179 } 180 } //while180 } //while 181 181 fclose(fp); 182 182 } … … 218 218 static VOID add_mask(CHAR * mask) 219 219 { 220 220 221 LINKMASKS *info; 221 222 LINKMASKS *last = NULL; … … 253 254 static VOID remove_mask(CHAR * mask) 254 255 { 256 255 257 LINKMASKS *info, *last = NULL; 256 258 … … 285 287 SHORT sSelect; 286 288 CHAR s[CCHMAXPATH]; 287 ULONG size;288 static SHORT sLastMaskSelect = LIT_NONE;289 289 290 290 switch (msg) { … … 297 297 break; 298 298 } 299 300 if (!loadedmasks) { 299 if (!loadedmasks) 301 300 load_masks(); 302 size = sizeof(sLastMaskSelect);303 PrfQueryProfileData(fmprof, appname, PSCZ_FILTER_LASTMASK_SELECT, &sLastMaskSelect, &size);304 }305 306 301 WinSetWindowPtr(hwnd, QWL_USER, mp2); 307 308 302 info = maskhead; 309 303 while (info) { … … 313 307 info = info->next; 314 308 } 315 if (sLastMaskSelect >= 0) 316 WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_SELECTITEM, 317 MPFROMSHORT(sLastMaskSelect), MPFROMSHORT(TRUE)); 318 319 mask = (MASK *)mp2; 320 309 mask = (MASK *) mp2; 321 310 if (mask->fNoAttribs) { 322 311 WinEnableWindow(WinWindowFromID(hwnd, MSK_SYSTEM), FALSE); … … 336 325 WinCheckButton(hwnd, MSK_HIDDEN, (mask->attrFile & FILE_HIDDEN) != 0); 337 326 WinCheckButton(hwnd, MSK_READONLY, 338 327 (mask->attrFile & FILE_READONLY) != 0); 339 328 WinCheckButton(hwnd, MSK_ARCHIVED, 340 329 (mask->attrFile & FILE_ARCHIVED) != 0); 341 330 WinCheckButton(hwnd, MSK_DIRECTORY, 342 331 (mask->attrFile & FILE_DIRECTORY) != 0); 343 332 WinCheckButton(hwnd, MSK_MUSTSYSTEM, 344 333 (mask->antiattr & FILE_SYSTEM) != 0); 345 334 WinCheckButton(hwnd, MSK_MUSTHIDDEN, 346 335 (mask->antiattr & FILE_HIDDEN) != 0); 347 336 WinCheckButton(hwnd, MSK_MUSTREADONLY, 348 337 (mask->antiattr & FILE_READONLY) != 0); 349 338 WinCheckButton(hwnd, MSK_MUSTARCHIVED, 350 339 (mask->antiattr & FILE_ARCHIVED) != 0); 351 340 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, 352 341 (mask->antiattr & FILE_DIRECTORY) != 0); 353 342 if (mask->fNoDirs) 354 343 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 355 344 else 356 345 WinCheckButton(hwnd, MSK_SHOWDIRS, (mask->fShowDirs != FALSE)); 357 346 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTSYSTEM), 358 347 (mask->attrFile & FILE_SYSTEM) != 0); 359 348 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTHIDDEN), 360 349 (mask->attrFile & FILE_HIDDEN) != 0); 361 350 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTARCHIVED), 362 351 (mask->attrFile & FILE_ARCHIVED) != 0); 363 352 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTREADONLY), 364 353 (mask->attrFile & FILE_READONLY) != 0); 365 354 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), 366 (mask->attrFile & FILE_DIRECTORY) != 0); 367 368 if (*mask->szMask) { 369 CHAR *p; 370 strcpy(s, mask->szMask); 371 if (!strchr(mask->szMask, '?') && !strchr(mask->szMask, '*')) { 372 p = strrchr(mask->szMask, '.'); 373 if (p && *(p + 1)) { 374 *s = '*'; 375 strcpy(s + 1, p); 376 } 377 } 378 WinSetDlgItemText(hwnd, MSK_MASK, s); 379 WinSendDlgItemMsg(hwnd, MSK_MASK, EM_SETSEL, 380 MPFROM2SHORT(0, CCHMAXPATH), MPVOID); 381 PostMsg(hwnd, UM_SETDIR, MPVOID, MPVOID); 382 } 383 384 if (mask->fIsTree) { 385 WinCheckButton(hwnd, MSK_DIRECTORY, TRUE); 386 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 387 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 388 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 389 } 390 391 if (mask->fIsSeeAll) { 392 WinCheckButton(hwnd, MSK_DIRECTORY, FALSE); 393 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 394 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 395 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 396 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), FALSE); 397 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 398 } 399 400 if (*mask->prompt) 401 WinSetWindowText(hwnd, mask->prompt); 402 if (!PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID)) 403 WinSendMsg(hwnd, UM_SETUP, MPVOID, MPVOID); 404 } 355 (mask->attrFile & FILE_DIRECTORY) != 0); 356 } 357 if (*mask->szMask) { 358 CHAR *p; 359 360 strcpy(s, mask->szMask); 361 if (!strchr(mask->szMask, '?') && !strchr(mask->szMask, '*')) { 362 p = strrchr(mask->szMask, '.'); 363 if (p && *(p + 1)) { 364 *s = '*'; 365 strcpy(s + 1, p); 366 } 367 } 368 WinSetDlgItemText(hwnd, MSK_MASK, s); 369 WinSendDlgItemMsg(hwnd, MSK_MASK, EM_SETSEL, 370 MPFROM2SHORT(0, CCHMAXPATH), MPVOID); 371 PostMsg(hwnd, UM_SETDIR, MPVOID, MPVOID); 372 } 373 if (mask->fIsTree) { 374 WinCheckButton(hwnd, MSK_DIRECTORY, TRUE); 375 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 376 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 377 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 378 } 379 if (mask->fIsSeeAll) { 380 WinCheckButton(hwnd, MSK_DIRECTORY, FALSE); 381 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 382 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 383 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 384 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), FALSE); 385 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 386 } 387 if (*mask->prompt) 388 WinSetWindowText(hwnd, mask->prompt); 389 if (!PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID)) 390 WinSendMsg(hwnd, UM_SETUP, MPVOID, MPVOID); 405 391 break; 406 392 … … 430 416 if (!WinCreateWindow(hwnd, 431 417 WC_STATIC, 432 GetPString(IDS_TEXTTITLETEXT),418 (CHAR *) GetPString(IDS_TEXTTITLETEXT), 433 419 SS_TEXT | 434 420 DT_VCENTER | DT_RIGHT, … … 437 423 50, 438 424 swpE.cy, hwnd, HWND_TOP, 65535, NULL, NULL)) { 439 440 425 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 426 PCSZ_WINCREATEWINDOW); 441 427 } 442 428 if (!WinCreateWindow(hwnd, … … 449 435 swpL.cx - 54, 450 436 swpE.cy, hwnd, HWND_TOP, MSK_TEXT, NULL, NULL)) { 451 452 453 } 454 WinSendDlgItemMsg(hwnd, MSK_TEXT, EM_SETTEXTLIMIT,455 MPFROM2SHORT(256, 0), MPVOID);437 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 438 PCSZ_WINCREATEWINDOW); 439 } 440 WinSendDlgItemMsg(hwnd, MSK_TEXT, 441 EM_SETTEXTLIMIT, MPFROM2SHORT(256, 0), MPVOID); 456 442 if (mask->szText) { 457 443 WinSetDlgItemText(hwnd, MSK_TEXT, mask->szText); 458 WinSendDlgItemMsg(hwnd, MSK_TEXT, EM_SETSEL,459 MPFROM2SHORT(0, 256), MPVOID);444 WinSendDlgItemMsg(hwnd, MSK_TEXT, 445 EM_SETSEL, MPFROM2SHORT(0, 256), MPVOID); 460 446 } 461 447 } … … 533 519 case LN_SELECT: 534 520 { 535 sSelect = (SHORT) WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_QUERYSELECTION, 521 sSelect = (SHORT) WinSendDlgItemMsg(hwnd, 522 MSK_LISTBOX, 523 LM_QUERYSELECTION, 536 524 MPFROMSHORT(LIT_FIRST), MPVOID); 537 525 *s = 0; 538 if (sSelect >= 0) { 539 sLastMaskSelect = sSelect; 526 if (sSelect >= 0) 540 527 WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_QUERYITEMTEXT, 541 MPFROM2SHORT(sSelect, 542 CCHMAXPATH), MPFROMP(s)); 543 } 528 MPFROM2SHORT(sSelect, CCHMAXPATH), MPFROMP(s)); 544 529 WinSetDlgItemText(hwnd, MSK_MASK, s); 545 530 } … … 557 542 switch (SHORT1FROMMP(mp1)) { 558 543 case MSK_ALL: 559 mask = (MASK *)INSTDATA(hwnd); 560 if (mask) { 561 if (!mask->fNoAttribs) { 562 WinCheckButton(hwnd, MSK_SYSTEM, TRUE); 563 WinCheckButton(hwnd, MSK_HIDDEN, TRUE); 564 WinCheckButton(hwnd, MSK_READONLY, TRUE); 565 WinCheckButton(hwnd, MSK_ARCHIVED, TRUE); 566 WinCheckButton(hwnd, MSK_DIRECTORY, TRUE); 567 WinCheckButton(hwnd, MSK_MUSTSYSTEM, FALSE); 568 WinCheckButton(hwnd, MSK_MUSTHIDDEN, FALSE); 569 WinCheckButton(hwnd, MSK_MUSTREADONLY, FALSE); 570 WinCheckButton(hwnd, MSK_MUSTARCHIVED, FALSE); 571 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 572 if (!mask->fNoDirs) 573 WinCheckButton(hwnd, MSK_SHOWDIRS, TRUE); 574 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTSYSTEM), TRUE); 575 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTHIDDEN), TRUE); 576 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTARCHIVED), TRUE); 577 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTREADONLY), TRUE); 578 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), TRUE); 579 } 580 if (mask->fIsTree) { 581 WinCheckButton(hwnd, MSK_DIRECTORY, TRUE); 582 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 583 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 584 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 585 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 586 } 587 if (mask->fIsSeeAll) { 588 WinCheckButton(hwnd, MSK_DIRECTORY, FALSE); 589 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 590 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 591 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 592 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), FALSE); 593 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 544 { 545 mask = (MASK *) INSTDATA(hwnd); 546 547 if (mask) { 548 if (!mask->fNoAttribs) { 549 WinCheckButton(hwnd, MSK_SYSTEM, TRUE); 550 WinCheckButton(hwnd, MSK_HIDDEN, TRUE); 551 WinCheckButton(hwnd, MSK_READONLY, TRUE); 552 WinCheckButton(hwnd, MSK_ARCHIVED, TRUE); 553 WinCheckButton(hwnd, MSK_DIRECTORY, TRUE); 554 WinCheckButton(hwnd, MSK_MUSTSYSTEM, FALSE); 555 WinCheckButton(hwnd, MSK_MUSTHIDDEN, FALSE); 556 WinCheckButton(hwnd, MSK_MUSTREADONLY, FALSE); 557 WinCheckButton(hwnd, MSK_MUSTARCHIVED, FALSE); 558 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 559 if (!mask->fNoDirs) 560 WinCheckButton(hwnd, MSK_SHOWDIRS, TRUE); 561 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTSYSTEM), TRUE); 562 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTHIDDEN), TRUE); 563 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTARCHIVED), TRUE); 564 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTREADONLY), TRUE); 565 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), TRUE); 566 } 567 if (mask->fIsTree) { 568 WinCheckButton(hwnd, MSK_DIRECTORY, TRUE); 569 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 570 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 571 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 572 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 573 } 574 if (mask->fIsSeeAll) { 575 WinCheckButton(hwnd, MSK_DIRECTORY, FALSE); 576 WinCheckButton(hwnd, MSK_MUSTDIRECTORY, FALSE); 577 WinCheckButton(hwnd, MSK_SHOWDIRS, FALSE); 578 WinEnableWindow(WinWindowFromID(hwnd, MSK_DIRECTORY), FALSE); 579 WinEnableWindow(WinWindowFromID(hwnd, MSK_MUSTDIRECTORY), FALSE); 580 WinEnableWindow(WinWindowFromID(hwnd, MSK_SHOWDIRS), FALSE); 581 } 594 582 } 595 583 } … … 601 589 case MSK_DELETE: 602 590 case DID_OK: 603 mask = INSTDATA(hwnd); 604 *s = 0; 605 WinQueryDlgItemText(hwnd, MSK_MASK, CCHMAXPATH, s); // Entry field 606 s[CCHMAXPATH - 1] = 0; 607 bstrip(s); 608 if (SHORT1FROMMP(mp1) == DID_OK) { 609 mask->attrFile = 610 (WinQueryButtonCheckstate(hwnd, MSK_SYSTEM) * 611 FILE_SYSTEM) | (WinQueryButtonCheckstate(hwnd, 612 MSK_HIDDEN) * 613 FILE_HIDDEN) | (WinQueryButtonCheckstate(hwnd, 614 MSK_READONLY) 615 * 616 FILE_READONLY) | 617 (WinQueryButtonCheckstate(hwnd, MSK_ARCHIVED) * 618 FILE_ARCHIVED) | (WinQueryButtonCheckstate(hwnd, 619 MSK_DIRECTORY) * 620 FILE_DIRECTORY); 621 mask->antiattr = 622 (WinQueryButtonCheckstate(hwnd, MSK_MUSTSYSTEM) * 623 FILE_SYSTEM) | (WinQueryButtonCheckstate(hwnd, 624 MSK_MUSTHIDDEN) * 625 FILE_HIDDEN) | (WinQueryButtonCheckstate(hwnd, 626 MSK_MUSTREADONLY) 627 * 628 FILE_READONLY) | 629 (WinQueryButtonCheckstate(hwnd, MSK_MUSTARCHIVED) * 630 FILE_ARCHIVED) | (WinQueryButtonCheckstate(hwnd, 631 MSK_MUSTDIRECTORY) * 632 FILE_DIRECTORY); 633 mask->fShowDirs = 634 (WinQueryButtonCheckstate(hwnd, MSK_SHOWDIRS) != FALSE); 635 if (mask->fText) 636 WinQueryDlgItemText(hwnd, MSK_TEXT, 256, mask->szText); 637 } 638 if (*s) { 591 { 592 593 mask = INSTDATA(hwnd); 594 *s = 0; 595 WinQueryDlgItemText(hwnd, MSK_MASK, CCHMAXPATH, s); 596 s[CCHMAXPATH - 1] = 0; 597 bstrip(s); 639 598 if (SHORT1FROMMP(mp1) == DID_OK) { 640 strcpy(mask->szMask, s); 641 add_mask(s); 642 save_masks(); 643 SetMask(mask->szMask, mask); 644 sLastMaskSelect = (SHORT)WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_INSERTITEM, 645 MPFROM2SHORT(LIT_SORTASCENDING, 0), 646 MPFROMP(s)); 647 PrfWriteProfileData(fmprof, appname, 648 PSCZ_FILTER_LASTMASK_SELECT, &sLastMaskSelect, sizeof(sLastMaskSelect)); 649 WinDismissDlg(hwnd, 1); 599 mask->attrFile = 600 (WinQueryButtonCheckstate(hwnd, MSK_SYSTEM) * 601 FILE_SYSTEM) | (WinQueryButtonCheckstate(hwnd, 602 MSK_HIDDEN) * 603 FILE_HIDDEN) | (WinQueryButtonCheckstate(hwnd, 604 MSK_READONLY) 605 * 606 FILE_READONLY) | 607 (WinQueryButtonCheckstate(hwnd, MSK_ARCHIVED) * 608 FILE_ARCHIVED) | (WinQueryButtonCheckstate(hwnd, 609 MSK_DIRECTORY) * 610 FILE_DIRECTORY); 611 mask->antiattr = 612 (WinQueryButtonCheckstate(hwnd, MSK_MUSTSYSTEM) * 613 FILE_SYSTEM) | (WinQueryButtonCheckstate(hwnd, 614 MSK_MUSTHIDDEN) * 615 FILE_HIDDEN) | (WinQueryButtonCheckstate(hwnd, 616 MSK_MUSTREADONLY) 617 * 618 FILE_READONLY) | 619 (WinQueryButtonCheckstate(hwnd, MSK_MUSTARCHIVED) * 620 FILE_ARCHIVED) | (WinQueryButtonCheckstate(hwnd, 621 MSK_MUSTDIRECTORY) * 622 FILE_DIRECTORY); 623 mask->fShowDirs = 624 (WinQueryButtonCheckstate(hwnd, MSK_SHOWDIRS) != FALSE); 625 if (mask->fText) 626 WinQueryDlgItemText(hwnd, MSK_TEXT, 256, mask->szText); 627 } 628 if (*s) { 629 if (SHORT1FROMMP(mp1) == DID_OK) { 630 strcpy(mask->szMask, s); 631 add_mask(s); 632 save_masks(); 633 SetMask(mask->szMask, mask); 634 WinDismissDlg(hwnd, 1); 635 } 636 else { 637 // MSK_DELETE 638 WinSetDlgItemText(hwnd, MSK_MASK, NullStr); 639 remove_mask(s); 640 save_masks(); 641 sSelect = (SHORT) WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_SEARCHSTRING, 642 MPFROM2SHORT(0, LIT_FIRST), MPFROMP(s)); 643 if (sSelect >= 0) 644 WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_DELETEITEM, 645 MPFROM2SHORT(sSelect, 0), MPVOID); 646 } 650 647 } 651 648 else { 652 // MSK_DELETE 653 WinSetDlgItemText(hwnd, MSK_MASK, NullStr); 654 remove_mask(s); 655 save_masks(); 656 sSelect = (SHORT) WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_SEARCHSTRING, 657 MPFROM2SHORT(0, LIT_FIRST), MPFROMP(s)); 658 if (sSelect >= 0) { 659 WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_DELETEITEM, 660 MPFROM2SHORT(sSelect, 0), MPVOID); 661 // Try to select next item 662 if (!WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_SELECTITEM, 663 MPFROMSHORT(sSelect), MPFROMSHORT(TRUE))) { 664 sSelect = (SHORT)WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_QUERYITEMCOUNT, 665 MPVOID, MPVOID); 666 sSelect--; 667 if (sSelect >= 0) 668 WinSendDlgItemMsg(hwnd, MSK_LISTBOX, LM_SELECTITEM, 669 MPFROMSHORT(sSelect), MPFROMSHORT(TRUE)); 670 } 671 sLastMaskSelect = sSelect; 672 } 673 } 674 } 675 else { 676 if (SHORT1FROMMP(mp1) == DID_OK) { 677 *mask->szMask = 0; 678 SetMask(mask->szMask, mask); 679 PrfWriteProfileData(fmprof, appname, 680 PSCZ_FILTER_LASTMASK_SELECT, &sLastMaskSelect, sizeof(sLastMaskSelect)); 681 WinDismissDlg(hwnd, 1); 682 } 683 else if (!fAlertBeepOff) 684 DosBeep(50, 100); // MSK_DELETE 649 if (SHORT1FROMMP(mp1) == DID_OK) { 650 *mask->szMask = 0; 651 SetMask(mask->szMask, mask); 652 WinDismissDlg(hwnd, 1); 653 } 654 else if (!fAlertBeepOff) 655 DosBeep(50, 100); // MSK_DELETE 656 } 685 657 } 686 658 break; … … 694 666 695 667 case DID_CANCEL: 696 PrfWriteProfileData(fmprof, appname,697 PSCZ_FILTER_LASTMASK_SELECT, &sLastMaskSelect, sizeof(sLastMaskSelect));698 668 WinDismissDlg(hwnd, 0); 699 669 break; -
trunk/dll/flesh.c
r1482 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2005, 20 09Steven H. Levine9 Copyright (c) 2005, 2010 Steven H. Levine 10 10 11 11 24 May 05 SHL Rework Win_Error usage … … 30 30 aren't user settable; realappname should be used for setting applicable to 31 31 one or more miniapp but not to FM/2 32 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 32 33 33 34 ***********************************************************************/ … … 370 371 GetPString(IDS_LANERROR2TEXT)); 371 372 NoBrokenNotify = 255; 372 PrfWriteProfileData(fmprof, FM3Str,"NoBrokenNotify",373 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "NoBrokenNotify", 373 374 &NoBrokenNotify, sizeof(ULONG)); 374 375 } … … 376 377 else { 377 378 NoBrokenNotify--; 378 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify",379 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "NoBrokenNotify", 379 380 &NoBrokenNotify, sizeof(ULONG)); 380 381 } … … 439 440 GetPString(IDS_FSDERROR2TEXT)); 440 441 NoBrokenNotify = 255; 441 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify",442 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "NoBrokenNotify", 442 443 &NoBrokenNotify, sizeof(ULONG)); 443 444 } … … 445 446 else { 446 447 NoBrokenNotify--; 447 PrfWriteProfileData(fmprof, FM3Str, "NoBrokenNotify",448 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "NoBrokenNotify", 448 449 &NoBrokenNotify, sizeof(ULONG)); 449 450 } -
trunk/dll/getnames.c
r1438 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2006, 20 09Steven H. Levine9 Copyright (c) 2006, 2010 Steven H. Levine 10 10 11 11 23 Aug 06 SHL Comments … … 13 13 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 14 14 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 15 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 15 16 16 17 ***********************************************************************/ … … 118 119 case CBN_SHOWLIST: 119 120 WinSetDlgItemText(hwnd, 120 FDLG_HELP, GetPString(IDS_CLICKDRIVEHELPTEXT));121 FDLG_HELP, (CHAR *) GetPString(IDS_CLICKDRIVEHELPTEXT)); 121 122 break; 122 123 } … … 127 128 case EN_SETFOCUS: 128 129 WinSetDlgItemText(hwnd, 129 FDLG_HELP, GetPString(IDS_ENTERFILEORMASKHELPTEXT));130 FDLG_HELP, (CHAR *) GetPString(IDS_ENTERFILEORMASKHELPTEXT)); 130 131 break; 131 132 case EN_KILLFOCUS: 132 WinSetDlgItemText(hwnd, FDLG_HELP, GetPString(IDS_NAMEDEFHELPTEXT));133 WinSetDlgItemText(hwnd, FDLG_HELP, (CHAR *) GetPString(IDS_NAMEDEFHELPTEXT)); 133 134 break; 134 135 } … … 139 140 case LN_SETFOCUS: 140 141 WinSetDlgItemText(hwnd, 141 FDLG_HELP, GetPString(IDS_DBLCLKDIRSWITCHHELPTEXT));142 FDLG_HELP, (CHAR *) GetPString(IDS_DBLCLKDIRSWITCHHELPTEXT)); 142 143 break; 143 144 case LN_KILLFOCUS: 144 WinSetDlgItemText(hwnd, FDLG_HELP, GetPString(IDS_NAMEDEFHELPTEXT));145 WinSetDlgItemText(hwnd, FDLG_HELP, (CHAR *) GetPString(IDS_NAMEDEFHELPTEXT)); 145 146 break; 146 147 } … … 151 152 case LN_SETFOCUS: 152 153 WinSetDlgItemText(hwnd, FDLG_HELP, 153 GetPString(IDS_DBLCLKFILEUSEHELPTEXT));154 (CHAR *) GetPString(IDS_DBLCLKFILEUSEHELPTEXT)); 154 155 break; 155 156 case LN_KILLFOCUS: 156 WinSetDlgItemText(hwnd, FDLG_HELP, GetPString(IDS_NAMEDEFHELPTEXT));157 WinSetDlgItemText(hwnd, FDLG_HELP, (CHAR *) GetPString(IDS_NAMEDEFHELPTEXT)); 157 158 break; 158 159 } … … 163 164 case CBN_SHOWLIST: 164 165 WinSetDlgItemText(hwnd, 165 FDLG_HELP, GetPString(IDS_DBLCLKDIRSWITCHHELPTEXT));166 FDLG_HELP, (CHAR *) GetPString(IDS_DBLCLKDIRSWITCHHELPTEXT)); 166 167 break; 167 168 case CBN_ENTER: -
trunk/dll/grep.c
r1471 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 12 Feb 03 SHL InsertGrepFile: standardize EA math … … 33 33 08 Mar 09 GKY Additional strings move to String Table 34 34 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 35 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 35 36 36 37 ***********************************************************************/ … … 312 313 // hwndStatus does not exist for applet 313 314 WinSetWindowText(hwndStatus ? hwndStatus : grep.hwndCurFile, 314 GetPString(grep.finddupes ? IDS_GREPDUPETEXT :315 (CHAR *) GetPString(grep.finddupes ? IDS_GREPDUPETEXT : 315 316 IDS_GREPSCANTEXT)); 316 317 … … 722 723 if (grep->sayfiles) { 723 724 if (!hwndStatus) 724 WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPINSERTINGTEXT));725 WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPINSERTINGTEXT)); 725 726 else { 726 727 if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 727 WinSetWindowText(hwndStatus, GetPString(IDS_GREPINSERTINGTEXT));728 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPINSERTINGTEXT)); 728 729 } 729 730 } … … 1329 1330 if (x) { 1330 1331 if (!hwndStatus) 1331 WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPDUPESORTINGTEXT));1332 WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT)); 1332 1333 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1333 WinSetWindowText(hwndStatus, GetPString(IDS_GREPDUPESORTINGTEXT));1334 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT)); 1334 1335 // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL 1335 1336 grep->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__); … … 1365 1366 1366 1367 if (!hwndStatus) 1367 WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPDUPECOMPARINGTEXT));1368 WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT)); 1368 1369 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1369 WinSetWindowText(hwndStatus, GetPString(IDS_GREPDUPECOMPARINGTEXT));1370 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT)); 1370 1371 1371 1372 InitITimer(pitdSleep, 0); // Reset rate estimator … … 1523 1524 DosBeep(50, 100); 1524 1525 if (!hwndStatus) 1525 WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPDUPECOMPARINGTEXT));1526 WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT)); 1526 1527 else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles) 1527 WinSetWindowText(hwndStatus, GetPString(IDS_GREPDUPECOMPARINGTEXT));1528 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT)); 1528 1529 x = y = 0; 1529 1530 xfree(grep->dupenames, pszSrcFile, __LINE__); -
trunk/dll/grep2.c
r1471 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 09Steven H. Levine9 Copyright (c) 2004, 2010 Steven H. Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 27 27 08 Mar 09 GKY Additional strings move to PCSZs in init.c 28 28 07 Oct 09 SHL Remember last search mask across runs 29 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 29 30 30 31 fixme for more excess locals to be gone … … 229 230 fInitDone = TRUE; 230 231 } 231 else if (sLastMaskSelect == LIT_NONE) {232 else {//if (sLastMaskSelect == LIT_NONE) { 232 233 size = sizeof(sLastMaskSelect); 233 PrfQueryProfileData(fmprof, appname, PSCZ_GREP_LASTMASK_SELECT, &sLastMaskSelect, &size);234 PrfQueryProfileData(fmprof, appname, (CHAR *) PSCZ_GREP_LASTMASK_SELECT, &sLastMaskSelect, &size); 234 235 if (sLastMaskSelect >= 0) 235 236 fInitDone = TRUE; … … 262 263 GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID); 263 264 size = sizeof(BOOL); 264 PrfQueryProfileData(fmprof, FM3Str, "RememberFlagsGrep",265 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "RememberFlagsGrep", 265 266 (PVOID) & gRemember, &size); 266 267 WinCheckButton(hwnd, GREP_REMEMBERFLAGS, gRemember); 267 268 if (gRemember) { 268 269 size = sizeof(BOOL); 269 PrfQueryProfileData(fmprof, FM3Str, "Grep_Recurse",270 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Recurse", 270 271 (PVOID) & recurse, &size); 271 272 size = sizeof(BOOL); 272 PrfQueryProfileData(fmprof, FM3Str, "Grep_Absolute",273 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Absolute", 273 274 (PVOID) & absolute, &size); 274 275 size = sizeof(BOOL); 275 PrfQueryProfileData(fmprof, FM3Str, "Grep_Case",276 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Case", 276 277 (PVOID) & sensitive, &size); 277 278 size = sizeof(BOOL); 278 PrfQueryProfileData(fmprof, FM3Str, "Grep_Sayfiles",279 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Sayfiles", 279 280 (PVOID) & sayfiles, &size); 280 281 size = sizeof(BOOL); 281 PrfQueryProfileData(fmprof, FM3Str, "Grep_Searchfiles",282 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Searchfiles", 282 283 (PVOID) & searchFiles, &size); 283 284 size = sizeof(BOOL); 284 PrfQueryProfileData(fmprof, FM3Str, "Grep_SearchfEAs",285 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_SearchfEAs", 285 286 (PVOID) & searchEAs, &size); 286 287 } … … 338 339 } 339 340 // 25 Sep 09 SHL Reselect last last used item 340 if (sLastMaskSelect >= 0)341 WinSendDlgItemMsg(hwnd, GREP_LISTBOX, LM_SELECTITEM,342 341 //if (sLastMaskSelect >= 0) 342 // WinSendDlgItemMsg(hwnd, GREP_LISTBOX, LM_SELECTITEM, 343 // MPFROMSHORT(sLastMaskSelect), MPFROMSHORT(TRUE)); 343 344 344 345 FillPathListBox(hwnd, … … 369 370 BOOL gRemember = WinQueryButtonCheckstate(hwnd, GREP_REMEMBERFLAGS); 370 371 371 PrfWriteProfileData(fmprof, FM3Str, "RememberFlagsGrep",372 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "RememberFlagsGrep", 372 373 (PVOID) & gRemember, sizeof(BOOL)); 373 374 } … … 378 379 case LN_KILLFOCUS: 379 380 WinSetDlgItemText(hwnd, 380 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));381 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 381 382 break; 382 383 case LN_SETFOCUS: 383 384 WinSetDlgItemText(hwnd, 384 GREP_HELP, GetPString(IDS_2CLICKADDDRVMASKTEXT));385 GREP_HELP, (CHAR *) GetPString(IDS_2CLICKADDDRVMASKTEXT)); 385 386 break; 386 387 case LN_ENTER: … … 441 442 case LN_KILLFOCUS: 442 443 WinSetDlgItemText(hwnd, 443 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));444 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 444 445 break; 445 446 case LN_SETFOCUS: 446 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_ADDSELDELMASKTEXT));447 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_ADDSELDELMASKTEXT)); 447 448 break; 448 449 case LN_ENTER: … … 484 485 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 485 486 WinSetDlgItemText(hwnd, 486 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));487 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 487 488 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 488 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_MASKSFINDTEXT));489 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_MASKSFINDTEXT)); 489 490 break; 490 491 case GREP_SEARCH: 491 492 if (SHORT2FROMMP(mp1) == MLN_KILLFOCUS) 492 493 WinSetDlgItemText(hwnd, 493 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));494 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 494 495 if (SHORT2FROMMP(mp1) == MLN_SETFOCUS) 495 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_TEXTFINDTEXT));496 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_TEXTFINDTEXT)); 496 497 break; 497 498 case GREP_GREATER: 498 499 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 499 500 WinSetDlgItemText(hwnd, 500 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));501 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 501 502 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 502 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_MINSIZEFINDTEXT));503 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_MINSIZEFINDTEXT)); 503 504 break; 504 505 case GREP_LESSER: 505 506 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 506 507 WinSetDlgItemText(hwnd, 507 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));508 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 508 509 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 509 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_MAXSIZEFINDTEXT));510 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_MAXSIZEFINDTEXT)); 510 511 break; 511 512 case GREP_NEWER: 512 513 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 513 514 WinSetDlgItemText(hwnd, 514 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));515 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 515 516 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 516 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_MAXAGEFINDTEXT));517 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_MAXAGEFINDTEXT)); 517 518 break; 518 519 case GREP_OLDER: 519 520 if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 520 521 WinSetDlgItemText(hwnd, 521 GREP_HELP, GetPString(IDS_ARCDEFAULTHELPTEXT));522 GREP_HELP, (CHAR *) GetPString(IDS_ARCDEFAULTHELPTEXT)); 522 523 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 523 WinSetDlgItemText(hwnd, GREP_HELP, GetPString(IDS_MINAGEFINDTEXT));524 WinSetDlgItemText(hwnd, GREP_HELP, (CHAR *) GetPString(IDS_MINAGEFINDTEXT)); 524 525 break; 525 526 case GREP_FINDDUPES: … … 855 856 gRemember = WinQueryButtonCheckstate(hwnd, GREP_REMEMBERFLAGS); 856 857 if (gRemember) { 857 PrfWriteProfileData(fmprof, FM3Str, "Grep_Recurse",858 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Recurse", 858 859 (PVOID) & recurse, sizeof(BOOL)); 859 PrfWriteProfileData(fmprof, FM3Str, "Grep_Absolute",860 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Absolute", 860 861 (PVOID) & absolute, sizeof(BOOL)); 861 PrfWriteProfileData(fmprof, FM3Str, "Grep_Case",862 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Case", 862 863 (PVOID) & sensitive, sizeof(BOOL)); 863 PrfWriteProfileData(fmprof, FM3Str, "Grep_Sayfiles",864 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Sayfiles", 864 865 (PVOID) & sayfiles, sizeof(BOOL)); 865 PrfWriteProfileData(fmprof, FM3Str, "Grep_Searchfiles",866 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Searchfiles", 866 867 (PVOID) & searchFiles, sizeof(BOOL)); 867 PrfWriteProfileData(fmprof, FM3Str, "Grep_SearchfEAs",868 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_SearchfEAs", 868 869 (PVOID) & searchEAs, sizeof(BOOL)); 869 870 } 870 871 PrfWriteProfileData(fmprof, appname, 871 PSCZ_GREP_LASTMASK_SELECT, &sLastMaskSelect, sizeof(sLastMaskSelect));872 (CHAR *) PSCZ_GREP_LASTMASK_SELECT, &sLastMaskSelect, sizeof(sLastMaskSelect)); 872 873 g.finddupes = WinQueryButtonCheckstate(hwnd, GREP_FINDDUPES) != 0; 873 874 if (g.finddupes) { -
trunk/dll/info.c
r1480 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 08Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 16 Oct 02 SHL Handle large partitions … … 35 35 22 Jul 09 GKY Check if drives support EAs add driveflag for this 36 36 22 Jul 09 GKY Add LocalHD driveflag 37 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 37 38 38 39 ***********************************************************************/ … … 273 274 } 274 275 else 275 WinSetDlgItemText(hwnd, INFO_AVAILABLE, GetPString(IDS_STATSMEANINGLESSTEXT));276 WinSetDlgItemText(hwnd, INFO_AVAILABLE, (CHAR *) GetPString(IDS_STATSMEANINGLESSTEXT)); 276 277 } 277 278 else { -
trunk/dll/inis.c
r1454 r1498 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2004, 20 08Steven H. Levine7 Copyright (c) 2004, 2010 Steven H. Levine 8 8 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage … … 36 36 14 Mar 09 GKY Additional strings move to PCSZs 37 37 12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini 38 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 38 39 39 40 ***********************************************************************/ … … 670 671 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 671 672 WinSetDlgItemText(hwnd, 672 IAF_HELP, GetPString(IDS_MASKLISTNAMEHELPTEXT));673 IAF_HELP, (CHAR *) GetPString(IDS_MASKLISTNAMEHELPTEXT)); 673 674 break; 674 675 … … 678 679 if (SHORT2FROMMP(mp1) == LN_SETFOCUS) 679 680 WinSetDlgItemText(hwnd, 680 IAF_HELP, GetPString(IDS_MASKLISTFILESHELPTEXT));681 IAF_HELP, (CHAR *) GetPString(IDS_MASKLISTFILESHELPTEXT)); 681 682 else if (SHORT2FROMMP(mp1) == LN_ENTER) 682 683 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IAF_LOAD, 0), MPVOID); … … 688 689 if (SHORT2FROMMP(mp1) == MLN_SETFOCUS) 689 690 WinSetDlgItemText(hwnd, 690 IAF_HELP, GetPString(IDS_MASKLISTMASKSHELPTEXT));691 IAF_HELP, (CHAR *) GetPString(IDS_MASKLISTMASKSHELPTEXT)); 691 692 break; 692 693 } … … 736 737 else { 737 738 WinSetPointer(HWND_DESKTOP, hptrBusy); 738 WinSetDlgItemText(hwnd, IAF_HELP, GetPString(IDS_FILTERINGTEXT));739 WinSetDlgItemText(hwnd, IAF_HELP, (CHAR *) GetPString(IDS_FILTERINGTEXT)); 739 740 sSelect = 0; 740 741 while (numitems) { … … 902 903 switch (inirec->action) { 903 904 case IDM_MOVE: 904 WinSetWindowText(hwnd, GetPString(IDS_INIRENAMEAPPTITLETEXT));905 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_INIRENAMEAPPTITLETEXT)); 905 906 break; 906 907 case IDM_COPY: 907 WinSetWindowText(hwnd, GetPString(IDS_INICOPYAPPTITLETEXT));908 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_INICOPYAPPTITLETEXT)); 908 909 break; 909 910 } … … 922 923 switch (inirec->action) { 923 924 case IDM_MOVE: 924 WinSetWindowText(hwnd, GetPString(IDS_INIRENAMEKEYTITLETEXT));925 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_INIRENAMEKEYTITLETEXT)); 925 926 break; 926 927 case IDM_COPY: 927 WinSetWindowText(hwnd, GetPString(IDS_INICOPYKEYTITLETEXT));928 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_INICOPYKEYTITLETEXT)); 928 929 break; 929 930 } … … 1090 1091 INIR_SYSTEMPROFILE, 1091 1092 EM_SETTEXTLIMIT, MPFROM2SHORT(CCHMAXPATH, 0), MPVOID); 1092 WinSetWindowText(hwnd, GetPString(IDS_INISWAPOS2INISTITLETEXT));1093 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_INISWAPOS2INISTITLETEXT)); 1093 1094 break; 1094 1095 … … 1333 1334 inidata = (INIDATA *) mp2; 1334 1335 if (inidata->edit) 1335 WinSetWindowText(hwnd, GetPString(IDS_INIEDITINITITLETEXT));1336 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_INIEDITINITITLETEXT)); 1336 1337 WinSetWindowPtr(hwnd, QWL_USER, (PVOID) mp2); 1337 1338 WinSendDlgItemMsg(hwnd, … … 1549 1550 0, 1550 1551 &flFrameFlags, 1551 WC_INIEDITOR,1552 (CHAR *) WC_INIEDITOR, 1552 1553 NullStr, 1553 1554 fwsAnimate, … … 1564 1565 } 1565 1566 else if (ParentIsDesktop(hwndFrame, hwnd)) { 1566 if (!WinRestoreWindowPos( FM2Str, "INIWindowPos", hwndFrame)) {1567 if (!WinRestoreWindowPos((CHAR *) FM2Str, "INIWindowPos", hwndFrame)) { 1567 1568 1568 1569 ULONG fl = SWP_MOVE | SWP_SIZE; … … 1700 1701 pDItem = DrgQueryDragitemPtr(pDInfo,0); 1701 1702 /* Check valid rendering mechanisms and data */ 1702 if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL)) {1703 if (DrgVerifyRMF(pDItem, (CHAR *) DRM_OS2FILE, NULL)) { 1703 1704 DrgFreeDraginfo(pDInfo); 1704 1705 return (MRFROM2SHORT(DOR_DROP, DO_LINK)); /* OK to drop */ 1705 1706 } 1706 else if (DrgVerifyRMF(pDItem, DRM_FM2INIRECORD,DRF_FM2INI)) {1707 else if (DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2INIRECORD, (CHAR *) DRF_FM2INI)) { 1707 1708 if (WinQueryWindow(pDInfo->hwndSource, QW_PARENT) != 1708 1709 WinQueryWindow(hwnd, QW_PARENT)) … … 1740 1741 for (curitem = 0; curitem < numitems; curitem++) { 1741 1742 pDItem = DrgQueryDragitemPtr(pDInfo, curitem); 1742 if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL)) {1743 if (DrgVerifyRMF(pDItem, (CHAR *) DRM_OS2FILE, NULL)) { 1743 1744 if (pDItem->fsControl & DC_PREPARE) 1744 1745 DrgSendTransferMsg(pDItem->hwndItem, … … 1757 1758 } 1758 1759 } 1759 else if (DrgVerifyRMF(pDItem, DRM_FM2INIRECORD,DRF_FM2INI)) {1760 else if (DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2INIRECORD, (CHAR *) DRF_FM2INI)) { 1760 1761 *szDir = *szFrom = *szTemp = 0; 1761 1762 len = DrgQueryStrName(pDItem->hstrContainerName, CCHMAXPATH, szDir); … … 1884 1885 if (!WinCreateWindow(hwnd, 1885 1886 WC_STATIC, 1886 GetPString(IDS_APPLICATIONSTITLETEXT),1887 (CHAR *) GetPString(IDS_APPLICATIONSTITLETEXT), 1887 1888 WS_VISIBLE | SS_TEXT | 1888 1889 DT_CENTER | DT_VCENTER, … … 1894 1895 if (!WinCreateWindow(hwnd, 1895 1896 WC_STATIC, 1896 GetPString(IDS_KEYWORDSTITLETEXT),1897 (CHAR *) GetPString(IDS_KEYWORDSTITLETEXT), 1897 1898 WS_VISIBLE | SS_TEXT | 1898 1899 DT_CENTER | DT_VCENTER, … … 1904 1905 if (!WinCreateWindow(hwnd, 1905 1906 WC_STATIC, 1906 GetPString(IDS_DATABYTESTITLETEXT),1907 (CHAR *) GetPString(IDS_DATABYTESTITLETEXT), 1907 1908 WS_VISIBLE | SS_TEXT | 1908 1909 DT_CENTER | DT_VCENTER, … … 1941 1942 else if (hwndStatus) { 1942 1943 if (*inidata->ininame) { 1943 WinSetWindowText(hwndStatus, GetPString(IDS_INTERNALINIVIEWERTEXT));1944 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_INTERNALINIVIEWERTEXT)); 1944 1945 if (hwndStatus2) 1945 1946 WinSetWindowText(hwndStatus2, inidata->ininame); … … 2294 2295 QW_PARENT))) { 2295 2296 if (hwndStatus) 2296 WinSetWindowText(hwndStatus, 2297 GetPString(IDS_INTERNALINIVIEWERTEXT)); 2297 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_INTERNALINIVIEWERTEXT)); 2298 2298 if (hwndStatus2) 2299 2299 WinSetWindowText(hwndStatus2, inidata->ininame); … … 2834 2834 WinQueryWindowPos(WinQueryWindow(hwnd, QW_PARENT), &swp); 2835 2835 if (!(swp.fl & (SWP_HIDE | SWP_MINIMIZE))) 2836 WinStoreWindowPos( FM2Str,2836 WinStoreWindowPos((CHAR *) FM2Str, 2837 2837 "INIWindowPos", WinQueryWindow(hwnd, QW_PARENT)); 2838 2838 // inidata = WinQueryWindowPtr(hwnd, QWL_USER); // 09 Jan 08 SHL -
trunk/dll/init.c
r1482 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Add CheckVersion … … 95 95 aren't user settable; realappname should be used for setting applicable to 96 96 one or more miniapp but not to FM/2 97 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 97 98 98 99 ***********************************************************************/ … … 386 387 *SwapperDat = 0; 387 388 // Check already known 388 PrfQueryProfileData(fmprof, FM3Str, "SwapperDat", SwapperDat, &size);389 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "SwapperDat", SwapperDat, &size); 389 390 if (*SwapperDat) { 390 391 nm = 1; … … 473 474 DosFindClose(hdir); 474 475 PrfWriteProfileString(fmprof, 475 FM3Str, "SwapperDat", SwapperDat);476 (CHAR *) FM3Str, "SwapperDat", SwapperDat); 476 477 } 477 478 else … … 498 499 RGBGREY.bRed = RGBGREY.bGreen = RGBGREY.bBlue = (BYTE)204; 499 500 RGBGREY.fcOptions = 0; 500 FM3UL = *(ULONG *) FM3Str;501 FM3UL = *(ULONG *)(CHAR *) FM3Str; 501 502 break; 502 503 case 1: … … 687 688 /* give default appname if none set by caller */ 688 689 if (!*appname) 689 strcpy(appname, FM3Str);690 strcpy(appname, (CHAR *) FM3Str); 690 691 /* save appname; may be reset below */ 691 692 strcpy(realappname, appname); 692 if (!strcmp(appname, FM3Str))693 if (!strcmp(appname, (CHAR *) FM3Str)) 693 694 DosSetMaxFH(100); 694 695 else if (!strcmp(appname, "VDir") || … … 909 910 910 911 size = sizeof(BOOL); 911 PrfQueryProfileData(fmprof, FM3Str, "SeparateParms",912 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "SeparateParms", 912 913 &fSeparateParms, &size); 913 914 size = sizeof(BOOL); … … 915 916 &fSeparateParmsApp, &size); 916 917 if (!fSeparateParms && !fSeparateParmsApp) 917 strcpy(appname, FM3Str);918 strcpy(appname, (CHAR *) FM3Str); 918 919 919 920 /* start help */ … … 973 974 /* register window classes we use */ 974 975 WinRegisterClass(hab, 975 WC_MAINWND,976 (CHAR *) WC_MAINWND, 976 977 MainWndProc, 977 978 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 8); 978 979 WinRegisterClass(hab, 979 WC_MAINWND2,980 (CHAR *) WC_MAINWND2, 980 981 MainWndProc2, 981 982 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 4); 982 983 WinRegisterClass(hab, 983 WC_TREECONTAINER,984 (CHAR *) WC_TREECONTAINER, 984 985 TreeClientWndProc, 985 986 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2); 986 987 WinRegisterClass(hab, 987 WC_DIRCONTAINER,988 (CHAR *) WC_DIRCONTAINER, 988 989 DirClientWndProc, 989 990 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2); 990 991 WinRegisterClass(hab, 991 WC_COLLECTOR,992 (CHAR *) WC_COLLECTOR, 992 993 CollectorClientWndProc, 993 994 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2); 994 995 WinRegisterClass(hab, 995 WC_ARCCONTAINER,996 (CHAR *) WC_ARCCONTAINER, 996 997 ArcClientWndProc, 997 998 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2); 998 999 WinRegisterClass(hab, 999 WC_MLEEDITOR,1000 (CHAR *) WC_MLEEDITOR, 1000 1001 MLEEditorProc, 1001 1002 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2); 1002 1003 WinRegisterClass(hab, 1003 WC_INIEDITOR,1004 (CHAR *) WC_INIEDITOR, 1004 1005 IniProc, 1005 1006 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2); 1006 1007 WinRegisterClass(hab, 1007 WC_TOOLBACK,1008 (CHAR *) WC_TOOLBACK, 1008 1009 ToolBackProc, 1009 1010 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1010 1011 sizeof(PVOID)); 1011 1012 WinRegisterClass(hab, 1012 WC_DRIVEBACK,1013 (CHAR *) WC_DRIVEBACK, 1013 1014 DriveBackProc, 1014 1015 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1015 1016 sizeof(PVOID)); 1016 1017 WinRegisterClass(hab, 1017 WC_SEEALL,1018 (CHAR *) WC_SEEALL, 1018 1019 SeeAllWndProc, 1019 1020 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID)); 1020 1021 WinRegisterClass(hab, 1021 WC_NEWVIEW,1022 (CHAR *) WC_NEWVIEW, 1022 1023 ViewWndProc, 1023 1024 CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID)); 1024 1025 WinRegisterClass(hab, 1025 WC_TOOLBUTTONS,1026 (CHAR *) WC_TOOLBUTTONS, 1026 1027 ChildButtonProc, 1027 1028 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1028 1029 sizeof(PVOID)); 1029 1030 WinRegisterClass(hab, 1030 WC_DRIVEBUTTONS,1031 (CHAR *) WC_DRIVEBUTTONS, 1031 1032 DriveProc, 1032 1033 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1033 1034 sizeof(PVOID)); 1034 1035 WinRegisterClass(hab, 1035 WC_BUBBLE,1036 (CHAR *) WC_BUBBLE, 1036 1037 BubbleProc, 1037 1038 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1038 1039 sizeof(ULONG) * 2); 1039 1040 WinRegisterClass(hab, 1040 WC_STATUS,1041 (CHAR *) WC_STATUS, 1041 1042 StatusProc, 1042 1043 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1043 1044 sizeof(ULONG)); 1044 1045 WinRegisterClass(hab, 1045 WC_DIRSTATUS,1046 (CHAR *) WC_DIRSTATUS, 1046 1047 DirTextProc, 1047 1048 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1048 1049 sizeof(ULONG)); 1049 1050 WinRegisterClass(hab, 1050 WC_TREESTATUS,1051 (CHAR *) WC_TREESTATUS, 1051 1052 TreeStatProc, 1052 1053 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1053 1054 sizeof(ULONG)); 1054 1055 WinRegisterClass(hab, 1055 WC_ARCSTATUS,1056 (CHAR *) WC_ARCSTATUS, 1056 1057 ArcTextProc, 1057 1058 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1058 1059 sizeof(ULONG)); 1059 1060 WinRegisterClass(hab, 1060 WC_COLSTATUS,1061 (CHAR *) WC_COLSTATUS, 1061 1062 CollectorTextProc, 1062 1063 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1063 1064 sizeof(ULONG)); 1064 1065 WinRegisterClass(hab, 1065 WC_SEESTATUS,1066 (CHAR *) WC_SEESTATUS, 1066 1067 SeeStatusProc, 1067 1068 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1068 1069 sizeof(ULONG)); 1069 1070 WinRegisterClass(hab, 1070 WC_VIEWSTATUS,1071 (CHAR *) WC_VIEWSTATUS, 1071 1072 ViewStatusProc, 1072 1073 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1073 1074 sizeof(ULONG)); 1074 1075 WinRegisterClass(hab, 1075 WC_ERRORWND,1076 (CHAR *) WC_ERRORWND, 1076 1077 NotifyWndProc, 1077 1078 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1078 1079 sizeof(PVOID)); 1079 1080 WinRegisterClass(hab, 1080 WC_MINITIME,1081 (CHAR *) WC_MINITIME, 1081 1082 MiniTimeProc, 1082 1083 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1083 1084 sizeof(PVOID) * 2); 1084 1085 WinRegisterClass(hab, 1085 WC_DATABAR,1086 (CHAR *) WC_DATABAR, 1086 1087 DataProc, CS_SIZEREDRAW, sizeof(PVOID)); 1087 1088 WinRegisterClass(hab, 1088 WC_TREEOPENBUTTON,1089 (CHAR *) WC_TREEOPENBUTTON, 1089 1090 OpenButtonProc, 1090 1091 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1091 1092 sizeof(PVOID)); 1092 1093 WinRegisterClass(hab, 1093 WC_AUTOVIEW,1094 (CHAR *) WC_AUTOVIEW, 1094 1095 AutoViewProc, 1095 1096 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 1096 1097 sizeof(PVOID)); 1097 1098 WinRegisterClass(hab, 1098 WC_LED,1099 (CHAR *) WC_LED, 1099 1100 LEDProc, 1100 1101 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, … … 1209 1210 * Separate paramenters -- Please note that appname should be used in 1210 1211 * profile calls for user settings that work and are setable in more than one 1211 * miniapp; FM3Str should be used for setting only relavent to FM/2 or that1212 * miniapp; (CHAR *) FM3Str should be used for setting only relavent to FM/2 or that 1212 1213 * aren't user settable; realappname should be used for setting applicable to 1213 1214 * one or more miniapp but not to FM/2 … … 1290 1291 PrfQueryProfileData(fmprof, appname, "ThreadNotes", &fThreadNotes, &size); 1291 1292 size = sizeof(BOOL); 1292 PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &size);1293 size = sizeof(BOOL); 1294 PrfQueryProfileData(fmprof, FM3Str, "Prnalt", &prnalt, &size);1295 size = sizeof(BOOL); 1296 PrfQueryProfileData(fmprof, FM3Str, "Prnformat", &prnformat, &size);1297 size = sizeof(BOOL); 1298 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore", &prnformfeedbefore, &size);1299 size = sizeof(BOOL); 1300 PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedafter",&prnformfeedafter, &size);1293 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnpagenums", &prnpagenums, &size); 1294 size = sizeof(BOOL); 1295 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnalt", &prnalt, &size); 1296 size = sizeof(BOOL); 1297 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnformat", &prnformat, &size); 1298 size = sizeof(BOOL); 1299 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedbefore", &prnformfeedbefore, &size); 1300 size = sizeof(BOOL); 1301 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedafter",&prnformfeedafter, &size); 1301 1302 size = sizeof(ULONG); 1302 PrfQueryProfileData(fmprof, FM3Str, "Prntabspaces", &prntabspaces, &size);1303 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prntabspaces", &prntabspaces, &size); 1303 1304 size = sizeof(ULONG); 1304 PrfQueryProfileData(fmprof, FM3Str, "Prnwidth", &prnwidth, &size);1305 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnwidth", &prnwidth, &size); 1305 1306 size = sizeof(ULONG); 1306 PrfQueryProfileData(fmprof, FM3Str, "Prnlength", &prnlength, &size);1307 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnlength", &prnlength, &size); 1307 1308 size = sizeof(ULONG); 1308 PrfQueryProfileData(fmprof, FM3Str, "Prntmargin", &prntmargin, &size);1309 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prntmargin", &prntmargin, &size); 1309 1310 size = sizeof(ULONG); 1310 PrfQueryProfileData(fmprof, FM3Str, "Prnbmargin", &prnbmargin, &size);1311 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnbmargin", &prnbmargin, &size); 1311 1312 size = sizeof(ULONG); 1312 PrfQueryProfileData(fmprof, FM3Str, "Prnlmargin", &prnlmargin, &size);1313 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnlmargin", &prnlmargin, &size); 1313 1314 size = sizeof(ULONG); 1314 PrfQueryProfileData(fmprof, FM3Str, "Prnrmargin", &prnrmargin, &size);1315 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnrmargin", &prnrmargin, &size); 1315 1316 size = sizeof(ULONG); 1316 PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &size);1317 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Prnspacing", &prnspacing, &size); 1317 1318 size = sizeof(BOOL); 1318 1319 PrfQueryProfileData(fmprof, appname, "NoDead", &fNoDead, &size); … … 1345 1346 if (strcmp(realappname, "FM/4")) { 1346 1347 size = sizeof(BOOL); 1347 PrfQueryProfileData(fmprof, FM3Str, "MoreButtons", &fMoreButtons, &size);1348 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "MoreButtons", &fMoreButtons, &size); 1348 1349 size = sizeof(BOOL); 1349 PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &size);1350 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Drivebar", &fDrivebar, &size); 1350 1351 } 1351 1352 size = sizeof(BOOL); … … 1388 1389 PrfQueryProfileData(fmprof, appname, "AutoAddAllDirs", &fAutoAddAllDirs, &size); 1389 1390 size = sizeof(BOOL); 1390 PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches", &fUserListSwitches, &size);1391 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "UserListSwitches", &fUserListSwitches, &size); 1391 1392 size = sizeof(BOOL); 1392 1393 PrfQueryProfileData(fmprof, appname, "UseNewViewer", &fUseNewViewer, &size); … … 1394 1395 PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm", &fDefaultDeletePerm, &size); 1395 1396 size = sizeof(BOOL); 1396 PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs", &fExternalINIs, &size);1397 size = sizeof(BOOL); 1398 PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector", &fExternalCollector, &size);1399 size = sizeof(BOOL); 1400 PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes", &fExternalArcboxes, &size);1401 size = sizeof(BOOL); 1402 PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer", &fExternalViewer, &size);1403 size = sizeof(BOOL); 1404 PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat", &fUseQProcStat, &size);1405 size = sizeof(BOOL); 1406 PrfQueryProfileData(fmprof, FM3Str, "UseQSysState", &fUseQSysState, &size);1397 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "ExternalINIs", &fExternalINIs, &size); 1398 size = sizeof(BOOL); 1399 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "ExternalCollector", &fExternalCollector, &size); 1400 size = sizeof(BOOL); 1401 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "ExternalArcboxes", &fExternalArcboxes, &size); 1402 size = sizeof(BOOL); 1403 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "ExternalViewer", &fExternalViewer, &size); 1404 size = sizeof(BOOL); 1405 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "UseQProcStat", &fUseQProcStat, &size); 1406 size = sizeof(BOOL); 1407 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "UseQSysState", &fUseQSysState, &size); 1407 1408 size = sizeof(BOOL); 1408 1409 PrfQueryProfileData(fmprof, appname, "DataMin", &fDataMin, &size); … … 1414 1415 PrfQueryProfileData(fmprof, appname, "DataInclRemote", &fDataInclRemote, &size); 1415 1416 size = sizeof(BOOL); 1416 PrfQueryProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, &size);1417 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "SplitStatus", &fSplitStatus, &size); 1417 1418 size = sizeof(BOOL); 1418 1419 PrfQueryProfileData(fmprof, appname, "FolderAfterExtract", &fFolderAfterExtract, &size); … … 1424 1425 PrfQueryProfileData(fmprof, appname, "ConfirmDelete", &fConfirmDelete, &size); 1425 1426 size = sizeof(BOOL); 1426 PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size);1427 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "SaveState", &fSaveState, &size); 1427 1428 size = sizeof(BOOL); 1428 1429 PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &size); … … 1432 1433 PrfQueryProfileData(fmprof, appname, "UnHilite", &fUnHilite, &size); 1433 1434 size = sizeof(BOOL); 1434 PrfQueryProfileData(fmprof, FM3Str, "TileBackwards", &fTileBackwards, &size);1435 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "TileBackwards", &fTileBackwards, &size); 1435 1436 size = sizeof(BOOL); 1436 1437 PrfQueryProfileData(fmprof, appname, "LoadLongname", &fLoadLongnames, &size); … … 1516 1517 PrfQueryProfileData(fmprof, appname, "NoTreeGap", &fNoTreeGap, &size); 1517 1518 size = sizeof(BOOL); 1518 PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size);1519 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size); 1519 1520 size = sizeof(BOOL); 1520 1521 PrfQueryProfileData(fmprof, appname, "RemoteBug", &fRemoteBug, &size); … … 1538 1539 PrfQueryProfileData(fmprof, appname, "Drag&DropDlg", &fDragndropDlg, &size); 1539 1540 size = sizeof(BOOL); 1540 PrfQueryProfileData(fmprof, FM3Str, "UserComboBox", &fUserComboBox, &size);1541 size = sizeof(BOOL); 1542 PrfQueryProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen, &size);1541 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "UserComboBox", &fUserComboBox, &size); 1542 size = sizeof(BOOL); 1543 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "MinDirOnOpen", &fMinOnOpen, &size); 1543 1544 size = sizeof(BOOL); 1544 1545 PrfQueryProfileData(fmprof, appname, "QuickArcFind", &fQuickArcFind, &size); … … 1546 1547 PrfQueryProfileData(fmprof, appname, "NoRemovableScan", &fNoRemovableScan, &size); 1547 1548 size = sizeof(ULONG); 1548 PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size);1549 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size); 1549 1550 size = sizeof(ULONG); 1550 1551 PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType, &size); … … 1640 1641 WS_VISIBLE, 1641 1642 &FrameFlags, 1642 WC_MAINWND,1643 (CHAR *) WC_MAINWND, 1643 1644 NULL, 1644 1645 WS_VISIBLE | WS_ANIMATE, … … 1647 1648 WinSetWindowUShort(hwndFrame, QWS_ID, MAIN_FRAME); 1648 1649 hwndMainMenu = WinWindowFromID(hwndFrame, FID_MENU); 1649 if (!WinRestoreWindowPos( FM2Str, "MainWindowPos", hwndFrame)) {1650 if (!WinRestoreWindowPos((CHAR *) FM2Str, "MainWindowPos", hwndFrame)) { 1650 1651 1651 1652 ULONG fl = SWP_MOVE | SWP_SIZE; -
trunk/dll/init.h
r1479 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2008 Steven H. Levine9 Copyright (c) 2008-10 Steven H. Levine 10 10 11 11 Change log … … 23 23 inappropriate menu context choices 24 24 15 Nov 09 GKY Add more PCSZs 25 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 25 26 26 27 ***********************************************************************/ … … 202 203 extern CHAR *pLibPathStrict; 203 204 extern ULONGLONG ullTmpSpaceNeeded; 205 #ifdef INCL_DOSSEMAPHORES 204 206 extern HMTX hmtxFM2Globals; 205 207 extern HMTX hmtxFM2Delete; 206 208 extern HMTX hmtFillingTreeCnr; 207 209 extern HEV hevInitialCnrScanComplete; 210 #endif 208 211 209 212 #endif // INIT_H -
trunk/dll/input.c
r1398 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2005, 20 09Steven H. Levine9 Copyright (c) 2005, 2010 Steven H. Levine 10 10 11 11 28 May 05 SHL Use saymsg … … 13 13 22 Mar 07 GKY Use QWL_USER 14 14 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 15 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 15 16 16 17 ***********************************************************************/ … … 55 56 } 56 57 if (psip->prompt && *psip->prompt) 57 WinSetDlgItemText(hwnd, STR_PROMPT, psip->prompt);58 WinSetDlgItemText(hwnd, STR_PROMPT, (CHAR *) psip->prompt); 58 59 if (psip->ret && *psip->ret) { 59 60 WinSetDlgItemText(hwnd, STR_INPUT, psip->ret); … … 63 64 *psip->ret = 0; 64 65 if (psip->title && *psip->title) 65 WinSetWindowText(hwnd, psip->title);66 WinSetWindowText(hwnd, (CHAR *) psip->title); 66 67 break; 67 68 -
trunk/dll/key.c
r1471 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 09Steven H. Levine9 Copyright (c) 2004, 2010 Steven H. Levine 10 10 11 11 Revisions … … 14 14 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 15 15 13 Jul 09 SHL Sync with renames 16 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 16 17 17 18 ***********************************************************************/ … … 79 80 } 80 81 if (!strcmp(realappname, "FM/4")) 81 WinSetDlgItemText(hwnd, ABT_PROGNAME, GetPString(IDS_FM2LITETEXT));82 WinSetDlgItemText(hwnd, ABT_PROGNAME, (CHAR *) GetPString(IDS_FM2LITETEXT)); 82 83 if (!noanimation) { 83 84 stick1 = WinLoadPointer(HWND_DESKTOP, FM3ModHandle, ID_STICK1); -
trunk/dll/killproc.c
r1482 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2005, 20 08Steven H. Levine9 Copyright (c) 2005, 2010 Steven H. Levine 10 10 11 11 24 May 05 SHL Rework Win_Error usage … … 27 27 aren't user settable; realappname should be used for setting applicable to 28 28 one or more miniapp but not to FM/2 29 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 29 30 30 31 ***********************************************************************/ … … 388 389 case KILL_CHECKBOX: 389 390 fUseQProcStat = WinQueryButtonCheckstate(hwnd, KILL_CHECKBOX); 390 PrfWriteProfileData(fmprof, FM3Str, "UseQProcStat",391 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "UseQProcStat", 391 392 &fUseQProcStat, sizeof(BOOL)); 392 393 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID); … … 400 401 case KILL2_CHECKBOX: 401 402 fUseQSysState = WinQueryButtonCheckstate(hwnd, KILL2_CHECKBOX); 402 PrfWriteProfileData(fmprof, FM3Str, "UseQSysState",403 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "UseQSysState", 403 404 &fUseQSysState, sizeof(BOOL)); 404 405 PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(KILL_RESCAN, 0), MPVOID); -
trunk/dll/mainwnd.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Drop obsolete xor code … … 104 104 aren't user settable; realappname should be used for setting applicable to 105 105 one or more miniapp but not to FM/2 106 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 106 107 107 108 ***********************************************************************/ … … 390 391 MainObjectWndProc, 0, sizeof(PVOID)); 391 392 MainObjectHwnd = WinCreateWindow(HWND_OBJECT, 392 WC_OBJECTWINDOW,393 (CHAR *) WC_OBJECTWINDOW, 393 394 (PSZ) NULL, 394 395 0, … … 852 853 switch (id) { 853 854 case MAIN_CMDLIST: 854 WinSetWindowText(hwndStatus2, GetPString(IDS_CMDLISTHELP));855 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_CMDLISTHELP)); 855 856 break; 856 857 case MAIN_SETUPLIST: 857 WinSetWindowText(hwndStatus2, GetPString(IDS_SETUPLISTHELP));858 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_SETUPLISTHELP)); 858 859 break; 859 860 case MAIN_USERLIST: 860 WinSetWindowText(hwndStatus2, GetPString(IDS_USERLISTHELP));861 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_USERLISTHELP)); 861 862 break; 862 863 case MAIN_DRIVELIST: 863 WinSetWindowText(hwndStatus2, GetPString(IDS_DRIVELISTHELP));864 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRIVELISTHELP)); 864 865 break; 865 866 case MAIN_BUTTONLIST: 866 WinSetWindowText(hwndStatus2, GetPString(IDS_BUTTONLISTHELP));867 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_BUTTONLISTHELP)); 867 868 break; 868 869 default: … … 1002 1003 1003 1004 hwndBubble = WinCreateWindow(HWND_DESKTOP, 1004 WC_BUBBLE,1005 help,1005 (CHAR *) WC_BUBBLE, 1006 (CHAR *) help, 1006 1007 WS_CLIPSIBLINGS | SS_TEXT | 1007 1008 DT_CENTER | DT_VCENTER, … … 1471 1472 0); /* Index to DRAGITEM */ 1472 1473 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 1473 DRM_OS2FILE, /* mechanisms and data */1474 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 1474 1475 NULL)) { /* formats */ 1475 1476 if (!(tool->flags & T_EMPHASIZED)) { … … 1572 1573 if (!(tool->flags & T_MYICON)) { 1573 1574 hwndTool = WinCreateWindow(hwndT, 1574 WC_TOOLBUTTONS,1575 (CHAR *) WC_TOOLBUTTONS, 1575 1576 s, 1576 1577 BS_NOPOINTERFOCUS | … … 1591 1592 btc.hImage = hbm; 1592 1593 hwndTool = WinCreateWindow(hwndT, 1593 WC_TOOLBUTTONS,1594 (CHAR *) WC_TOOLBUTTONS, 1594 1595 NullStr, 1595 1596 BS_NOPOINTERFOCUS | … … 1609 1610 if (!hwndTool) { 1610 1611 hwndTool = WinCreateWindow(hwndT, 1611 WC_TOOLBUTTONS,1612 (CHAR *) WC_TOOLBUTTONS, 1612 1613 (!tool->text && tool->id >= IDM_COMMANDSTART 1613 1614 && tool->id < … … 1625 1626 if (fToolTitles && !fTextTools) { 1626 1627 hwndTool = WinCreateWindow(hwndT, 1627 WC_STATIC,1628 (CHAR *) WC_STATIC, 1628 1629 tool->text, 1629 1630 SS_TEXT | DT_LEFT | DT_VCENTER, … … 1651 1652 1652 1653 hwndTool = WinCreateWindow(hwndT, 1653 WC_BUTTON,1654 (CHAR *) WC_BUTTON, 1654 1655 "#6010", 1655 1656 BS_NOPOINTERFOCUS | … … 1663 1664 PCSZ_WINCREATEWINDOW); 1664 1665 hwndTool = 1665 WinCreateWindow(hwndT, WC_BUTTON, "#6011",1666 WinCreateWindow(hwndT, (CHAR *) WC_BUTTON, "#6011", 1666 1667 BS_NOPOINTERFOCUS | BS_BITMAP | BS_PUSHBUTTON, 1, 4, 14, 1667 1668 13, hwndT, HWND_TOP, IDM_TOOLRIGHT, NULL, NULL); … … 2355 2356 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) { 2356 2357 hwndB = WinCreateWindow(hwndT, 2357 WC_DRIVEBUTTONS,2358 (CHAR *) WC_DRIVEBUTTONS, 2358 2359 0, 2359 2360 BS_NOPOINTERFOCUS | BS_USERBUTTON, … … 2372 2373 } // for 2373 2374 hwndB = WinCreateWindow(hwndT, 2374 WC_DRIVEBUTTONS,2375 (CHAR *) WC_DRIVEBUTTONS, 2375 2376 "#7001", 2376 2377 BS_NOPOINTERFOCUS | BS_BITMAP | BS_PUSHBUTTON, … … 2384 2385 PCSZ_WINCREATEWINDOW); 2385 2386 hwndB = WinCreateWindow(hwndT, 2386 WC_DRIVEBUTTONS,2387 (CHAR *) WC_DRIVEBUTTONS, 2387 2388 "#7000", 2388 2389 BS_NOPOINTERFOCUS | BS_BITMAP | BS_PUSHBUTTON, … … 2622 2623 WinQueryWindowPos(hwnd, &swp); 2623 2624 hwndB = WinCreateWindow(hwnd, 2624 WC_BUTTON,2625 (CHAR *) WC_BUTTON, 2625 2626 "+", 2626 2627 WS_VISIBLE | BS_PUSHBUTTON | … … 2635 2636 PCSZ_WINCREATEWINDOW); 2636 2637 hwndE = WinCreateWindow(hwnd, 2637 WC_ENTRYFIELD,2638 (CHAR *) WC_ENTRYFIELD, 2638 2639 NULL, 2639 2640 WS_VISIBLE | ES_AUTOSCROLL, … … 2655 2656 WinSetWindowText(hwndE, lastcmd); 2656 2657 else 2657 WinSetWindowText(hwndE, GetPString(IDS_HELPCMDTEXT));2658 WinSetWindowText(hwndE, (CHAR *) GetPString(IDS_HELPCMDTEXT)); 2658 2659 oldproce = WinSubclassWindow(hwndE, (PFNWP) CommandLineProc); 2659 2660 if (oldproce) … … 3056 3057 if (*lasttoolbar) { 3057 3058 sprintf(szKey, "%sToolbar", szPrefix); 3058 PrfWriteProfileString(fmprof, FM3Str, szKey, lasttoolbar);3059 PrfWriteProfileString(fmprof, (CHAR *) (CHAR *) FM3Str, szKey, lasttoolbar); 3059 3060 } 3060 3061 3061 3062 if (!fIsShutDownState) { 3062 3063 sprintf(szKey, "%sTargetDir", szPrefix); 3063 PrfWriteProfileString(fmprof, FM3Str, szKey, targetdir);3064 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, targetdir); 3064 3065 sprintf(szKey, "%sVersion", szPrefix); 3065 PrfWriteProfileString(fmprof, FM3Str, szKey, "3.16");3066 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, "3.16"); 3066 3067 } 3067 3068 … … 3087 3088 eos = &szKey[strlen(szKey)]; 3088 3089 strcpy(eos, "Pos"); 3089 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp,3090 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) & swp, 3090 3091 sizeof(SWP)); 3091 3092 dcd = WinQueryWindowPtr(WinWindowFromID(hwndC, DIR_CNR), QWL_USER); 3092 3093 if (dcd) { 3093 3094 strcpy(eos, "Sort"); 3094 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->sortFlags,3095 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) & dcd->sortFlags, 3095 3096 sizeof(INT)); 3096 3097 strcpy(eos, "Filter"); 3097 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->mask,3098 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) & dcd->mask, 3098 3099 sizeof(MASK)); 3099 3100 strcpy(eos, "View"); … … 3114 3115 flWindowAttr |= CV_NAME; 3115 3116 } 3116 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &flWindowAttr,3117 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &flWindowAttr, 3117 3118 sizeof(ULONG)); 3118 3119 WriteDetailsSwitches(szKeyBase, &dcd->ds, TRUE); … … 3120 3121 } 3121 3122 strcpy(eos, "Dir"); 3122 PrfWriteProfileString(fmprof, FM3Str, szKey, szDir);3123 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, szDir); 3123 3124 numsaves++; 3124 3125 } … … 3130 3131 3131 3132 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3132 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &previous_numsaves, &ulTemp)) {3133 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &previous_numsaves, &ulTemp)) { 3133 3134 ULONG size = 0; 3134 3135 3135 3136 sprintf(szKey, "%sVersion", szPrefix); 3136 PrfQueryProfileSize(fmprof, FM3Str, szKey, &size);3137 PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, szKey, &size); 3137 3138 if (!size && fSaveState) { 3138 3139 for (ulTemp = 0; ulTemp < previous_numsaves; ulTemp++) 3139 3140 RemoveOldCnrSwitches(szPrefix, ulTemp); 3140 3141 sprintf(szKey, "%sVersion", szPrefix); 3141 PrfWriteProfileString(fmprof, FM3Str, szKey, "3.16");3142 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, "3.16"); 3142 3143 } 3143 3144 for (ulTemp = numsaves; ulTemp < previous_numsaves; ulTemp++) { … … 3148 3149 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3149 3150 if (numsaves) { 3150 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG));3151 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG)); 3151 3152 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swp); 3152 3153 sprintf(szKey, "%sMySizeLastTime", szPrefix); 3153 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, sizeof(SWP));3154 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, sizeof(SWP)); 3154 3155 if (WinQueryWindowPos(hwndTree, &swp)) { 3155 3156 sprintf(szKey, "%sLastTreePos", szPrefix); 3156 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, sizeof(SWP));3157 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, sizeof(SWP)); 3157 3158 } 3158 3159 } 3159 3160 else if (fIsShutDownState) { 3160 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG));3161 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG)); 3161 3162 } 3162 3163 return numsaves; … … 3239 3240 if (fToolsChanged) 3240 3241 save_tools(NULL); 3241 PrfQueryProfileString(fmprof, FM3Str, szKey, NULL, lasttoolbar, sizeof(lasttoolbar));3242 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);3242 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, szKey, NULL, lasttoolbar, sizeof(lasttoolbar)); 3243 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 3243 3244 load_tools(NULL); 3244 3245 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); … … 3246 3247 sprintf(szKey, "%sTargetDir", szPrefix); 3247 3248 { 3248 PrfQueryProfileString(fmprof, FM3Str, szKey, NULL, targetdir, sizeof(targetdir));3249 PrfWriteProfileString(fmprof, FM3Str, "TargetDir", targetdir);3249 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, szKey, NULL, targetdir, sizeof(targetdir)); 3250 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "TargetDir", targetdir); 3250 3251 SetTargetDir(NULLHANDLE, TRUE); 3251 3252 } 3252 3253 size = sizeof(SWP); 3253 3254 sprintf(szKey, "%sMySizeLastTime", szPrefix); 3254 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swpO, &size) ||3255 if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swpO, &size) || 3255 3256 size != sizeof(SWP) || !swp.cx || !swp.cy) 3256 3257 { … … 3259 3260 // If restoring internally saved state, forget info 3260 3261 if (fDeleteState) 3261 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);3262 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 3262 3263 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swpN); 3263 3264 if (swpN.fl & (SWP_MINIMIZE | SWP_HIDE)) … … 3267 3268 size = sizeof(SWP); 3268 3269 sprintf(szKey, "%sLastTreePos", szPrefix); 3269 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, &size)) {3270 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, &size)) { 3270 3271 if (fDeleteState) 3271 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);3272 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 3272 3273 swp.hwnd = hwndTree; 3273 3274 TransformSwp(&swp, xtrans, ytrans); … … 3298 3299 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3299 3300 size = sizeof(ULONG); 3300 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) {3301 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, &size)) { 3301 3302 if (fDeleteState) 3302 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);3303 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 3303 3304 for (x = numsaves - 1; x >= 0; x--) { 3304 3305 CHAR *eos = szKey; … … 3310 3311 strcpy(eos, "Pos"); 3311 3312 size = sizeof(SWP); 3312 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, &size)) {3313 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, &size)) { 3313 3314 strcpy(eos, "Dir"); ; 3314 3315 size = sizeof(szDir); 3315 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) szDir, &size)) {3316 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) szDir, &size)) { 3316 3317 // If restoring shutdown state and drive marked no prescan 3317 3318 // bypass window restore … … 3332 3333 if (!hwndPPSave) { 3333 3334 hwndPPSave = WinCreateWindow(hwndCnr, // Create a window (used to save default presparams) 3334 WC_CONTAINER,3335 (CHAR *) WC_CONTAINER, 3335 3336 NULL, 3336 3337 CCS_AUTOPOSITION | CCS_MINIICONS | … … 3362 3363 strcpy(eos, "Sort"); 3363 3364 size = sizeof(INT); 3364 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->sortFlags,3365 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &dcd->sortFlags, 3365 3366 &size)) { 3366 3367 if (!dcd->sortFlags) … … 3369 3370 size = sizeof(MASK); 3370 3371 strcpy(eos, "Filter"); 3371 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->mask, &size)) {3372 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &dcd->mask, &size)) { 3372 3373 if (*dcd->mask.szMask) 3373 3374 WinSendMsg(WinWindowFromID(hwndC, DIR_CNR), … … 3378 3379 if (!noview) { 3379 3380 size = sizeof(ULONG); 3380 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->flWindowAttr,3381 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &dcd->flWindowAttr, 3381 3382 &size)) { 3382 3383 … … 4696 4697 GetPString(IDS_WARNINGTEXT), 4697 4698 GetPString(IDS_STATEADDFAILEDTEXT), szStateName); // 15 Apr 07 SHL failed 4698 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT));4699 WinSetWindowText(hwndStatelist, (CHAR *) GetPString(IDS_STATETEXT)); 4699 4700 } 4700 4701 } … … 4704 4705 GetPString(IDS_WARNINGTEXT), 4705 4706 GetPString(IDS_STATEDATASAVEFAILED)); 4706 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT));4707 WinSetWindowText(hwndStatelist, (CHAR *) GetPString(IDS_STATETEXT)); 4707 4708 } 4708 4709 } … … 4717 4718 sprintf(szKey, "%s.NumDirsLastTime", szStateName); 4718 4719 size = sizeof(ULONG); 4719 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) {4720 if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, &size)) { 4720 4721 saymsg(MB_ENTER | MB_ICONASTERISK, hwnd, 4721 4722 GetPString(IDS_WARNINGTEXT), … … 4725 4726 Runtime_Error(pszSrcFile, __LINE__, NULL); 4726 4727 else { 4727 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);4728 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 4728 4729 for (x = 0; x < numsaves; x++) { 4729 4730 sprintf(szKeyBase, "%s.DirCnr.%lu", szStateName, x); … … 4731 4732 size = 0; 4732 4733 sprintf(szKey, "%sVersion", szStateName); 4733 if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size)4734 if (PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, szKey, &size) && size) 4734 4735 RemoveOldCnrSwitches(szStateName, x); 4735 4736 } … … 5052 5053 else 5053 5054 fComments = TRUE; 5054 PrfWriteProfileData(fmprof, FM3Str, "Comments", &fComments, sizeof(BOOL));5055 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Comments", &fComments, sizeof(BOOL)); 5055 5056 WinSetWindowText((fComments) ? hwndAutoview : hwndAutoMLE, NullStr); 5056 5057 goto AutoChange; … … 5124 5125 PostMsg(WinQueryWindow(hwnd, QW_PARENT), WM_UPDATEFRAME, 5125 5126 MPFROMLONG(FCF_MENU), MPVOID); 5126 PrfWriteProfileData(fmprof, FM3Str, "MenuInvisible",5127 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "MenuInvisible", 5127 5128 &MenuInvisible, sizeof(BOOL)); 5128 5129 } … … 5398 5399 strcpy(lasttoolbar, 5399 5400 quicktool[SHORT1FROMMP(mp1) - IDM_QUICKTOOLSTART - 1]); 5400 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);5401 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 5401 5402 } 5402 5403 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); … … 5464 5465 5465 5466 if (!WinCreateWindow(hwndFrame, 5466 WC_BUTTON,5467 (CHAR *) WC_BUTTON, 5467 5468 "I", 5468 5469 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS, … … 5496 5497 5497 5498 hwndTmp = WinCreateWindow(hwndFrame, 5498 WC_BUTTON,5499 (CHAR *) WC_BUTTON, 5499 5500 "#1019", 5500 5501 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS | … … 5509 5510 5510 5511 hwndTmp = WinCreateWindow(hwndFrame, 5511 WC_BUTTON,5512 (CHAR *) WC_BUTTON, 5512 5513 "#3062", 5513 5514 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS | … … 5522 5523 5523 5524 hwndUserlist = WinCreateWindow(hwndFrame, 5524 WC_COMBOBOX,5525 (CHAR *) WC_COMBOBOX, 5525 5526 (PSZ) NULL, 5526 5527 WS_VISIBLE | CBS_DROPDOWN | … … 5541 5542 PCSZ_WINCREATEWINDOW); 5542 5543 hwndCmdlist = WinCreateWindow(hwndFrame, 5543 WC_COMBOBOX,5544 (CHAR *) WC_COMBOBOX, 5544 5545 (PSZ) NULL, 5545 5546 WS_VISIBLE | CBS_DROPDOWN | … … 5559 5560 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 5560 5561 PCSZ_WINCREATEWINDOW); 5561 WinSetWindowText(hwndCmdlist, GetPString(IDS_COMMANDSTEXT));5562 WinSetWindowText(hwndCmdlist, (CHAR *) GetPString(IDS_COMMANDSTEXT)); 5562 5563 hwndStatelist = WinCreateWindow(hwndFrame, 5563 WC_COMBOBOX,5564 (CHAR *) WC_COMBOBOX, 5564 5565 (PSZ) NULL, 5565 5566 WS_VISIBLE | CBS_DROPDOWN | … … 5581 5582 5582 5583 hwndDrivelist = WinCreateWindow(hwndFrame, 5583 WC_COMBOBOX,5584 (CHAR *) WC_COMBOBOX, 5584 5585 (PSZ) NULL, 5585 5586 //WS_VISIBLE | … … 5602 5603 NULL, NULL, NULL, FNT_10SYSTEMMONOTEXT); 5603 5604 hwndButtonlist = WinCreateWindow(hwndFrame, 5604 WC_COMBOBOX,5605 (CHAR *) WC_COMBOBOX, 5605 5606 (PSZ) NULL, 5606 5607 WS_VISIBLE | CBS_DROPDOWN | … … 5706 5707 5707 5708 size = sizeof(BOOL); 5708 if (PrfQueryProfileData(fmprof, FM3Str, "MenuInvisible", &temp, &size) &&5709 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "MenuInvisible", &temp, &size) && 5709 5710 size && temp) 5710 5711 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_HIDEMENU, 0), MPVOID); 5711 5712 size = sizeof(BOOL); 5712 if (PrfQueryProfileData(fmprof, FM3Str, "FreeTree", &temp, &size) &&5713 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "FreeTree", &temp, &size) && 5713 5714 size && temp) 5714 5715 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); 5715 5716 size = sizeof(BOOL); 5716 if (PrfQueryProfileData(fmprof, FM3Str, "AutoTile", &temp, &size) &&5717 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "AutoTile", &temp, &size) && 5717 5718 size && !temp) 5718 5719 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_AUTOTILE, 0), MPVOID); … … 5745 5746 if (!fSaveState || 5746 5747 !PrfQueryProfileData(fmprof, 5747 FM3Str,5748 (CHAR *) FM3Str, 5748 5749 "LastTreePos", 5749 5750 &swp, &size) || size != sizeof(SWP)) { … … 5755 5756 size = sizeof(ratio); 5756 5757 if (!PrfQueryProfileData(fmprof, 5757 FM3Str,5758 (CHAR *) FM3Str, 5758 5759 "TreeWindowRatio", 5759 5760 (PVOID) & ratio, … … 5946 5947 WinQueryWindowPos(WinQueryWindow(hwnd, QW_PARENT), &swp); 5947 5948 if (!(swp.fl & (SWP_HIDE | SWP_MINIMIZE))) { 5948 WinStoreWindowPos( FM2Str,5949 WinStoreWindowPos((CHAR *) FM2Str, 5949 5950 "MainWindowPos", WinQueryWindow(hwnd, QW_PARENT)); 5950 5951 if (!fNoSaveState && fSaveState) … … 6084 6085 priority_bumped(); 6085 6086 } 6086 WinSetWindowText(hwndButtonlist, GetPString(IDS_TOOLBARTEXT));6087 WinSetWindowText(hwndButtonlist, (CHAR *) GetPString(IDS_TOOLBARTEXT)); 6087 6088 } 6088 6089 return 0; … … 6191 6192 MPFROM2SHORT(0, 0), 6192 6193 MPFROMP(GetPString(IDS_NEWDIRECTORYTEXT))); 6193 WinSetWindowText(hwndUserlist, GetPString(IDS_COMMONDIRTEXT));6194 WinSetWindowText(hwndUserlist, (CHAR *) GetPString(IDS_COMMONDIRTEXT)); 6194 6195 } 6195 6196 return 0; … … 6265 6266 strcpy(path, pFM2SaveDirectory); 6266 6267 if (!PMMkDir(hwnd, path, TRUE)) { 6267 WinSetWindowText(hwndUL, GetPString(IDS_COMMONDIRTEXT));6268 WinSetWindowText(hwndUL, (CHAR *) GetPString(IDS_COMMONDIRTEXT)); 6268 6269 break; 6269 6270 } … … 6295 6296 load_tools(path); 6296 6297 PrfWriteProfileString(fmprof, 6297 FM3Str, "LastToolbar", lasttoolbar);6298 (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 6298 6299 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); 6299 WinSetWindowText(hwndButtonlist, GetPString(IDS_TOOLBARTEXT));6300 WinSetWindowText(hwndButtonlist, (CHAR *) GetPString(IDS_TOOLBARTEXT)); 6300 6301 } 6301 6302 else if (SHORT1FROMMP(mp1) == MAIN_SETUPLIST) { … … 6308 6309 sprintf(szKey, "%s.NumDirsLastTime", path); // path is state name 6309 6310 if (!PrfQueryProfileData(fmprof, 6310 FM3Str,6311 (CHAR *) FM3Str, 6311 6312 szKey, 6312 6313 (PVOID)&numsaves, … … 6366 6367 MPVOID); 6367 6368 } 6368 WinSetWindowText(hwndCmdlist, GetPString(IDS_COMMANDSTEXT));6369 WinSetWindowText(hwndCmdlist, (CHAR *) GetPString(IDS_COMMANDSTEXT)); 6369 6370 } 6370 6371 } -
trunk/dll/mainwnd2.c
r1486 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2005, 20 08Steven H. Levine9 Copyright (c) 2005, 2010 Steven H. Levine 10 10 11 11 23 May 05 SHL Use datamin.h … … 38 38 aren't user settable; realappname should be used for setting applicable to 39 39 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 *. 40 41 41 42 ***********************************************************************/ … … 604 605 fTileBackwards = (fTileBackwards) ? FALSE : TRUE; 605 606 PrfWriteProfileData(fmprof, 606 FM3Str,607 (CHAR *) FM3Str, 607 608 "TileBackwards", 608 609 (PVOID) & fTileBackwards, sizeof(BOOL)); … … 993 994 994 995 case WM_SAVEAPPLICATION: 995 WinStoreWindowPos( FM2Str,996 WinStoreWindowPos((CHAR *) FM2Str, 996 997 "MainWindowPos2", WinQueryWindow(hwnd, QW_PARENT)); 997 998 pd = WinQueryWindowPtr(hwnd, QWL_USER + 4); … … 1416 1417 1417 1418 if (PrfQueryProfileString(HINI_USERPROFILE, 1418 FM2Str,1419 (CHAR *) FM2Str, 1419 1420 "Home", NULL, inipath, sizeof(inipath))) { 1420 1421 if (!DosQueryPathInfo(inipath, FIL_STANDARD, &fsa, sizeof(fsa))) { … … 1432 1433 WS_VISIBLE, 1433 1434 &FrameFlags, 1434 WC_MAINWND2,1435 (CHAR *) WC_MAINWND2, 1435 1436 NULL, 1436 1437 WS_VISIBLE | WS_ANIMATE, … … 1438 1439 if (hwndFrame) { 1439 1440 hwndMainMenu = WinWindowFromID(hwndFrame, FID_MENU); 1440 if (!WinRestoreWindowPos( FM2Str, "MainWindowPos2", hwndFrame)) {1441 if (!WinRestoreWindowPos((CHAR *) FM2Str, "MainWindowPos2", hwndFrame)) { 1441 1442 1442 1443 ULONG fl = SWP_MOVE | SWP_SIZE; -
trunk/dll/misc.c
r1497 r1498 6 6 7 7 Copyright (c) 1993-98 M. Kimes 8 Copyright (c) 2003, 20 09Steven H. Levine8 Copyright (c) 2003, 2010 Steven H. Levine 9 9 10 10 11 Jun 03 SHL Add JFS and FAT32 support … … 65 65 21 Dec 09 GKY Allow command menu reorder without changing the "ID" or hot key for a command. 66 66 Added load_inicommand to load the IDs from the ini file. 67 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 67 68 68 69 ***********************************************************************/ … … 1057 1058 *bool = *bool ? FALSE : TRUE; 1058 1059 if (savename && *savename) 1059 PrfWriteProfileData(fmprof, appname, savename, bool, sizeof(BOOL));1060 PrfWriteProfileData(fmprof, appname, (CHAR *) savename, bool, sizeof(BOOL)); 1060 1061 } 1061 1062 WinSendMsg(hwndMenu, MM_SETITEMATTR, … … 1549 1550 1550 1551 strcpy(eos, "Pos");; 1551 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);1552 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0); 1552 1553 strcpy(eos, "Sort"); 1553 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);1554 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0); 1554 1555 strcpy(eos, "Filter"); 1555 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);1556 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0); 1556 1557 strcpy(eos, "View"); 1557 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);1558 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0); 1558 1559 strcpy(eos, "Dir"); 1559 PrfWriteProfileString(fmprof, FM3Str, s, NULL);1560 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, s, NULL); 1560 1561 if (statename && strstr(s, ".0.")) { 1561 1562 strcpy(s, statename); … … 1563 1564 eos = &s[strlen(s)]; 1564 1565 strcpy(eos, "LastTreePos"); 1565 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);1566 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0); 1566 1567 strcpy(eos, "MySizeLastTime"); 1567 PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);1568 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0); 1568 1569 strcpy(eos, "Toolbar"); 1569 PrfWriteProfileString(fmprof, FM3Str, s, NULL);1570 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, s, NULL); 1570 1571 strcpy(eos, "TargetDir"); 1571 PrfWriteProfileString(fmprof, FM3Str, s, NULL);1572 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, s, NULL); 1572 1573 } 1573 1574 … … 1582 1583 1583 1584 sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, ulTemp); 1584 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);1585 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0); 1585 1586 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, ulTemp); 1586 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);1587 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0); 1587 1588 sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, ulTemp); 1588 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);1589 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0); 1589 1590 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, ulTemp); 1590 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);1591 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0); 1591 1592 sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, ulTemp); 1592 PrfWriteProfileString(fmprof, FM3Str, szKey, NULL);1593 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, NULL); 1593 1594 sprintf(szKey, "%sDirCnr.%lu.", szPrefix, ulTemp); 1594 1595 } … … 2156 2157 if (!DosQueryProcAddr(hmod, 2157 2158 ORD_DOS32QUERYEXTLIBPATH, 2158 NULL, (PFN *) & 2159 NULL, (PFN *) &DQELIBPATH)) { 2159 2160 DQELIBPATH(beg, BEGIN_LIBPATH); 2160 2161 DQELIBPATH(end, END_LIBPATH); -
trunk/dll/mle.c
r1480 r1498 7 7 8 8 Copyright (c) 1993-97 M. Kimes 9 Copyright (c) 2004, 20 08Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 24 24 08 Mar 09 GKY Additional strings move to PCSZs in init.c 25 25 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory 26 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 26 27 27 28 ***********************************************************************/ … … 205 206 206 207 size = sizeof(WPSDefaultFtpRun); 207 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,208 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 208 209 "DefaultBrowserExe", WPSDefaultFtpRun, &size); 209 210 size = sizeof(WPSDefaultFtpRunDir); 210 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,211 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 211 212 "DefaultWorkingDir", WPSDefaultFtpRunDir, &size); 212 213 runemf2(SEPARATE | WINDOWED, … … 226 227 227 228 size = sizeof(WPSDefaultHttpRun); 228 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,229 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 229 230 "DefaultBrowserExe", WPSDefaultHttpRun, &size); 230 231 size = sizeof(WPSDefaultHttpRunDir); 231 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,232 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 232 233 "DefaultWorkingDir", WPSDefaultHttpRunDir, &size); 233 234 runemf2(SEPARATE | WINDOWED, -
trunk/dll/newview.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 01 Dec 03 SHL Comments … … 39 39 08 Mar 09 GKY Additional strings move to PCSZs in init.c 40 40 13 Jul 09 SHL Sync with renames 41 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 41 42 42 43 ***********************************************************************/ … … 1006 1007 WinSetWindowText(WinWindowFromID(ad->hwndFrame, 1007 1008 NEWVIEW_STATUS1), 1008 GetPString(IDS_SEARCHINGTEXT));1009 (CHAR *) GetPString(IDS_SEARCHINGTEXT)); 1009 1010 if (numlines && width && ad->markedlines && ad->numlines && 1010 1011 ad->text && ad->textsize) { … … 1104 1105 WinSetWindowText(WinWindowFromID(ad->hwndFrame, 1105 1106 NEWVIEW_STATUS1), 1106 GetPString(IDS_NOMATCHINGTEXT));1107 (CHAR *) GetPString(IDS_NOMATCHINGTEXT)); 1107 1108 DosSleep(150);//05 Aug 07 GKY 1500 1108 1109 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); … … 1161 1162 WinSetWindowText(WinWindowFromID(ad->hwndFrame, 1162 1163 NEWVIEW_STATUS1), 1163 GetPString(IDS_BUILDINGLINELISTTEXT));1164 (CHAR *) GetPString(IDS_BUILDINGLINELISTTEXT)); 1164 1165 if (cmd == IDM_SAVETOCLIP || cmd == IDM_APPENDTOCLIP || 1165 1166 cmd == IDM_SAVETOLIST) … … 1173 1174 (cmd == IDM_SAVETOCLIP || 1174 1175 cmd == IDM_SAVETOCLIP2) ? 1175 GetPString(IDS_SAVETOCLIPTEXT) :1176 (CHAR *) GetPString(IDS_SAVETOCLIPTEXT) : 1176 1177 (cmd == IDM_APPENDTOCLIP || 1177 1178 cmd == IDM_APPENDTOCLIP2) ? 1178 GetPString(IDS_APPENDTOCLIPTEXT) :1179 GetPString(IDS_WRITETOFILETEXT));1179 (CHAR *) GetPString(IDS_APPENDTOCLIPTEXT) : 1180 (CHAR *) GetPString(IDS_WRITETOFILETEXT)); 1180 1181 DosReleaseMutexSem(ad->ScanSem); 1181 1182 released = TRUE; … … 1215 1216 WinSetWindowText(WinWindowFromID(ad->hwndFrame, 1216 1217 NEWVIEW_STATUS1), 1217 GetPString(IDS_NVNOLINESSELTEXT));1218 (CHAR *) GetPString(IDS_NVNOLINESSELTEXT)); 1218 1219 DosSleep(150);//05 Aug 07 GKY 1500 1219 1220 } … … 1278 1279 WinSetWindowText(WinWindowFromID(ad->hwndFrame, 1279 1280 NEWVIEW_STATUS1), 1280 GetPString(IDS_FORMATTINGTEXT));1281 (CHAR *) GetPString(IDS_FORMATTINGTEXT)); 1281 1282 if (!ad->hex) { 1282 1283 if (WinSendDlgItemMsg(ad->hwndFrame, NEWVIEW_LISTBOX, … … 1892 1893 MPFROM2SHORT(1, 1)); 1893 1894 ad->hwndStatus1 = WinCreateWindow(hwndFrame, 1894 WC_VIEWSTATUS,1895 GetPString(IDS_LOADINGTEXT),1895 (CHAR *) WC_VIEWSTATUS, 1896 (CHAR *) GetPString(IDS_LOADINGTEXT), 1896 1897 WS_VISIBLE | SS_TEXT | 1897 1898 DT_LEFT | DT_VCENTER, … … 1908 1909 1909 1910 ad->hwndStatus2 = WinCreateWindow(hwndFrame, 1910 WC_VIEWSTATUS,1911 (CHAR *) WC_VIEWSTATUS, 1911 1912 NULL, 1912 1913 WS_VISIBLE | SS_TEXT | … … 1924 1925 1925 1926 ad->hwndStatus3 = WinCreateWindow(hwndFrame, 1926 WC_VIEWSTATUS,1927 (CHAR *) WC_VIEWSTATUS, 1927 1928 NULL, 1928 1929 WS_VISIBLE | SS_TEXT | … … 1940 1941 1941 1942 ad->hwndListbox = WinCreateWindow(hwndFrame, 1942 WC_LISTBOX,1943 (CHAR *) WC_LISTBOX, 1943 1944 NULL, 1944 1945 LS_NOADJUSTPOS, … … 1955 1956 1956 1957 ad->hwndDrag = WinCreateWindow(hwndFrame, 1957 WC_VIEWSTATUS,1958 (CHAR *) WC_VIEWSTATUS, 1958 1959 "#100", 1959 1960 WS_VISIBLE | SS_BITMAP, … … 1996 1997 WinSetWindowText(hwndStatus2, 1997 1998 (*ad->filename) ? 1998 ad->filename : GetPString(IDS_UNTITLEDTEXT));1999 ad->filename : (CHAR *) GetPString(IDS_UNTITLEDTEXT)); 1999 2000 if (fMoreButtons) { 2000 2001 WinSetWindowText(hwndName, 2001 2002 (*ad->filename) ? 2002 ad->filename : GetPString(IDS_UNTITLEDTEXT));2003 ad->filename : (CHAR *) GetPString(IDS_UNTITLEDTEXT)); 2003 2004 WinSetWindowText(hwndDate, NullStr); 2004 2005 WinSetWindowText(hwndAttr, NullStr); … … 2006 2007 if (hwndStatus) 2007 2008 WinSetWindowText(hwndStatus, 2008 GetPString(IDS_INTERNALVIEWERTITLETEXT));2009 (CHAR *) GetPString(IDS_INTERNALVIEWERTITLETEXT)); 2009 2010 } 2010 2011 } … … 2033 2034 } 2034 2035 else 2035 WinSetWindowText(ad->hwndStatus1, GetPString(IDS_NVNOLINESTEXT));2036 WinSetWindowText(ad->hwndStatus1, (CHAR *) GetPString(IDS_NVNOLINESTEXT)); 2036 2037 DosReleaseMutexSem(ad->ScanSem); 2037 2038 } 2038 2039 else 2039 WinSetWindowText(ad->hwndStatus1, GetPString(IDS_WORKINGTEXT));2040 WinSetWindowText(ad->hwndStatus1, (CHAR *) GetPString(IDS_WORKINGTEXT)); 2040 2041 } 2041 2042 return 0; … … 2472 2473 2473 2474 size = sizeof(WPSDefaultHttpRun); 2474 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,2475 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 2475 2476 "DefaultBrowserExe", WPSDefaultHttpRun, &size); 2476 2477 size = sizeof(WPSDefaultHttpRunDir); 2477 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,2478 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 2478 2479 "DefaultWorkingDir", WPSDefaultHttpRunDir, &size); 2479 2480 runemf2(SEPARATE | WINDOWED, … … 2498 2499 2499 2500 size = sizeof(WPSDefaultFtpRun); 2500 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,2501 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 2501 2502 "DefaultBrowserExe", WPSDefaultFtpRun, &size); 2502 2503 size = sizeof(WPSDefaultFtpRunDir); 2503 PrfQueryProfileData(HINI_USERPROFILE, PCSZ_WPURLDEFAULTSETTINGS,2504 PrfQueryProfileData(HINI_USERPROFILE, (CHAR *) PCSZ_WPURLDEFAULTSETTINGS, 2504 2505 "DefaultWorkingDir", WPSDefaultFtpRunDir, &size); 2505 2506 runemf2(SEPARATE | WINDOWED, … … 4070 4071 0, 4071 4072 &FrameFlags, 4072 WC_NEWVIEW,4073 GetPString(IDS_FM2VIEWERTITLETEXT),4073 (CHAR *) WC_NEWVIEW, 4074 (CHAR *) GetPString(IDS_FM2VIEWERTITLETEXT), 4074 4075 fwsAnimate, 4075 4076 FM3ModHandle, NEWVIEW_FRAME, &hwndClient); -
trunk/dll/notebook.c
r1483 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 09Steven H. Levine9 Copyright (c) 2004, 2010 Steven H. Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 58 58 13 Dec 09 GKY Updated Quick page "Default" to match current defaults; added Gregg's way 59 59 option to Quick page. 60 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 60 61 61 62 ***********************************************************************/ … … 1436 1437 &fShowDriveLabelInTree, sizeof(BOOL)); 1437 1438 fVTreeOpensWPS = WinQueryButtonCheckstate(hwnd, CFGT_VTREEOPENSWPS); 1438 PrfWriteProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS,1439 PrfWriteProfileData(fmprof, (CHAR *) (CHAR *) FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, 1439 1440 sizeof(BOOL)); 1440 1441 fCollapseFirst = WinQueryButtonCheckstate(hwnd, CFGT_COLLAPSEFIRST); … … 1944 1945 if (fOldSyncUpdates != fSyncUpdates) { 1945 1946 fSyncUpdates = fOldSyncUpdates; 1946 if (hwndMain && !strcmp(realappname, FM3Str)) {1947 if (hwndMain && !strcmp(realappname, (CHAR *) FM3Str)) { 1947 1948 // Save state and restore to refresh windows with new settings 1948 1949 if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) { … … 2099 2100 2100 2101 case WM_CLOSE: 2101 if (hwndMain && !strcmp(realappname, FM3Str)) {2102 if (hwndMain && !strcmp(realappname, (CHAR *) FM3Str)) { 2102 2103 if (fFreeTree != WinQueryButtonCheckstate(hwnd, CFGM_FREETREE)) 2103 2104 PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); … … 2107 2108 fSplitStatus = (fSplitStatus) ? FALSE : TRUE; 2108 2109 PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_BLINK, 0), MPVOID); 2109 PrfWriteProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus,2110 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "SplitStatus", &fSplitStatus, 2110 2111 sizeof(BOOL)); 2111 2112 } 2112 2113 } 2113 2114 fUserListSwitches = WinQueryButtonCheckstate(hwnd, CFGM_USERLISTSWITCHES); 2114 PrfWriteProfileData(fmprof, FM3Str, "UserListSwitches",2115 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "UserListSwitches", 2115 2116 (PVOID) & fUserListSwitches, sizeof(BOOL)); 2116 2117 fExternalINIs = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALINIS); 2117 PrfWriteProfileData(fmprof, FM3Str, "ExternalINIs",2118 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalINIs", 2118 2119 (PVOID) & fExternalINIs, sizeof(BOOL)); 2119 2120 fExternalArcboxes = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALARCBOXES); 2120 PrfWriteProfileData(fmprof, FM3Str, "ExternalArcboxes",2121 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalArcboxes", 2121 2122 (PVOID) & fExternalArcboxes, sizeof(BOOL)); 2122 2123 fExternalCollector = 2123 2124 WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALCOLLECTOR); 2124 PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector",2125 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalCollector", 2125 2126 (PVOID) & fExternalCollector, sizeof(BOOL)); 2126 2127 fExternalViewer = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALVIEWER); 2127 PrfWriteProfileData(fmprof, FM3Str, "ExternalViewer",2128 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalViewer", 2128 2129 (PVOID) & fExternalViewer, sizeof(BOOL)); 2129 2130 { … … 2149 2150 fSaveState = WinQueryButtonCheckstate(hwnd, CFGM_SAVESTATE); 2150 2151 PrfWriteProfileData(fmprof, 2151 FM3Str,2152 (CHAR *) FM3Str, 2152 2153 "SaveState", (PVOID) & fSaveState, sizeof(BOOL)); 2153 2154 fStartMinimized = WinQueryButtonCheckstate(hwnd, CFGM_STARTMIN); … … 2166 2167 fTileBackwards = WinQueryButtonCheckstate(hwnd, CFGM_TILEBACKWARDS); 2167 2168 PrfWriteProfileData(fmprof, 2168 FM3Str,2169 (CHAR *) FM3Str, 2169 2170 "TileBackwards", 2170 2171 (PVOID) & fTileBackwards, sizeof(BOOL)); … … 2694 2695 fExternalCollector = WinQueryButtonCheckstate(hwnd, 2695 2696 CFG5_EXTERNALCOLLECTOR); 2696 PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector",2697 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalCollector", 2697 2698 &fExternalCollector, sizeof(BOOL)); 2698 2699 { … … 4099 4100 Runtime_Error(pszSrcFile, __LINE__, "bad menu id %lu", ulPageId); 4100 4101 else { 4101 PrfWriteProfileData(fmprof, FM3Str, pszIK_LastSettingsPage,4102 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, pszIK_LastSettingsPage, 4102 4103 (PVOID)&x, sizeof(x)); 4103 4104 hwndMenu = WinWindowFromID(hwndOwner, FID_MENU); -
trunk/dll/notify.c
r1455 r1498 6 6 7 7 Copyright (c) 1993-98 M. Kimes 8 Copyright (c) 2006, 20 09Steven H.Levine8 Copyright (c) 2006, 2010 Steven H.Levine 9 9 10 10 17 Jul 06 SHL Use Win_Error … … 20 20 13 Jul 09 SHL Sync with renames 21 21 16 Jul 09 SHL Stop leaking hptrIcon 22 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 22 23 23 24 ***********************************************************************/ … … 211 212 212 213 hwnd = WinCreateWindow(hwndP, 213 WC_ERRORWND,214 (CHAR *) WC_ERRORWND, 214 215 p, 215 216 SS_TEXT | DT_LEFT | DT_VCENTER | WS_VISIBLE, … … 307 308 fThreadNotes = TRUE; 308 309 PrfWriteProfileData(fmprof, 309 FM3Str,310 (CHAR *) FM3Str, 310 311 "ThreadNotes", 311 312 &fThreadNotes, … … 344 345 345 346 if (PrfQueryProfileData(fmprof, 346 FM3Str, "NoteWndSwp", (PVOID) & swp, &size)) {347 (CHAR *) FM3Str, "NoteWndSwp", (PVOID) & swp, &size)) { 347 348 if (swp.fl & (SWP_HIDE | SWP_MINIMIZE)) { 348 349 fl |= SWP_MINIMIZE; … … 389 390 } 390 391 PrfWriteProfileData(fmprof, 391 FM3Str, "NoteWndSwp", (PVOID) & swp, sizeof(SWP));392 (CHAR *) FM3Str, "NoteWndSwp", (PVOID) & swp, sizeof(SWP)); 392 393 } 393 394 } … … 476 477 fThreadNotes = FALSE; // Remember not open 477 478 PrfWriteProfileData(fmprof, 478 FM3Str, "ThreadNotes", &fThreadNotes, sizeof(BOOL));479 (CHAR *) FM3Str, "ThreadNotes", &fThreadNotes, sizeof(BOOL)); 479 480 hwndNotify = (HWND)0; 480 481 } -
trunk/dll/objwin.c
r1395 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2006, 20 08Steven H.Levine9 Copyright (c) 2006, 2010 Steven H.Levine 10 10 11 11 26 Jul 06 SHL Check more run time errors … … 15 15 08 Jul 08 SHL Correct Fortify_LeaveScope usage and avoid spurious reports 16 16 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 17 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 17 18 18 19 ***********************************************************************/ … … 73 74 DosError(FERR_DISABLEHARDERR); 74 75 WinRegisterClass(hab2, 75 WC_OBJECTWINDOW,76 (CHAR *) WC_OBJECTWINDOW, 76 77 ObjectWndProc, 0, sizeof(PVOID)); 77 78 ObjectHwnd = WinCreateWindow(HWND_OBJECT, 78 WC_OBJECTWINDOW,79 (CHAR *) WC_OBJECTWINDOW, 79 80 (PSZ) NULL, 80 81 0, -
trunk/dll/printer.c
r1398 r1498 6 6 7 7 Copyright (c) 1993-98 M. Kimes 8 Copyright (c) 2004, 20 08Steven H.Levine8 Copyright (c) 2004, 2010 Steven H.Levine 9 9 10 10 01 Aug 04 SHL Rework lstrip/rstrip usage … … 15 15 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 16 16 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 17 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 17 18 18 19 ***********************************************************************/ … … 477 478 else { 478 479 prnformat = WinQueryButtonCheckstate(hwnd, PRN_FORMAT); 479 PrfWriteProfileData(fmprof, FM3Str, "Prnformat",480 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformat", 480 481 (PVOID) & prnformat, sizeof(prnformat)); 481 482 prnalt = WinQueryButtonCheckstate(hwnd, PRN_ALT); 482 PrfWriteProfileData(fmprof, FM3Str, "Prnalt",483 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnalt", 483 484 (PVOID) & prnalt, sizeof(prnalt)); 484 485 prnpagenums = WinQueryButtonCheckstate(hwnd, PRN_PAGENUMS); 485 PrfWriteProfileData(fmprof, FM3Str, "Prnpagenums",486 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnpagenums", 486 487 (PVOID) & prnpagenums, sizeof(prnpagenums)); 487 488 prnformfeedbefore = WinQueryButtonCheckstate(hwnd, PRN_FORMBEFORE); 488 PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedbefore",489 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedbefore", 489 490 (PVOID) & prnformfeedbefore, 490 491 sizeof(prnformfeedbefore)); 491 492 prnformfeedafter = WinQueryButtonCheckstate(hwnd, PRN_FORMAFTER); 492 PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedafter",493 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedafter", 493 494 (PVOID) & prnformfeedafter, 494 495 sizeof(prnformfeedafter)); … … 505 506 } 506 507 prnwidth = atol(s); 507 PrfWriteProfileData(fmprof, FM3Str, "Prnwidth",508 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnwidth", 508 509 (PVOID) & prnwidth, sizeof(prnwidth)); 509 510 *s = 0; … … 516 517 } 517 518 prnlength = atol(s); 518 PrfWriteProfileData(fmprof, FM3Str, "Prnlength",519 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlength", 519 520 (PVOID) & prnlength, sizeof(prnlength)); 520 521 *s = 0; … … 527 528 } 528 529 prnlmargin = atol(s); 529 PrfWriteProfileData(fmprof, FM3Str, "Prnlmargin",530 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlmargin", 530 531 (PVOID) & prnlmargin, sizeof(prnlmargin)); 531 532 *s = 0; … … 538 539 } 539 540 prnrmargin = atol(s); 540 PrfWriteProfileData(fmprof, FM3Str, "Prnrmargin",541 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnrmargin", 541 542 (PVOID) & prnrmargin, sizeof(prnrmargin)); 542 543 *s = 0; … … 550 551 } 551 552 prntabspaces = atol(s); 552 PrfWriteProfileData(fmprof, FM3Str, "Prntabspaces",553 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntabspaces", 553 554 (PVOID) & prntabspaces, sizeof(prntabspaces)); 554 555 *s = 0; … … 561 562 } 562 563 prntmargin = atol(s); 563 PrfWriteProfileData(fmprof, FM3Str, "Prntmargin",564 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntmargin", 564 565 (PVOID) & prntmargin, sizeof(prntmargin)); 565 566 *s = 0; … … 572 573 } 573 574 prnbmargin = atol(s); 574 PrfWriteProfileData(fmprof, FM3Str, "Prnbmargin",575 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnbmargin", 575 576 (PVOID) & prnbmargin, sizeof(prnbmargin)); 576 577 *s = 0; … … 584 585 } 585 586 prnspacing = atol(s); 586 PrfWriteProfileData(fmprof, FM3Str, "Prnspacing",587 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnspacing", 587 588 (PVOID) & prnspacing, sizeof(prnspacing)); 588 589 WinQueryDlgItemText(hwnd, PRN_PRINTER, sizeof(printer), printer); -
trunk/dll/remap.c
r1402 r1498 5 5 6 6 Copyright (c) 1993, 1998 M. Kimes 7 Copyright (c) 2004, 20 09Steven H.Levine7 Copyright (c) 2004, 2010 Steven H.Levine 8 8 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage … … 16 16 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName 17 17 24 Aug 08 GKY Warn full drive on save of .DAT file; prevent loss of existing file 18 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 18 19 19 20 ***********************************************************************/ … … 333 334 WinSetDlgItemText(hwnd, 334 335 MAP_ATTACHTO, 335 GetPString(IDS_UNKNOWNBRKTTEXT));336 (CHAR *) GetPString(IDS_UNKNOWNBRKTTEXT)); 336 337 } 337 338 else 338 339 WinSetDlgItemText(hwnd, 339 340 MAP_ATTACHTO, 340 GetPString(IDS_UNKNOWNBRKTTEXT));341 (CHAR *) GetPString(IDS_UNKNOWNBRKTTEXT)); 341 342 } 342 343 } -
trunk/dll/rename.c
r1402 r1498 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2004, 20 07Steven H.Levine7 Copyright (c) 2004, 2010 Steven H.Levine 8 8 9 9 Revisions … … 18 18 08 Mar 09 GKY Renamed commafmt.h i18nutil.h 19 19 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 20 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 20 21 21 22 ***********************************************************************/ … … 123 124 else 124 125 WinSetDlgItemText(hwnd, 125 REN_SOURCEINFO, GetPString(IDS_DOESNTEXIST2TEXT));126 REN_SOURCEINFO, (CHAR *) GetPString(IDS_DOESNTEXIST2TEXT)); 126 127 strcpy(chkname, mv->target); 127 128 p = strrchr(s, '\\'); … … 150 151 else { 151 152 WinSetDlgItemText(hwnd, 152 REN_TARGETINFO, GetPString(IDS_DOESNTEXIST2TEXT));153 REN_TARGETINFO, (CHAR *) GetPString(IDS_DOESNTEXIST2TEXT)); 153 154 WinEnableWindow(WinWindowFromID(hwnd, REN_RENEXIST), FALSE); 154 155 } -
trunk/dll/seeall.c
r1438 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 16 Oct 02 SHL Handle large partitions … … 49 49 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 50 50 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 51 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 51 52 52 53 ***********************************************************************/ … … 785 786 786 787 WinSetWindowText(WinWindowFromID(hwndFrame, SEEALL_STATUS), 787 GetPString(IDS_FITTINGTEXT));788 (CHAR *) GetPString(IDS_FITTINGTEXT)); 788 789 DosError(FERR_DISABLEHARDERR); 789 790 if (!DosQueryFSInfo(toupper(*newname) - '@', … … 811 812 WinSetWindowText(WinWindowFromID(hwndFrame, 812 813 SEEALL_STATUS), 813 GetPString(IDS_COULDNTFITTEXT));814 (CHAR *) GetPString(IDS_COULDNTFITTEXT)); 814 815 } 815 816 } … … 1207 1208 DosError(FERR_DISABLEHARDERR); 1208 1209 WinRegisterClass(hab2, 1209 WC_OBJECTWINDOW,1210 (CHAR *) WC_OBJECTWINDOW, 1210 1211 SeeObjWndProc, 0, sizeof(PVOID)); 1211 1212 hwndObj = WinCreateWindow(HWND_OBJECT, 1212 WC_OBJECTWINDOW,1213 (CHAR *) WC_OBJECTWINDOW, 1213 1214 (PSZ) NULL, 1214 1215 0, … … 2635 2636 if (!DosCreateMutexSem(NULL, &pAD->hmtxScan, 0, FALSE)) { 2636 2637 pAD->hwndStatus = WinCreateWindow(hwndFrame, 2637 WC_SEESTATUS,2638 (CHAR *) WC_SEESTATUS, 2638 2639 NullStr, 2639 2640 WS_VISIBLE | SS_TEXT | … … 3135 3136 Runtime_Error(pszSrcFile, __LINE__, NULL); 3136 3137 else { 3137 WinSetWindowText(pAD->hwndStatus, GetPString(IDS_DRAGGINGFILESTEXT));3138 WinSetWindowText(pAD->hwndStatus, (CHAR *) GetPString(IDS_DRAGGINGFILESTEXT)); 3138 3139 DragList(hwnd, (HWND) 0, list, TRUE); 3139 3140 FreeList(list); … … 4397 4398 WS_VISIBLE, 4398 4399 &FrameFlags, 4399 WC_SEEALL,4400 GetPString(IDS_SEEALLTITLETEXT),4400 (CHAR *) WC_SEEALL, 4401 (CHAR *) GetPString(IDS_SEEALLTITLETEXT), 4401 4402 WS_VISIBLE | fwsAnimate, 4402 4403 FM3ModHandle, SEEALL_FRAME, &hwndClient); -
trunk/dll/shadow.c
r1480 r1498 7 7 8 8 Copyright (c) 1993-97 M. Kimes 9 Copyright (c) 2006, 20 08Steven H. Levine9 Copyright (c) 2006, 2010 Steven H. Levine 10 10 11 11 22 Jul 06 SHL Check more run time errors … … 15 15 08 Mar 09 GKY Additional strings move to PCSZs declare change 16 16 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory 17 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 17 18 18 19 ***********************************************************************/ … … 63 64 if (!cnr) 64 65 return obj; 65 obj = WinCreateObject( WPProgram,66 obj = WinCreateObject((CHAR *) WPProgram, 66 67 objtitle, 67 68 "NODELETE=NO;TEMPLATE=NO;NOCOPY=NO;NOMOVE=NO", … … 307 308 if (hwnd) 308 309 WinSetFocus(HWND_DESKTOP, HWND_DESKTOP); 309 ret = WinCreateObject( WPProgram,310 ret = WinCreateObject((CHAR *) WPProgram, 310 311 exename, 311 312 settings, "<WP_NOWHERE>", CO_REPLACEIFEXISTS); -
trunk/dll/srchpath.c
r1438 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 20 08Steven H. Levine9 Copyright (c) 2003, 2010 Steven H. Levine 10 10 11 11 22 Apr 07 GKY Add RunFM2Util to find and run apps from the FM2Utilities … … 13 13 23 Aug 07 SHL Comments 14 14 04 Oct 08 JBS Make searchapath non-static 15 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 15 16 16 17 ***********************************************************************/ … … 48 49 49 50 rc = DosSearchPath(SEARCH_IGNORENETERRS |SEARCH_ENVIRONMENT | 50 SEARCH_CUR_DIRECTORY, PCSZ_PATH,51 appname, (PBYTE)fbuf, CCHMAXPATH - 1);51 SEARCH_CUR_DIRECTORY, (CHAR *) PCSZ_PATH, 52 (CHAR *) appname, (PBYTE)fbuf, CCHMAXPATH - 1); 52 53 if (rc != 0) { 53 54 if (rc != 2){ … … 58 59 else { 59 60 rc = DosSearchPath(0, "UTILS;..\\FM2Utils", 60 appname, (PBYTE)fbuf, CCHMAXPATH - 1);61 (CHAR *) appname, (PBYTE)fbuf, CCHMAXPATH - 1); 61 62 if (rc != 0 && rc != 2){ 62 63 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, … … 123 124 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 124 125 SEARCH_CUR_DIRECTORY, 125 pathvar,filename, (PBYTE)fbuf, CCHMAXPATH - 1))126 (CHAR *) pathvar, (CHAR *) filename, (PBYTE)fbuf, CCHMAXPATH - 1)) 126 127 *fbuf = 0; 127 128 return fbuf; -
trunk/dll/systemf.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 20 09Steven H.Levine9 Copyright (c) 2003, 2010 Steven H.Levine 10 10 11 11 21 Nov 03 SHL Comments … … 30 30 27 Dec 09 GKY Provide human readable error message when DosQueryAppType fails because it 31 31 couldn't find the exe (such as missing archivers). 32 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 33 17 JAN 10 GKY Changes to environment handling in ExecuteOnList to facilitate move of commands to INI and allow 34 the same commandline to have different environments (multiple different command titles). 35 17 JAN 10 GKY Add ENVIRONMENT_SIZE vaiable to replace multiple (often different hard coded sizes) set to 2048 36 (the largest value I found). 32 37 33 38 ***********************************************************************/ … … 648 653 { 649 654 EXECARGS ex; 650 //ULONG size;651 655 int ret; 652 656 653 657 memset(&ex, 0, sizeof(EXECARGS)); 654 //size = sizeof(ex.environment) - 1; 655 //PrfQueryProfileData(fmprof, FM3Str, command, ex.environment, &size); 658 if (!environment) { 659 ULONG size; 660 661 size = ENVIRONMENT_SIZE; 662 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, command, ex.environment, &size); 663 } 664 else 665 strcpy(ex.environment, environment); 656 666 if (flags & PROMPT) { 657 667 /* allow editing command line */ … … 670 680 else 671 681 ex.flags = flags; 672 ex.flags &= (~PROMPT);682 //ex.flags &= (~PROMPT); redundant GKY 1-9-10 673 683 //DbgMsg(pszSrcFile, __LINE__, "Inserted %s", environment); 674 684 ret = runemf2(ex.flags, hwnd, pszCallingFile, uiLineNumber, path, 675 environment ?environment : NULL,685 *ex.environment ? ex.environment : NULL, 676 686 "%s", commandline); 677 687 free(commandline); -
trunk/dll/systemf.h
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2008, 20 09Steven H. Levine9 Copyright (c) 2008, 2010 Steven H. Levine 10 10 11 11 Change log 12 12 21 Dec 09 GKY Added CheckExecutibleFlags to streamline code in command.c assoc.c & cmdline.c 13 17 JAN 10 GKY Changes to environment handling in ExecuteOnList to facilitate move of commands to INI and allow 14 the same commandline to have different environments (multiple different command titles). 15 17 JAN 10 GKY Add ENVIRONMENT_SIZE vaiable to replace multiple (often different hard coded sizes) set to 2048 16 (the largest value I found). 13 17 14 18 ***********************************************************************/ … … 37 41 #define CHILD 65536 38 42 43 #define ENVIRONMENT_SIZE 2048 44 39 45 typedef struct 40 46 { … … 42 48 CHAR *commandline; 43 49 CHAR path[CCHMAXPATH]; 44 CHAR environment[ 1001];50 CHAR environment[ENVIRONMENT_SIZE]; 45 51 CHAR tempprompt[128]; 46 52 CHAR title[80]; -
trunk/dll/tools.c
r1486 r1498 7 7 8 8 Copyright (c) 1994-97 M. Kimes 9 Copyright (c) 2004, 20 08Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 24 24 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 25 25 08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used) 26 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 26 27 27 28 ***********************************************************************/ … … 233 234 if (toolhead && filename && *filename) { 234 235 strcpy(lasttoolbar, filename); 235 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", filename);236 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", filename); 236 237 } 237 238 if (!toolhead) { … … 424 425 if (!toolhead || !toolhead->next) 425 426 WinDismissDlg(hwnd, 0); 426 WinSetWindowText(hwnd, GetPString(IDS_RETOOLTEXT));427 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_RETOOLTEXT)); 427 428 { 428 429 TOOL *tool; … … 612 613 WinSetWindowPtr(hwnd, QWL_USER, mp2); 613 614 if (mp2) { 614 WinSetWindowText(hwnd, GetPString(IDS_EDITTOOLTEXT));615 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_EDITTOOLTEXT)); 615 616 WinSendDlgItemMsg(hwnd, ADDBTN_ID, EM_SETREADONLY, 616 617 MPFROM2SHORT(TRUE, 0), MPVOID); … … 700 701 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 701 702 WinSetDlgItemText(hwnd, ADDBTN_HELPME, 702 GetPString(IDS_ADDTOOLQUICKHELPTEXT));703 (CHAR *) GetPString(IDS_ADDTOOLQUICKHELPTEXT)); 703 704 break; 704 705 … … 708 709 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 709 710 WinSetDlgItemText(hwnd, ADDBTN_HELPME, 710 GetPString(IDS_ADDTOOLBUTTONTEXT));711 (CHAR *) GetPString(IDS_ADDTOOLBUTTONTEXT)); 711 712 break; 712 713 … … 718 719 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 719 720 WinSetDlgItemText(hwnd, 720 ADDBTN_HELPME, GetPString(IDS_ADDTOOLBUTTONIDTEXT));721 ADDBTN_HELPME, (CHAR *) GetPString(IDS_ADDTOOLBUTTONIDTEXT)); 721 722 break; 722 723 … … 942 943 else { 943 944 WinSetWindowULong(hwnd, QWL_USER, FALSE); 944 WinSetWindowText(hwnd, GetPString(IDS_LOADTOOLBARTITLETEXT));945 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_LOADTOOLBARTITLETEXT)); 945 946 } 946 947 WinSendDlgItemMsg(hwnd, … … 991 992 WinSetDlgItemText(hwnd, 992 993 SVBTN_CURRENT, 993 (*lasttoolbar) ? lasttoolbar : PCSZ_FM3TOOLSDAT);994 (*lasttoolbar) ? lasttoolbar : (CHAR *) PCSZ_FM3TOOLSDAT); 994 995 break; 995 996 … … 1069 1070 } 1070 1071 } 1071 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);1072 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 1072 1073 } 1073 1074 WinDismissDlg(hwnd, 1); -
trunk/dll/treecnr.c
r1486 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 16 Oct 02 SHL Handle large partitions … … 80 80 before scan completes 81 81 22 Nov 09 GKY Add LVM.EXE to partition submenu 82 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 82 83 83 84 ***********************************************************************/ … … 1496 1497 0); /* Index to DRAGITEM */ 1497 1498 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 1498 DRM_OS2FILE, /* mechanisms and data */ 1499 NULL) || DrgVerifyRMF(pDItem, DRM_FM2ARCMEMBER, DRF_FM2ARCHIVE)) { /* formats */ 1499 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 1500 NULL) || DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2ARCMEMBER, 1501 (CHAR *) DRF_FM2ARCHIVE)) { /* formats */ 1500 1502 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */ 1501 1503 if (!pci || (INT) pci == -1) … … 1534 1536 if (hwndStatus2) { 1535 1537 WinSetWindowText(hwndStatus2, (IsRoot(pci->pszFileName)) ? 1536 GetPString(IDS_DRAGROOTTEXT) :1538 (CHAR *) GetPString(IDS_DRAGROOTTEXT) : 1537 1539 (pci->attrFile & FILE_DIRECTORY) ? 1538 GetPString(IDS_DRAGDIRTEXT) :1539 GetPString(IDS_DRAGFILETEXT));1540 (CHAR *) GetPString(IDS_DRAGDIRTEXT) : 1541 (CHAR *) GetPString(IDS_DRAGFILETEXT)); 1540 1542 } 1541 1543 DoFileDrag(hwnd, dcd->hwndObject, mp2, NULL, NULL, TRUE); … … 1910 1912 DosBeep(50, 100); 1911 1913 if (hwndStatus) 1912 WinSetWindowText(hwndStatus, GetPString(IDS_RESCANSUGTEXT));1914 WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_RESCANSUGTEXT)); 1913 1915 DosReleaseMutexSem(hmtFillingTreeCnr); 1914 1916 return 0; … … 3042 3044 WinQueryWindowPos(dcd->hwndFrame, &swp); 3043 3045 if (!(swp.fl & (SWP_HIDE | SWP_MINIMIZE | SWP_MAXIMIZE))) 3044 WinStoreWindowPos( FM2Str, "VTreeWindowPos", dcd->hwndFrame);3046 WinStoreWindowPos((CHAR *) FM2Str, "VTreeWindowPos", dcd->hwndFrame); 3045 3047 } 3046 3048 break; … … 3160 3162 WS_VISIBLE, 3161 3163 &FrameFlags, 3162 WC_TREECONTAINER,3164 (CHAR *) WC_TREECONTAINER, 3163 3165 NULL, 3164 3166 WS_VISIBLE | fwsAnimate, … … 3190 3192 if (*(ULONG *) realappname == FM3UL) { 3191 3193 if (!WinCreateWindow(hwndFrame, 3192 WC_TREEOPENBUTTON,3194 (CHAR *) WC_TREEOPENBUTTON, 3193 3195 "#303", 3194 3196 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS | BS_BITMAP, … … 3214 3216 else { 3215 3217 if (!WinCreateWindow(hwndFrame, 3216 WC_TREESTATUS,3217 GetPString(IDS_YOUAREHERETEXT),3218 (CHAR *) WC_TREESTATUS, 3219 (CHAR *) GetPString(IDS_YOUAREHERETEXT), 3218 3220 WS_VISIBLE | SS_TEXT | DT_LEFT | DT_VCENTER, 3219 3221 swp.x + 4 + WinQuerySysValue(HWND_DESKTOP, … … 3275 3277 } 3276 3278 else { 3277 WinSetWindowText(hwndFrame, GetPString(IDS_TREETEXT));3279 WinSetWindowText(hwndFrame, (CHAR *) GetPString(IDS_TREETEXT)); 3278 3280 WinSetWindowText(WinWindowFromID(hwndFrame, FID_TITLEBAR), 3279 GetPString(IDS_TREETEXT));3281 (CHAR *) GetPString(IDS_TREETEXT)); 3280 3282 } 3281 3283 dcd->oldproc = WinSubclassWindow(dcd->hwndCnr, TreeCnrWndProc); -
trunk/dll/valid.c
r1480 r1498 7 7 8 8 Copyright (c) 1993, 1998 M. Kimes 9 Copyright (c) 2002, 20 09Steven H.Levine9 Copyright (c) 2002, 2010 Steven H.Levine 10 10 11 11 23 Nov 02 SHL RootName: rework for sanity … … 40 40 22 Jul 09 GKY Add LocalHD driveflag 41 41 22 Jul 09 GKY Streamline scanning code for faster Tree rescans 42 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 42 43 43 44 ***********************************************************************/ … … 484 485 if (filename && *filename) { 485 486 DosError(FERR_DISABLEHARDERR); 486 ret = DosQueryPathInfo( filename, FIL_STANDARD, &fsa, (ULONG) sizeof(fsa));487 ret = DosQueryPathInfo((CHAR *) filename, FIL_STANDARD, &fsa, (ULONG) sizeof(fsa)); 487 488 if (!ret) 488 489 return ((fsa.attrFile & FILE_DIRECTORY) == 0); -
trunk/dll/viewer.c
r1402 r1498 7 7 8 8 Copyright (c) 1993-97 M. Kimes 9 Copyright (c) 2005, 20 09Steven H. Levine9 Copyright (c) 2005, 2010 Steven H. Levine 10 10 11 11 23 May 05 SHL Use QWL_USER … … 20 20 07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error 21 21 08 Mar 09 GKY Additional strings move to String Table 22 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 22 23 23 24 ***********************************************************************/ … … 154 155 0, 155 156 &flFrameFlags, 156 WC_MLEEDITOR,157 (CHAR *) WC_MLEEDITOR, 157 158 NullStr, 158 159 fwsAnimate, … … 439 440 WinSetWindowText(hwndStatus2, 440 441 (*vw->exportfilename) ? 441 vw->exportfilename : GetPString(IDS_UNTITLEDTEXT));442 vw->exportfilename : (CHAR *) GetPString(IDS_UNTITLEDTEXT)); 442 443 if (fMoreButtons) { 443 444 WinSetWindowText(hwndName, 444 445 (*vw->exportfilename) ? 445 vw->exportfilename : GetPString(IDS_UNTITLEDTEXT));446 vw->exportfilename : (CHAR *) GetPString(IDS_UNTITLEDTEXT)); 446 447 WinSetWindowText(hwndDate, NullStr); 447 448 WinSetWindowText(hwndAttr, NullStr); … … 449 450 if (hwndStatus) 450 451 WinSetWindowText(hwndStatus, 451 GetPString(IDS_INTERNALVIEWEREDITORTITLETEXT));452 (CHAR *) GetPString(IDS_INTERNALVIEWEREDITORTITLETEXT)); 452 453 } 453 454 } … … 477 478 size = sizeof(BOOL); 478 479 PrfQueryProfileData(fmprof, 479 FM3Str, "MLEWrap", (PVOID) & vw->fWrap, &size);480 (CHAR *) (CHAR *) FM3Str, "MLEWrap", (PVOID) & vw->fWrap, &size); 480 481 size = sizeof(BOOL); 481 482 PrfQueryProfileData(fmprof, 482 FM3Str,483 (CHAR *) FM3Str, 483 484 "MLEstriptrail", 484 485 (PVOID) & vw->fStripTrail, &size); 485 486 size = sizeof(BOOL); 486 487 PrfQueryProfileData(fmprof, 487 FM3Str,488 (CHAR *) FM3Str, 488 489 "MLEstriptraillines", 489 490 (PVOID) & vw->fStripTrailLines, &size); 490 491 size = sizeof(BOOL); 491 492 PrfQueryProfileData(fmprof, 492 FM3Str,493 (CHAR *) FM3Str, 493 494 "MLEInsensitve", 494 495 (PVOID) & vw->srch.fInsensitive, &size); 495 496 size = sizeof(INT); 496 497 PrfQueryProfileData(fmprof, 497 FM3Str,498 (CHAR *) FM3Str, 498 499 "MLEExpandTabs", (PVOID) & vw->ExpandTabs, &size); 499 500 size = sizeof(INT); 500 501 PrfQueryProfileData(fmprof, 501 FM3Str,502 (CHAR *) FM3Str, 502 503 "MLETabStops", (PVOID) & vw->TabStops, &size); 503 504 } … … 540 541 541 542 if (!PrfQueryProfileData(fmprof, 542 FM3Str,543 (CHAR *) FM3Str, 543 544 "MLEFont", 544 545 &vw->fattrs, … … 571 572 size = sizeof(ULONG); 572 573 PrfQueryProfileData(fmprof, 573 FM3Str,574 (CHAR *) FM3Str, 574 575 "MLEBackgroundcolor", 575 576 &Colors[COLORS_BACKGROUND], &size); 576 577 size = sizeof(ULONG); 577 578 PrfQueryProfileData(fmprof, 578 FM3Str,579 (CHAR *) FM3Str, 579 580 "MLEForegroundcolor", 580 581 &Colors[COLORS_FOREGROUND], &size); … … 752 753 MPVOID); 753 754 PrfWriteProfileData(fmprof, 754 FM3Str,755 (CHAR *) FM3Str, 755 756 "MLEForegroundcolor", 756 757 &Colors[COLORS_FOREGROUND], sizeof(LONG)); … … 760 761 MPVOID); 761 762 PrfWriteProfileData(fmprof, 762 FM3Str,763 (CHAR *) FM3Str, 763 764 "MLEBackgroundcolor", 764 765 &Colors[COLORS_BACKGROUND], sizeof(LONG)); … … 778 779 WinSendMsg(hwndMLE, MLM_SETFONT, MPFROMP(&vw->fattrs), MPVOID); 779 780 PrfWriteProfileData(fmprof, 780 FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));781 (CHAR *) FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS)); 781 782 break; 782 783 … … 1006 1007 MLM_SETTABSTOP, MPFROMLONG(vw->TabStops), MPVOID); 1007 1008 PrfWriteProfileData(fmprof, 1008 FM3Str,1009 (CHAR *) FM3Str, 1009 1010 "MLETabStops", &vw->TabStops, sizeof(INT)); 1010 1011 } … … 1031 1032 SetMenuCheck(vw->hwndMenu, MLE_EXPANDTABS, &tempbool, FALSE, NULL); 1032 1033 PrfWriteProfileData(fmprof, 1033 FM3Str,1034 (CHAR *) FM3Str, 1034 1035 "MLEExpandTabs", &vw->ExpandTabs, sizeof(INT)); 1035 1036 } … … 1143 1144 SetMLEFont(hwndMLE, &vw->fattrs, 0); 1144 1145 PrfWriteProfileData(fmprof, 1145 FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));1146 (CHAR *) FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS)); 1146 1147 break; 1147 1148 -
trunk/dll/viewinf.c
r1438 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 20 08Steven H.Levine9 Copyright (c) 2004, 2010 Steven H.Levine 10 10 11 11 01 Aug 04 SHL Rework lstrip/rstrip usage … … 21 21 08 Mar 09 GKY Additional strings move to PCSZs in init.c 22 22 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 23 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 23 24 24 25 ***********************************************************************/ … … 192 193 key = "HLPPaths"; 193 194 repeating = TRUE; 194 if (PrfQueryProfileSize(fmprof, FM3Str, key, &size) && size) {195 if (PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, key, &size) && size) { 195 196 holdenv = xmalloc(size + 2, pszSrcFile, __LINE__); 196 197 if (holdenv) { 197 if (!PrfQueryProfileData(fmprof, FM3Str, key, holdenv, &size)) {198 if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, holdenv, &size)) { 198 199 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 199 200 PCSZ_PRFQUERYPROFILEDATA); … … 265 266 (PVOID) FNT_10SYSTEMMONOTEXT); 266 267 } 267 WinSetWindowText(hwnd, GetPString(IDS_VIEWHELPFILESTEXT));268 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_VIEWHELPFILESTEXT)); 268 269 WinShowWindow(WinWindowFromID(hwnd, VINF_SRCH), FALSE); 269 270 WinShowWindow(WinWindowFromID(hwnd, VINF_FILTER), FALSE); … … 520 521 bstrip(szBuffer); 521 522 PrfWriteProfileData(fmprof, 522 FM3Str,523 (CHAR *) FM3Str, 523 524 key, 524 525 (*szBuffer) ? szBuffer : NULL, strlen(szBuffer)); -
trunk/dll/walkem.c
r1471 r1498 36 36 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 37 37 06 Oct 09 SHL Ctrl-select selects Walk Dialog listbox entry, but suppresses action 38 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 38 39 39 40 ***********************************************************************/ … … 128 129 MPFROMP(pld->path)); 129 130 } 130 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT));131 WinSetWindowText(hwndStatelist, (CHAR *) GetPString(IDS_STATETEXT)); 131 132 } 132 133 } … … 204 205 return; 205 206 206 if (!PrfQueryProfileSize(fmprof, FM3Str, pszLastSetups, &ulDataBytes)) {207 if (!PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, pszLastSetups, &ulDataBytes)) { 207 208 // fixme to use generic hab 208 209 ERRORID eid = WinGetLastError((HAB)0); 209 210 if ((eid & 0xffff) != PMERR_NOT_IN_IDX) { 210 211 // Get error info back 211 PrfQueryProfileSize(fmprof, FM3Str, pszLastSetups, &ulDataBytes);212 PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, pszLastSetups, &ulDataBytes); 212 213 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_PRFQUERYPROFILESIZE); 213 214 } … … 226 227 return; 227 228 l = ulDataBytes; 228 if (!PrfQueryProfileData(fmprof, FM3Str, pszLastSetups, pszBuf, &l)) {229 if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, pszLastSetups, pszBuf, &l)) { 229 230 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_PRFQUERYPROFILEDATA); 230 231 free(pszBuf); … … 321 322 322 323 if (!PrfWriteProfileData(fmprof, 323 FM3Str,324 (CHAR *) FM3Str, 324 325 pszLastSetups, pszBuf, ulBufBytes)) { 325 326 ERRORID eid = WinGetLastError((HAB)0); … … 329 330 330 331 // Delete obsolete INI entry 331 PrfWriteProfileData(fmprof, FM3Str, "LastSetup", NULL, 0);332 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "LastSetup", NULL, 0); 332 333 } 333 334 … … 777 778 ULONG size = sizeof(SWP); 778 779 779 PrfQueryProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp, &size);780 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "WalkDir.Position", (PVOID) &swp, &size); 780 781 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 781 782 WinSetWindowPos(hwnd, … … 900 901 } 901 902 WinSetDlgItemText(hwnd, WALK_RECENT, 902 GetPString(IDS_WALKRECENTDIRSTEXT));903 (CHAR *) GetPString(IDS_WALKRECENTDIRSTEXT)); 903 904 } 904 905 else if (!(ulDriveMap & (1 << (toupper(*info->path) - 'A')))) { … … 1006 1007 case WALK_PATH: 1007 1008 if (SHORT2FROMMP(mp1) == EN_SETFOCUS) 1008 WinSetDlgItemText(hwnd, WALK_HELP, GetPString(IDS_WALKCURRDIRTEXT));1009 WinSetDlgItemText(hwnd, WALK_HELP, (CHAR *) GetPString(IDS_WALKCURRDIRTEXT)); 1009 1010 else if (SHORT2FROMMP(mp1) == EN_KILLFOCUS) 1010 1011 WinSetDlgItemText(hwnd, WALK_HELP, 1011 GetPString(IDS_WALKDEFAULTHELPTEXT));1012 (CHAR *) GetPString(IDS_WALKDEFAULTHELPTEXT)); 1012 1013 break; 1013 1014 … … 1059 1060 else if (SHORT2FROMMP(mp1) == CBN_SHOWLIST) 1060 1061 WinSetDlgItemText(hwnd, WALK_HELP, 1061 GetPString(IDS_WALKRECENTDIRSHELPTEXT));1062 (CHAR *) GetPString(IDS_WALKRECENTDIRSHELPTEXT)); 1062 1063 break; 1063 1064 … … 1111 1112 else if (SHORT2FROMMP(mp1) == LN_SETFOCUS) 1112 1113 WinSetDlgItemText(hwnd, 1113 WALK_HELP, GetPString(IDS_WALKUSERDIRSHELPTEXT));1114 WALK_HELP, (CHAR *) GetPString(IDS_WALKUSERDIRSHELPTEXT)); 1114 1115 else if (SHORT2FROMMP(mp1) == LN_KILLFOCUS) 1115 1116 WinSetDlgItemText(hwnd, 1116 WALK_HELP, GetPString(IDS_WALKDEFAULTHELPTEXT));1117 WALK_HELP, (CHAR *) GetPString(IDS_WALKDEFAULTHELPTEXT)); 1117 1118 break; 1118 1119 … … 1136 1137 else if (SHORT2FROMMP(mp1) == LN_SETFOCUS) 1137 1138 WinSetDlgItemText(hwnd, WALK_HELP, 1138 GetPString(IDS_WALKDRIVELISTHELPTEXT));1139 (CHAR *) GetPString(IDS_WALKDRIVELISTHELPTEXT)); 1139 1140 else if (SHORT2FROMMP(mp1) == LN_KILLFOCUS) 1140 1141 WinSetDlgItemText(hwnd, WALK_HELP, 1141 GetPString(IDS_WALKDEFAULTHELPTEXT));1142 (CHAR *) GetPString(IDS_WALKDEFAULTHELPTEXT)); 1142 1143 break; 1143 1144 … … 1189 1190 else if (SHORT2FROMMP(mp1) == LN_SETFOCUS) 1190 1191 WinSetDlgItemText(hwnd, WALK_HELP, 1191 GetPString(IDS_WALKDIRLISTHELPTEXT));1192 (CHAR *) GetPString(IDS_WALKDIRLISTHELPTEXT)); 1192 1193 else if (SHORT2FROMMP(mp1) == LN_KILLFOCUS) 1193 1194 WinSetDlgItemText(hwnd, WALK_HELP, 1194 GetPString(IDS_WALKDEFAULTHELPTEXT));1195 (CHAR *) GetPString(IDS_WALKDEFAULTHELPTEXT)); 1195 1196 break; 1196 1197 } … … 1268 1269 ULONG size = sizeof(SWP); 1269 1270 WinQueryWindowPos(hwnd, &swp); 1270 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp,1271 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "WalkDir.Position", (PVOID) &swp, 1271 1272 size); 1272 1273 } … … 1289 1290 1290 1291 WinQueryWindowPos(hwnd, &swp); 1291 PrfWriteProfileData(fmprof, FM3Str, "WalkDir.Position", (PVOID) &swp,1292 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "WalkDir.Position", (PVOID) &swp, 1292 1293 size); 1293 1294 } … … 1319 1320 switch (msg) { 1320 1321 case WM_INITDLG: 1321 WinSetWindowText(hwnd, GetPString(IDS_WALKCOPYDLGTEXT));1322 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_WALKCOPYDLGTEXT)); 1322 1323 return WalkDlgProc(hwnd, UM_SETUP2, mp1, mp2); 1323 1324 } … … 1329 1330 switch (msg) { 1330 1331 case WM_INITDLG: 1331 WinSetWindowText(hwnd, GetPString(IDS_WALKMOVEDLGTEXT));1332 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_WALKMOVEDLGTEXT)); 1332 1333 return WalkDlgProc(hwnd, UM_SETUP2, mp1, mp2); 1333 1334 } … … 1340 1341 switch (msg) { 1341 1342 case WM_INITDLG: 1342 WinSetWindowText(hwnd, GetPString(IDS_WALKEXTRACTDLGTEXT));1343 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_WALKEXTRACTDLGTEXT)); 1343 1344 return WalkDlgProc(hwnd, UM_SETUP2, mp1, mp2); 1344 1345 } … … 1403 1404 ULONG size = sizeof(SWP); 1404 1405 1405 PrfQueryProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp, &size);1406 PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "WalkDir2.Position", (PVOID) &swp, &size); 1406 1407 swp.fl &= ~SWP_SIZE; // 04 Feb 09 SHL ignore saved size 1407 1408 WinSetWindowPos(hwnd, … … 1685 1686 1686 1687 WinQueryWindowPos(hwnd, &swp); 1687 PrfWriteProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp,1688 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "WalkDir2.Position", (PVOID) &swp, 1688 1689 size); 1689 1690 } … … 1704 1705 1705 1706 WinQueryWindowPos(hwnd, &swp); 1706 PrfWriteProfileData(fmprof, FM3Str, "WalkDir2.Position", (PVOID) &swp,1707 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "WalkDir2.Position", (PVOID) &swp, 1707 1708 size); 1708 1709 } … … 1723 1724 switch (msg) { 1724 1725 case WM_INITDLG: 1725 WinSetWindowText(hwnd, GetPString(IDS_WALKCOMPAREDLGTEXT));1726 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_WALKCOMPAREDLGTEXT)); 1726 1727 return WalkTwoDlgProc(hwnd, UM_SETUP2, mp1, mp2); 1727 1728 } … … 1734 1735 switch (msg) { 1735 1736 case WM_INITDLG: 1736 WinSetWindowText(hwnd, GetPString(IDS_WALKSETDIRSDLGTEXT));1737 WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_WALKSETDIRSDLGTEXT)); 1737 1738 return WalkTwoDlgProc(hwnd, UM_SETUP2, mp1, mp2); 1738 1739 } -
trunk/dll/worker.c
r1497 r1498 44 44 26 Jul 09 GKY Fix failure of containers to update when Tree container isn't open in FM2 lite 45 45 13 Dec 09 GKY Attempt to fix container update issues with FM/2 lite 46 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 46 47 47 48 ***********************************************************************/ … … 1156 1157 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 1157 1158 SEARCH_CUR_DIRECTORY, 1158 PCSZ_PATH,PCSZ_FM2PLAYEXE, (PBYTE)fbuf, CCHMAXPATH - 1))1159 (CHAR *) PCSZ_PATH, (CHAR *) PCSZ_FM2PLAYEXE, (PBYTE)fbuf, CCHMAXPATH - 1)) 1159 1160 total += MaxFM2playStrLen; 1160 1161 else … … 1205 1206 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 1206 1207 SEARCH_CUR_DIRECTORY, 1207 PCSZ_PATH,PCSZ_FM2PLAYEXE, (PBYTE)fbuf, CCHMAXPATH - 1))1208 (CHAR *) PCSZ_PATH, (CHAR *) PCSZ_FM2PLAYEXE, (PBYTE)fbuf, CCHMAXPATH - 1)) 1208 1209 strcpy(szBuffer, "UTILS\\FM2PLAY.EXE"); 1209 1210 else
Note:
See TracChangeset
for help on using the changeset viewer.