VOGONS


First post, by severt

User metadata
Rank Newbie
Rank
Newbie

Hi,

I have an old DOS program that we use on a farm that is perfectly running with DosBox if we start it standalone.
However, we have a Windows application that triggers this DOS application by trying to launch the DOS application instantly from within this Windows application.
I've configured the Windows application to start DosBox and then automatically the DOS application, but this doesn't work.
Is there anything I can do?

Thanks,
Dennis

Reply 1 of 4, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
severt wrote:

this doesn't work.
Is there anything I can do?

That is very difficult to say unless you provide more details about what specifically "doesn't work".

If you want a program to start automatically when you launch DOSBox, then you either need to use the "-c" parameter in whatever shortcut you are using to launch DOSBox, or edit the [autoexec] section of DOSBox.conf.

If this DOS program is specifically designed to interact with Windows somehow, then it's not really a DOS program and DOSBox will not help you.

In any case, the use of DOSBox for non-gaming applications is discouraged.

Reply 2 of 4, by severt

User metadata
Rank Newbie
Rank
Newbie

The Windows application needs to get data from that DOS application.
But I believe this is not going to work since the DOS application run in it's own environment (virtual).

Reply 3 of 4, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

I think you answered your own question.
DosBox is not recommended for anything other than games, in any case, if you have the source for your app. Why not compile it as a 32 bit Windows executable.

Reply 4 of 4, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
severt wrote:

But I believe this is not going to work

If the Windows application is somehow directly accessing the memory of the open DOS application, then that would be an exceptionally strange thing for a Windows application to do. If it is merely accessing a file that the DOS application creates on the hard drive then that is probably quite trivial to work around.

Unless you provide more details about what is actually happening (and not what you "believe") it will be very difficult to help you.