VOGONS


Microcode Studio

Topic actions

First post, by RC_TORONTO

User metadata
Rank Newbie
Rank
Newbie

Hey all. been trying to get MicroCode Studio to work using Wine and DosBox. It is a Basic compiler for PIC Microcontrollers. Everything works great - except the compile command. Basically the app calls a 'run.bat' file which loads the PBPW.EXE (a windows console program) Wine borks, as winevdm does not handle bat files, and so I have installed Dosbox, which opens momentarily when I run the compile command in MicroCode Studio but then closes immediately - and my app gets an "out of memory" error.

I've run MCS from the command line to see the background output, and it appears DosBox is not using the config files (not the one in it's .dosbox directory, nor the dosbox.conf, nor the .dosboxrc's I've tried installing everywhere trying to figure out how to get it not using the TMP config file that wine insists on using) Anyone have any suggestion about what may be wrong, or how I can at least get wine to use the static dosbox configuration file when opening dos or bat files from within an windows application? THX

Reply 1 of 4, by RC_TORONTO

User metadata
Rank Newbie
Rank
Newbie

Forgot to mention it's wine-1.3.28 and dosbox 0.74, Microcode studio 4.0.0.0

Reply 2 of 4, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

As per the README, you can specify a particular dosbox.conf when launching DOSBox by using the "-conf" switch. However:

RC_TORONTO wrote:

Basically the app calls a 'run.bat' file which loads the PBPW.EXE (a windows console program) Wine borks, as winevdm does not handle bat files, and so I have installed Dosbox, which opens momentarily when I run the compile command in MicroCode Studio but then closes immediately - and my app gets an "out of memory" error.

This makes no sense. DOSBox cannot run windows console programs, even if they're called from a .bat file.

Reply 3 of 4, by RC_TORONTO

User metadata
Rank Newbie
Rank
Newbie

Read the post - the app launches dosbox because its trying to load a bat file - my question is how to tell dosbox to use a conf file instead of it using the temp one created by wine

Reply 4 of 4, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

If Wine is launching DOSBox (as per http://www.dosbox.com/wiki/Dosbox.conf#Wine ?), then this seems to be a problem to take up with the Wine developers.

A bit more digging suggests you ought to be able to run .bat files using wineconsole , but I do not know how you would make a .bat file run in wineconsole instead of DOSBox. Perhaps Wine has some sort of internal list of file-associations that can be changed appropriately.

Someone had the same question last year at http://forum.winehq.org/viewtopic.php?f=8&t=17331 , but apparently got no response.