Solved

Detecting window or full screen mode from DOS session on W95

Posted on 1997-12-18
6
163 Views
Last Modified: 2010-04-16
I'm using a soft font in a DOS application running on W95.
The problem is that the soft font does not work in a window.

If must know how to detect if the program is running in a full screen or windowed DOS session.

0
Comment
Question by:hvdv
  • 2
  • 2
  • 2
6 Comments
 
LVL 2

Expert Comment

by:omsec
ID: 1216991

Hi !

As i know you don't need to detect that. If the user runs a program that uses a graphics mode for example VGA 13h (320x200 Pixels in 256 Colors) Windows will tell him in a message dialog that the program can't be run in windows mode and he/her has to maximize the program window to full screen.

greets, Omsec
0
 
LVL 2

Expert Comment

by:omsec
ID: 1216992
Hi !

As i know you don't need to detect that. If the user runs a program that uses a graphics mode for example VGA 13h (320x200 Pixels in 256 Colors) Windows will tell him in a message dialog that the program can't be run in windows mode and he/her has to maximize the program window to full screen.

greets, Omsec
0
 

Author Comment

by:hvdv
ID: 1216993
Detecting windowed or full screen mode is essential for my application! In full screen mode I use the soft font but in windowed mode the program must run without the soft font. In that case I build my screen in another way.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 1

Accepted Solution

by:
eviltekk earned 100 total points
ID: 1216994
give me some information:

1. the screen mode
2. the soft font - is it a diffrent ascii font?
3. how do you initalise the soft font.

and another thing - you CAN detect the windowed, but you'll get
"general failure" in the win95 or win3.11
but there is another ways , so give the information, and i'll (try to) help.


0
 

Author Comment

by:hvdv
ID: 1216995
I'm using a normal text mode 25 lines by 80 characters.
Only some characters are replaced by soft-font characters.
The softfont works fine under Win95, Windows 3.1x and Win-NT.
But when switching to windowed mode (Alt-Enter) the soft-characters disappear and the normal (replaced) character appears int it's place. Switching back to full screen (Alt-Enter again) the soft-font character re-appears and all looks fine again.
I want to be able to substitute the soft-font characters by other normal characters when I detect that windowed mode is being used.
0
 
LVL 1

Expert Comment

by:eviltekk
ID: 1216996
oka, thats what i though...
now its quite simple...
first, create a .cpi font file. contact me at crash32@bigfoot.com to get the convertor.
then use this:

mode con cp prepare=880 (c:\dos\softfont.cpi)

now, copy the softfont.cpi to c:\win95\system. (or where system directory is)

now you must install the font to win95.
the way to do that described very detailed in a document i have,
so contact my email.

after that, you chose the windowed font to be the new font.
next, when u'll be windowed, the softfont will be the same as full window.

so, accutally you install the softfont into win95.
thats all.



0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Read about the ways of improving workplace communication.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now