VOGONS


PowerC

Topic actions

First post, by artooksanen

User metadata
Rank Newbie
Rank
Newbie

I am working on an old (1999) DOS project written in PowerC. The exe program is running just nice in DOSBox and also PowerC. I have all the source code except one file and I can not remember if it was part of PowerC or if I got it from somewhere else.

The missing file is cwindows.h and possibly it needs some library file too.

It enables screen functions like these:

clear_box(3,8,59,8,lwhite,blue,' ');
tprintf(1,22,white,blue,"%3d",m);
set_cursor_size(0,0);

I think this has been on the c:\powerc and not on my project folder that I have backed up.

Do you know where I can find this file? Google did not find it.

arto

Reply 1 of 4, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Hi, it's not part of my copy of Power C 1.1.6. 🙁

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 2 of 4, by kokerich

User metadata
Rank Newbie
Rank
Newbie

Power C 2.2.0 also doesn't contain cwindows.h. It's probably added third party library of some kind. I guess the project uses text mode so with functions mentioned above it is easier to manipulate the screen.

Reply 3 of 4, by uridium

User metadata
Rank Newbie
Rank
Newbie

That one's from Microsoft's Char Windows lib. I think MASM had it? Not sure where i've encountered it but it was at least 25 years ago on a legacy project. I'll need to google and search my things.

Reply 4 of 4, by artooksanen

User metadata
Rank Newbie
Rank
Newbie

I have made my own library for the functions I had used from the cwindows.h so this is not urgent any more. But if someone locates the file I could still use it. It could have been from MASM as there is one assembly source in the project. I cant remember which ASM compiler I used.

Thank you for all messages!

arto