Changeset 249 in Main for trunk


Ignore:
Timestamp:
Oct 4, 2024, 5:59:55 AM (6 weeks ago)
Author:
Nishi
Message:

fix vc6

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Platform/vc6.mk

    r244 r249  
    1414LIBSUF = .dll
    1515OBJ = obj
    16 PREOBJS = tewi_vc6.res gui_vc6.res
     16PREOBJS = vc6.res
  • trunk/Server/Makefile

    r244 r249  
    4949        $(WINDRES) tewi.rc -O coff -o $@
    5050
    51 tewi_vc6.res: tewi.rc ../Binary/tewi.ico
    52         rc /fo$@ tewi.rc
    53 
    5451tewi_bcc.res: tewi.rc ../Binary/tewi.ico
    5552        brc32 -r -fo$@ tewi.rc
     
    5855        $(WINDRES) gui.rc -O coff -o $@
    5956
    60 gui_vc6.res: gui.rc gui.h
    61         rc /fo$@ gui.rc
    62 
    6357gui_bcc.res: gui.rc gui.h
    6458        brc32 -r -fo$@ gui.rc
    6559
     60vc6.res: tewi.rc gui.rc
     61        cat tewi.rc gui.rc > concat.rc
     62        rc /fo$@ concat.rc
     63        rm -f concat.rc
     64
    6665clean:
    67         rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj
     66        rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj concat.rc
  • trunk/Server/gui.c

    r244 r249  
    6060                ShowBitmapSize(hWnd, hdc, "TEWILOGO", size.left, size.top, WINWIDTH(size), WINWIDTH(size));
    6161                EndPaint(hWnd, &ps);
     62        }else if(msg == WM_CTLCOLORDLG || msg == WM_CTLCOLORSTATIC){
     63                HDC dc = (HDC)wp;
     64                SetBkMode(dc, TRANSPARENT);
     65                return GetSysColorBrush(COLOR_MENU);
    6266        }else{
    6367                return FALSE;
     
    8084                if(trig == GUI_BUTTON_ABOUT){
    8185                        if(ev == BN_CLICKED){
    82                                 DialogBox(hInst, "VERSIONDLG", hWnd, VersionDialog);
     86                                DialogBox(hInst, "VERSIONDLG", hWnd, (DLGPROC)VersionDialog);
    8387                        }
    8488                }else if(trig == GUI_BUTTON_START){
  • trunk/Server/gui.rc

    r244 r249  
    55#include "tw_version.h"
    66
    7 PBTEWI BITMAP "../Binary/pbtewi.bmp"
     7PBTEWI BITMAP "..\\Binary\\pbtewi.bmp"
    88TEWILOGO BITMAP "../Binary/tewi.bmp"
    99
     
    1212CAPTION "Version Information"
    1313{
    14         LTEXT "Tewi HTTPd version " TW_VERSION, GUI_TEWI_NAME, 42, 5, 192, 50
     14        LTEXT TW_VERSION_TEXT, GUI_TEWI_NAME, 42, 5, 192, 50
    1515        LTEXT "Original by Nishi <nishi@nishi.boats>", GUI_TEWI_ORIGINAL, 42, 5 + 8, 192, 50
    16         LTEXT "Compilation date: " __DATE__ " " __TIME__, GUI_TEWI_DATE, 42, 5 + 8 + 8, 192, 50
    1716        DEFPUSHBUTTON "&OK", IDOK, 75, 35, 50, 10
    1817}
  • trunk/Server/main.c

    r244 r249  
    88
    99#pragma resource "tewi_bcc.res"
     10
    1011#pragma resource "gui_bcc.res"
    1112
  • trunk/Server/tw_version.h

    r209 r249  
    99
    1010#define TW_VERSION "2.03D\0"
     11#define TW_VERSION_TEXT "Tewi HTTPd version 2.03D"
    1112
    1213const char* tw_get_version(void);
  • trunk/Tool/option.c

    r244 r249  
    5454#ifdef BUILD_GUI
    5555                        printf(" -lcomctl32");
     56                        printf(" -luser32");
    5657#endif
    5758                }else if(strcmp(argv[3], "WINDOWS_WATCOM") == 0){
     
    6364#ifdef BUILD_GUI
    6465                        printf(" comctl32.lib");
     66                        printf(" user32.lib");
    6567#endif
    6668                }
  • trunk/bcc.sh

    r240 r249  
    2929                options="$options -tWD"
    3030                shared=1
     31        elif [ "$i" = "-mwindows" ]; then
     32                options="$options -tW"
    3133        elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
    3234                options="$options -`echo "$i" | sed "s/^-//g"`"
    3335        elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
    34                 if [ ! "$i" = "-lwsock32" ]; then
     36                if [ ! "$i" = "-lwsock32" -a ! "$i" = "-luser32" -a ! "$i" = "-lcomctl32" ]; then
    3537                        libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
    3638                fi
  • trunk/vc6.sh

    r222 r249  
    77options="/I../VC6Compat"
    88obj=0
     9win=0
    910source=""
    1011libraries=""
     
    2728        elif [ "$i" = "-shared" ]; then
    2829                options="$options /LD"
     30        elif [ "$i" = "-mwindows" ]; then
     31                win=1
    2932        elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
    3033                options="$options /`echo "$i" | sed "s/^-//g"`"
    3134        elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
     35                if [ "$i" = "-luser32" ]; then
     36                        libraries="$libraries gdi32.lib"
     37                fi
    3238                libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
    3339        elif [ "$dowhat" = "output" ]; then
     
    4955        link="/link /nodefaultlib:libc $libraries"
    5056fi
     57if [ "$obj" = "0" ]; then
     58        if [ "$win" = "1" ]; then
     59                link="$link /SUBSYSTEM:windows"
     60        fi
     61fi
    5162construct="cl /nologo $options $source $link"
    5263echo "Run: $construct"
Note: See TracChangeset for help on using the changeset viewer.