
    Hi!
    
    Do you know size stub of DOS/4[G[W]] program ? It's about 9-12Kb !
Size of DOS extender's PMODE/W & WDOSX only 11 Kb ! What stub is too big ?
I write DOS/4GW stub on Assembler and :

    - Size .C-- version 4GS.EXE = 368/400 bytes;
    - Two version, hide or not DOS4G banner;
    - Find next files : DOS4G.EXE, DOS4GW.EXE, 4GWPRO.EXE ¨ DOS32A.EXE;
    - Find in next order :
        = in current directory;
        = in directory, what store in environ var DOS4GPATH;
        = in directory, what store in environ var 4GPATH;
        = in dirs, what store in environ var PATH;
        = else - error message;
    - LFN no release;
    - Error messages :
        = '386+ need'          - CPU 386+ need;
        = 'DOS 3.0+ need'     - DOS version need 3.0+;
        = 'CmdLine too long'   - Length of command line must < 127;
        = 'DOSX no found'      - Not found any DOS extenders.

    How bind this stub ? Simple :
        WLINK system dos4g op stub=4gs.exe file a.obj
    or
        WCL386 /"op stub=4gs.exe" a.cpp

    Correct errors :
    - run from some program in PSP:[81h] store not SPACE, check this;
    - DOS4GW is fail, where length of command line > 126, correct.

    e-mail jk@zi3.cyb.univ.kiev.ua         
    FidoNet 2:463/59.29, 2:463/218.12
            2:463/231.12, 2:463/140.12            Kirill Joss
