• C

what replaces the graohic.h for the int86()?

I am trying to find the function int86().
It seems to be put to pasture. I would like to know what has replaced it for receiving BIOS interupts.
help please.
loontechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GetchCommented:
BIOS.H
0
dimitryCommented:
What compiler are you using ?
0
cupCommented:
What OS are you using?
Which interrupt and subfunction do you wish to use?
To repeat dimitry's words, what compiler are you using?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Simple Misconfiguration =Network Vulnerability

In this technical webinar, AlgoSec will present several examples of common misconfigurations; including a basic device change, business application connectivity changes, and data center migrations. Learn best practices to protect your business from attack.

loontechAuthor Commented:
winXP
int 13h
msVC++6
0
loontechAuthor Commented:
I want to create text based intefaces like the old dos style BBS. I want to color text and change the color often. the header graphic.h used to be it,but now I can't find its replacement.
0
loontechAuthor Commented:
I forgot that I also want to use int 80h, the video interupt
0
mirko_germanyCommented:
int86 is implemented in dos.h. i don't beleave that msvc++ let you use this function, because - you know bill gates - windows wants to do all lowlevel-routines itself, so that YOU can't cause any problems (windows wants to cause these problems itselfs: bluescreen... you know, what i'm talking about). i would recommend to use another compiler and build a dos-programm. you can still execute dos-programs from windows-platforms (but in the dos-window). if you don't need windows-routines like mfc, try another compiler
0
loontechAuthor Commented:
so what you are saying is I am going to have to write my own in assembly.
0
mirko_germanyCommented:
"i would recommend to use another compiler and build a dos-programm"

ofcourse, if you don't want to have problems caused by mr. gates, try linux or write your own os. but i never wanted you to write assembly. you can do it, but you could also try a c/c++-compiler for dos.
0
dimitryCommented:
I suggest you to take from http://www.borland.com
their old TC 2.0 to create 16-bit DOS application.
VC++ from Ver 2.0 doesn't support this "option".
0
cupCommented:
Depends what you want to do.  If you are writing device drivers etc and are going down to the ring 0 level, then you may be able to use the int instructions.  Something as simple as

__asm {
    int 13H
}

However, if you are just writing a normal application program, you won't be able to use the int86 functions.

Try VWIN32_DIOC_DOS_INT13 for int13.

INT80H isn't the video interrupt: it is the sound interrupt.  The video interrupt in INT10H.  You can completely screw up your video and Windows if you play with that.  If it is just text I/O, have a look at character mode consoles.
0
loontechAuthor Commented:
yeah I realised that after I hit enter and couldn't undo what I typed, which made me feel like an A$$.
I am just looking for color text that changes like the old BBs's.
0
cupCommented:
Website for character mode applications is

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/character_mode_applications.asp

That is the windows console equivalent of gotoxy, changing colours and positioning text all over the place.
0
mirko_germanyCommented:
@dimitry: this option is also available at borland c++ 5.01 for windows (that's what i usually use). and if you want to have an older compiler: i also have borland c++ 1.1 for dos. and i have to say: the description is better than this one of 5.01 in some points.
0
jmcgOwnerCommented:
Nothing has happened on this question in more than 9 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
split points between cup and mirko_germany.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.