Tc compiled DOS and vc compiled win32 console program similarities and differences

  • 2020-04-01 21:27:18
  • OfStack

They the distinction that having essence: 1: one is 16 DOS programs, one is the standard 32 Windows applications. The former is still be bound by a 64 KB memory block, which is free to use the 4 gb of memory address space. They are running on different operating systems. Don't confuse them. DOS programs can run on Windows because a NTVDM. And you put the console program generated VC in DOS will only get! ? This  Program  Cannot  Be  Run  In  DOS  Mode.2: if you're writing in a standard library, the code shouldn't be that different. API. 3: TC programming is really can call interrupt inside, but this interrupt is not direct execution. Is NTVDM. In a world of NT. Ring3 is unlikely to direct call interrupted. 4: VC6 (early version don't know) cannot write DOS program, can only write the console program, note that this is just the Win32 program using only the console the standard input and output. The console program still can pop up a window, also can have a message loop, a console window procedure can.  


Related articles: