Solved

DOS4GW with Watcom V11.0 compiler

Posted on 1997-06-22
2
452 Views
Last Modified: 2012-08-13
Just wanted some info about the .exe file that is created when you use the 32bit DOS4GW option with Watcom V11.0.

I gather that once the application is compiled and linked, you must supply the dos4gw.exe along with the built app. exe. true?

To run the application what is the syntax?
On my machine (one which has watcom on it) I only have to type the name of the exe file to run the app. However, on my friends machine I need the dos4gw.exe file AND I have to run the program using this syntax: dos4gw filename.exe.

Why don't I have to do this on my machine?

I'd prefer to just run the filename by itself. Can this be done?

Instead, I have had to resort to using a batch file to get around this problem. ie

myprog.bat
dos4gw filename.exe %1

Any comments ??
0
Comment
Question by:elford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
navigator010897 earned 50 total points
ID: 1251582
>I gather that once the application is compiled and linked, you
>must supply the dos4gw.exe along with the built app. exe. true?

True - you must supply Dos4GW along with your app.

>To run the application what is the syntax?

Assuming everything was compiled correctly, all you have to do is make sure that DOS4GW is in the same directory as the program and you should be able to just type:

Filename.exe

It should automatically launch Dos4GW to execute.


>Why don't I have to do this on my machine?

My only guess is why it is working properly on your machine is that the DOS4GW is in the Watcom directory that is in your Autoexec.bat PATH statement.  

But assuming you have the dos4GW in the same directory as the executable file, you should have no problems - this is how I always run my dos 4gw executables.

My only thought as to why this isn't being done right is that 1) the program can't find the DOS4GW file - which could only be it not being in the same directory as the program and 2) somehow you have reset some setting in the compiler linker settings that is for some reason making you run the program as a command line option to DOS4GW.

I have to tell you - that seems to be an odd problem.  I have written DOS4GW apps - and have tested it on several computers - on the ones that I forgot to include the dos4GW exe file, it gave me an error, when I copied the file into where the program was, it ran with no problems.

0
 
LVL 1

Expert Comment

by:navigator010897
ID: 1251583
PS: There is one other thing it could be - it could be a bug in v11 of Watcom, or the makers of DOS4GW changed their standard.  I use Watcom 10.6 - and have 11, but have been a bit nervous about upgrading, unsure if it was really a "good" upgrade.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question