?
Solved

DOS4GW with Watcom V11.0 compiler

Posted on 1997-06-22
2
Medium Priority
?
471 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
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
navigator010897 earned 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses

831 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