Computing.Net > Forums > Programming > C program developed on visual C++, Versi

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C program developed on visual C++, Versi

Reply to Message Icon

Name: ken winer
Date: March 11, 2002 at 04:32:00 Pacific
Comment:

I have developed a C program using Microsoft Visual C++,Version 1, which, when run provides a variety of screen messages of different background and foreground colours. The EXE file is defined to be MSDOS, so it should run on a variety of platforms.

And so it does. The program runs on old MSDOS versions and Windows versions up to ME 2000.

However, I have two problems:-
1) When run from MSDOS command prompt (under Windows ME 2000), the program seems to eneter a peculiar mode in which the colouring is all wrong and the programmed highlighting cursor control lost.

2) When run from the START / RUN buttons, the displays starts full screen, then reduces to being confined to a window, then back to full screen, then windowed again. The effect is disconcerting,especially since expanding the confining window does not stop the next window confinement from occuring at the smaller size.

Is anything wrong or is this simply a consequence of using an ancient version of Visual C++ ??

I would appreciate any comments on the matter

Ken



Sponsored Link
Ads by Google

Response Number 1
Name: Apple
Date: March 12, 2002 at 09:06:18 Pacific
Reply:

It sounds like Windows got freaked out by a DOS program. Happens all the time, but not always to this extent. Try play scorched earth 1.5. Windows complains every time you start it.

If you want this program to work correctly in windows, you need to run it full screen. In a window, the character graphics become real graphics and windows does not retain the color or the cursor.

BTW, this program only runs on DOS platforms. Windows ME still a DOS platform (DOS 7) so it can run the program. Win2k and WinXP use the same executable formats so there usually isn't a problem there. If you try to directly access hardware or memory in Xp/2k, though you'll have problems. Try the same code on linux and you'll get compiler errors.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C program developed on visual C++, Versi

Visual c++ 4.1 www.computing.net/answers/programming/visual-c-41/6049.html

My programs wont run on friend's PC www.computing.net/answers/programming/my-programs-wont-run-on-friends-pc/11225.html

Please help C++ Functions www.computing.net/answers/programming/please-help-c-functions/11154.html