question about including/linking (DOSX)
> My starting point is: I`ve compiled some win32 console applications on
> WinXP with Visual Studio.
Good start 
> goal #1: On WinXP I want now to compile a 16 bit real mode executable for
> DOS. The exe should become at best a standalone exe. Working without
> himem/emm386/jemmex (and use only conventional memory).
> Is goal #1 feasible with HX?
NO. As already suggested, use WATCOM: Win32 host, DOS16RM target. But compiling DOS stuff on DOS is better 
VCC will NOT produce 16-bit code (except some 20 years old versions maybe) ... 32 bit at best (the future has 64 or 128 bits
)
> goal #2: On WinXP I want now to compile a 32 bit protected mode executable
> for DOS. The exe should become at best a standalone exe.
Then use DPMI and include HDPMI32 / LOADPEX, no need to care about HIMEM/JAM 
> In case #1/#2 what files do I need to include or link?
If you use a formally Win32 compiler, you have to link in the static Win32 emulation stuff from HX. This will bloat the executable (big problem, but DGJPP is even worse here).
FloX wrote:
> MR...why do you want to compile 16-bit programs? Wouldn't 32-bit DOS programs also ok?
16-bit is good if code fits into 64 KiB and totally hogs cca 480 KiB at most ... using 8086 instructions only.
If you need more, it's indeed better to design a fully 32-bit application, rather than pick a fight with XMS/EMS/MZ-Overliars/... that can't be really won, as 20 years of experience have shown 
---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***
Complete thread:
- question about including/linking - mr, 20.05.2008, 14:44
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- question about including/linking - rr, 20.05.2008, 15:08
- question about including/linking - mr, 20.05.2008, 15:17
- question about including/linking - rr, 20.05.2008, 16:03
- question about including/linking - Rugxulo, 20.05.2008, 21:42
- question about including/linking - rr, 20.05.2008, 22:09
- question about including/linking - marcov, 20.05.2008, 22:00
- question about including/linking - Rugxulo, 20.05.2008, 21:42
- question about including/linking - flox, 20.05.2008, 16:34
- question about including/linking - mr, 21.05.2008, 13:29
- question about including/linking - rr, 20.05.2008, 16:03
- question about including/linking - mr, 20.05.2008, 15:17
- question about including/linking - Japheth, 20.05.2008, 15:32
- question about including/linking - Khusraw, 21.05.2008, 07:30
- question about including/linking - mr, 21.05.2008, 13:32
- question about including/linking - Khusraw, 21.05.2008, 16:15
- question about including/linking - Rugxulo, 27.05.2008, 03:49
- question about including/linking - Khusraw, 21.05.2008, 16:15
- question about including/linking - mr, 21.05.2008, 13:32
- question about including/linking - DOS386, 31.05.2008, 02:21
- question about including/linking - rr, 20.05.2008, 15:08
Mix view