Solved

DOS4GW with Watcom V11.0 compiler

Posted on 1997-06-22
2
445 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
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
stack 22 166
In C, why can't I shift a 64-bit integer more than 32 bits? 13 224
negation in C function 14 155
How to learn Linux? 10 61
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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 reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

832 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