Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

For Rayer - shared resources between DOS and WinXP (Announce)

posted by Rugxulo Homepage, Usono, 17.07.2008, 14:35

> > A 32bit C compiler "should" always extend arguments with a magnitude <
> 32
> > bit (char, short, word, ...) to a dword, so this is no problem at all.
>
> Yes but there's "should" not "is" or "must". Important is how the
> ntvdm.exe is compiled. I expect they used MSVC which should use 32bit
> int.

FYI:

// says "4" for either C or C++ (using DJGPP's GCC 4.2.3)

#include <stdio.h>

enum me { NO,YES } whatever;

int main()
{
  printf("\nsizeof(enum) = %d\n",sizeof(whatever));

  return 0;
}

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 465 users online (0 registered, 465 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum