Changeset 5979 for trunk/src


Ignore:
Timestamp:
Jun 13, 2001, 4:54:58 AM (24 years ago)
Author:
bird
Message:

It now COMPILES with msc60, but can't link it due to missing library files...

Location:
trunk/src/win16ldr
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win16ldr/odin.c

    r5954 r5979  
     1#ifndef MSC6
    12#include <windows.h>
     3#else
     4#include "msc60win.h"
     5#endif
    26#include <stdlib.h>
    37#include <string.h>
     
    1620
    1721
    18 //*****************************************************************************************           
    19 //*****************************************************************************************           
     22//*****************************************************************************************
     23//*****************************************************************************************
    2024int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    2125{
    2226    MSG msg;
    23    
    24     if (!hPrevInstance)                       
     27
     28    if (!hPrevInstance)
    2529        if (!InitApplication(hInstance))
    2630            return (FALSE);
     
    3438
    3539        if(hModule >= 32) {
    36         while (GetMessage(&msg, NULL, NULL, NULL)) 
     40        while (GetMessage(&msg, NULL, NULL, NULL))
    3741        {
    3842                TranslateMessage(&msg);
    3943                DispatchMessage(&msg);
    40         }         
     44        }
    4145        }
    4246        else {
     
    4751                DestroyWindow(hwnd);
    4852        }
    49                    
     53               
    5054        FreeLibrary(hDll);
    5155    return (msg.wParam);
    52 }                 
    53 //*****************************************************************************************           
    54 //*****************************************************************************************           
     56}
     57//*****************************************************************************************
     58//*****************************************************************************************
    5559BOOL InitApplication(HANDLE hInstance)
    56 {                                 
     60{
    5761        WNDCLASS wc;
    5862       
     
    6367       
    6468    wc.style = NULL;
    65     wc.lpfnWndProc = MainWndProc;     
     69    wc.lpfnWndProc = MainWndProc;
    6670    wc.cbClsExtra = 0;
    6771    wc.cbWndExtra = 0;
     
    7579    return (RegisterClass(&wc));
    7680}
    77 //*****************************************************************************************           
    78 //*****************************************************************************************           
     81//*****************************************************************************************
     82//*****************************************************************************************
    7983BOOL InitInstance(HANDLE hInstance, int nCmdShow)
    8084{
     
    97101    if (!hwnd)
    98102        return (FALSE);
    99        
     103
    100104    return (TRUE);
    101105
    102106}
    103 //*****************************************************************************************           
    104 //*****************************************************************************************           
     107//*****************************************************************************************
     108//*****************************************************************************************
    105109long FAR PASCAL __export MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
    106 {           
     110{
    107111        char modname[256];
    108112       
     
    128132    return (NULL);
    129133}
    130 //*****************************************************************************************           
    131 //*****************************************************************************************           
     134//*****************************************************************************************
     135//*****************************************************************************************
  • trunk/src/win16ldr/odindll.c

    r5978 r5979  
     1#ifndef MSC6
    12#include <windows.h>
     3#else
     4#include "msc60win.h"
     5#endif
    26#include <string.h>
    37#include "peexe.h"
     
    913BOOL GetPEOptionalHeader (LPVOID lpFile, PIMAGE_OPTIONAL_HEADER pHeader);
    1014
    11 #ifdef __WATCOMC__
     15#if defined(__WATCOMC__)
    1216typedef DWORD (FAR * WINAPI * FUNC_GetVersion)(void);
    1317typedef UINT  (FAR * WINAPI * FUNC_WinExec)(LPCSTR, UINT);
Note: See TracChangeset for help on using the changeset viewer.