www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/13/18:31:22

From: alord AT tertio DOT co DOT uk (Andrew Lord)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Launching Windows progs from a C program (in a dos box)
Date: Fri, 13 Dec 1996 10:11:15 GMT
Lines: 33
Message-ID: <850471725.27501.0@firewall.tertio.co.uk>
References: <850235087 DOT 26429 DOT 0 AT firewall DOT tertio DOT co DOT uk> <58ma85$6v1$1 AT sydney DOT DIALix DOT oz DOT au> <slrn5b0o50 DOT vu DOT root AT tailor DOT aleim DOT net>
NNTP-Posting-Host: firewall.tertio.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

root AT tailor DOT aleim DOT net (root) wrote:

>On 11 Dec 1996 23:42:45 +1100, Jussi Jumppanen <jussi AT sydney DOT DIALix DOT oz DOT au> wrote:
>>Andrew Lord (alord AT tertio DOT co DOT uk) wrote:
>>> Pity me! I've just spent the last two days struggling with Turbo C++.

>Which is a pretty good compiler, unless they sent you a copy with bugs.

I was a bit unfair. It is DOS and Windows that is the problem.
Turbo C++ may be good but most PC comilers have to contend with the DOS memory
model stuff. (thats why I started using djgpp) When you've spent your life
programming machines using virtual memory models and pre-emptive multi-tasking
its just extra hassel to program DOS and Windows without getting caught up in so
many things that don't immediatly concern the problem you're trying to solve.

>Look, from a Dos program, you start a Windows program using

>	system("win yourprogram");

>That's all there is to it.

No it's not , perhaps you didn't understand me when I said "dos box". This may
work under WIN95 (I'm not sure) but certainly not under WIN3. By "Launching
Windows progs from a C program (in a dos box)" I mean running a windows program
from within an emulated dos session that is already running under windows. 

But this is all academic now because I stuck with turbo C and wrote a "proper"
Windows program.

Thanks for replying.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019