Solved

DOS4GW with Watcom V11.0 compiler

Posted on 1997-06-22
2
443 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 50 total points
Comment Utility
>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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now