Re: How To Determine if EXE is Windows 32-bit console application



On Jul 7, 9:29 am, Luchezar Georgiev <lu...@xxxxxxxxx> wrote:
Hello,

Is there a program that I can run in 4DOS that will tell me whether
the .EXE is a 16-bit DOS program, or a Windows 32-bit console
application?

Take Command has the @EXETYPE function, which returns 1 for a DOS app,
and 7 for a Win 32 Console app.

Something like this for 4DOS is what I am looking for.

4DOS can run only DOS programmes, and doesn't know what DOS extender is
installed and hence what other programme types can be run. To determine
the file type in general I use FILE - an old port of it is available atftp://ftp.delorie.com/pub/djgpp/current/v2gnu/fil41b.zipbut I've built
a newer version from source. The return code from FILE can't be used to
test the file type, but a string can be got with @EXESTR[FILE NAM.EXT].
It can recognise many file types and "tell" some details about the file

Regards,
Lucho

When I run a Windows 32-bit console application in plain ol' 4DOS, it
says "This program cannot be run in DOS mode". When I have the TSR
HXLDR32 loaded in plain ol' 4DOS, which is the HX DOS Extender, the
Windows 32-bit console applications run with no problem.

Using the PC Magazine RECORDER.COM utility, it shows that the
MSVCRT.DLL was loaded into memory when executing one of my Win 32-bit
Console Applications. When I run a Delphi 2.0 Console Application,
several other .DLL's are also loaded into memory.

Using MEM, the largest amount of DOS memory that I have free is 605K,
with 29,335K free Extended Memory.

Considering that the HXLDR32 TSR only takes 688 bytes of conventional
memory, and allows me to run the Win 32-bit console applications that
I have developed using Delphi 2.0 and FreeBASIC, as well as other
freeware Win 32-bit console applications, to me it's a better windows
than windows.

The video card I have to use is a S3 Trio 32/64 PCI with 8 MB Video
RAM, which does not allow VESA modes. If it did, I could even run
limited Windows GUI applications (SDI) in 4DOS, using the HX DOS
Extender.

Joe
.



Relevant Pages

  • Re: Guru help needed: How to do sockets in DOS
    ... "In earlier versions of Windows, there were no native support for consoles. ... "Since the release of Windows NT, Microsoft has included support for console ... could not be run under plain DOS as they contained the DOS ... uses several libraries that weren't brought over into the 32-bit world, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Terminal server client and old dos programs
    ... At the console it works in windowed and in full mode, ... The program dos not reference to any ini file on the client side. ... Since DOS doesn't see Windows Printers, ...
    (microsoft.public.windows.terminal_services)
  • Re: Detect mouse click and coordinates (C++)
    ... Early Windows was run from DOS. ... My understanding was that Windows now simulates DOS (console) for backward ... "Ron Francis" wrote: ...
    (microsoft.public.win32.programmer.ui)
  • Re: Guru help needed: How to do sockets in DOS
    ... of dos applications itself, to stand correctly DPMI (dos protected mode ... details as I wasn't yet a serious Windows programmer in those ... To simplify the task of porting applications to Windows, ... a library that implemented basic console ...
    (microsoft.public.win32.programmer.networks)
  • Re: Print to file from DOS program in Windows
    ... >I have heard a few people mention inability to print or copy from DOS ... >windows in XP so have the following suggestion for copying (from my NSW BDM ... >If the DOS program is running in a window and not full screen you can press ... Do you have any hints on how to past TO a DOS progtram running under Windows ...
    (soc.genealogy.computing)