Solved

Detecting window or full screen mode from DOS session on W95

Posted on 1997-12-18
6
161 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

20 Experts available now in Live!

Get 1:1 Help Now