• C

DOS4GW with Watcom V11.0 compiler

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 ??
elfordAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

navigator010897Commented:
>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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
navigator010897Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.