Ignore:
Timestamp:
2000-06-12T14:49:06+12:00 (24 years ago)
Author:
sjboddie
Message:

Made a few minor changes to get the local library compiling under VC++ 6.0
using the built-in STL (i.e. without the GSDL_USE_IOS_H pre-processor
definition set).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/fnord.cpp

    r1156 r1203  
    1818The author can be contacted via Email at [email protected]
    1919*/
     20#include "text_t.h"
    2021#include <windows.h>
    2122#include <stdlib.h>
     
    165166  if (coltitledc == NULL) {
    166167    coltitledc = CreateCompatibleDC(pdc);
    167     defcoltitlebitmap = SelectObject (coltitledc, coltitlebitmap);
     168    defcoltitlebitmap = (HBITMAP)SelectObject (coltitledc, coltitlebitmap);
    168169  }
    169170 
    170171  if (logodc == NULL) {
    171172    logodc = CreateCompatibleDC(pdc);
    172     deflogobitmap = SelectObject (logodc, logobitmap);
     173    deflogobitmap = (HBITMAP)SelectObject (logodc, logobitmap);
    173174  }
    174175 
     
    219220      statusRect.right = STATUSX+STATUSWIDTH;
    220221      statusRect.bottom = STATUSY+STATUSHEIGHT;
    221       FillRect(pdc, &statusRect, GetStockObject(WHITE_BRUSH));
     222      FillRect(pdc, &statusRect, (HBRUSH)GetStockObject(WHITE_BRUSH));
    222223     
    223224      int cury = STATUSY;
     
    259260    infoRect.right = INFOX+INFOWIDTH;
    260261    infoRect.bottom = INFOY+INFOHEIGHT;
    261     FillRect(pdc, &infoRect, GetStockObject(WHITE_BRUSH));
     262    FillRect(pdc, &infoRect, (HBRUSH)GetStockObject(WHITE_BRUSH));
    262263    DrawText(pdc, infostring, -1, &infoRect, DT_CENTER);
    263264  }
     
    558559    // finally, get the host name (no error value
    559560    // is returned from this function)
    560     GetLocalName(Instance);
     561    GetLocalName((HINSTANCE)Instance);
    561562   
    562563      } else {
     
    596597  startbrowserdir[0] = '\0';
    597598  netscapeneeded = 0;
    598   int err = tryinitnetwork (Instance, MsgWindow, NULL);
    599   //int err = 1;
     599  //  int err = tryinitnetwork (Instance, MsgWindow, NULL);
     600  int err = 1;
    600601 
    601602  // if an error occurred, try again with billsock
     
    802803
    803804
    804 int __stdcall WinMain(HANDLE Instance, HANDLE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {
     805int __stdcall WinMain(HINSTANCE Instance, HINSTANCE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {
    805806  HWND MainWindow;  MSG Message;  WNDCLASS MainClass; 
    806807 
     
    813814  MainClass.hIcon     = LoadIcon(Instance, MAKEINTRESOURCE(TRAY_ICON));
    814815  MainClass.hCursor   = LoadCursor(NULL, IDC_ARROW);
    815   MainClass.hbrBackground = GetStockObject(WHITE_BRUSH);
     816  MainClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
    816817  MainClass.lpszMenuName = MAKEINTRESOURCE(Main_Menu);
    817818  MainClass.lpszClassName = "Greenstone Digital Library Software";
Note: See TracChangeset for help on using the changeset viewer.