| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Windoze and DOS |
So to david begley do I speak these words: Monday October 04 1993 12:45, david begley wrote to Steven Pasztor: db> On Sep 30 20:07, Steven Pasztor of 3:632/103.123 wrote: SP>> I've got BORLAND C++ v2.0 and was wondering if it's possible to write SP>> a program which will work under either Windoze or DOS... db> To create a binary (.EXE) that will run under both DOS and Windows, all db> you need do is replace the standard "stub" programme with a full DOS db> version of the application. Effectively: db> Normal Windows Linkage New Windows Linkage db> +-+--+--+--+--+ +-+--+--+--+--+ db> | EXE Header | | EXE Header | db> +-+--+--+--+--+ +-+--+--+--+--+ db> | STUB.EXE | | DOS App | db> +-+--+--+--+--+ +-+--+--+--+--+ db> | Windows App | | Windows App | db> +-+--+--+--+--+ +-+--+--+--+--+ db> Then, when you run the EXE under DOS, "DOS App" will run, whilst if you db> run the EXE under Windows, "Windows App" will run. How do you achieve db> this? Lookup the "STUB" keyword for your Windows application's DEF db> (linkage definition) file. I assume though, that you still require two seperate programs? The idea was to share as much code as possible. nevets ... and never, ever cut a deal with a dragon --- FMail 0.94* Origin: HELP!!! (3:632/103.123) SEEN-BY: 50/99 54/54 99 620/243 622/405 623/630 632/103 301 348 365 386 998 SEEN-BY: 633/371 634/383 384 635/502 503 544 555 570 636/100 670/206 711/401 SEEN-BY: 711/409 430 807 808 809 932 934 712/623 627 713/888 714/906 800/1 @PATH: 632/103 348 635/503 50/99 54/54 99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.