[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Detecting window or full screen mode from DOS session on W95

Posted on 1997-12-18
6
Medium Priority
?
170 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 1

Accepted Solution

by:
eviltekk earned 200 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Social messanging services like WhatsApp and Facebook can help businesses in ways that many owners don't even imagine, giving new opportunities to connect with customers. Discover some of the most innovative things they can do for your company.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

830 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