VOGONS


TC++ in DOSBox

Topic actions

First post, by sbcontt

User metadata
Rank Newbie
Rank
Newbie

This is driving me mad.
I want Right ALt+F9, Right CTRL+F9, Right CTRL+Pause/Break to work in my DOSBox TC++ 3.0 setup (I need graphics.h).
But there is no key combo changer in the DOSBox in-built key mapper. I tried making a mapper.txt but there is neither any documentation of key codes that DOSBox use (they are not IBM DOS 4.0 codes or scan codes) nor any syntax to map combos TO combos.
Any help will be appreciated.
Also, a default mapper.txt should have been provided. typing all those lines manually just to change 3 combos 😵

Reply 1 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

you can simply delete the key combo bound the special events. although ctrl-break will not work anyway.
if you click save in the keymapper, then you get your default mapper.txt.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 4, by batracio

User metadata
Rank Member
Rank
Member

WinBGIm provides compatibility for Borland's graphics.h with many modern C++ compilers. You don't need TC++ 3.0 anymore.

Reply 3 of 4, by sbcontt

User metadata
Rank Newbie
Rank
Newbie

Batracio thank you very much. I'll try that.
COMPILE and RUN are available from menu but ctrl+break is most important because I do not know any other way to get out of a running infinite loop. Clearly, to set up a whole VM to run BGI seems silly. Your solution seems best.

Well, WinBGIm turned out to be more pain than pleasure. The new version of Dev C++ won't accept #include<graphics.h> no matter what and even the old versions display graphics and console in separate windows. We use printf scanf here. I was supposed to check some graphics programs coded by some students for errors and would never have accepted the task if I knew that DOSBox would betray.
VirtualBox.
By the way, we need more emoticons in this forum, specially rage face emoticons.