|
-
Jan 29th, 2001, 10:29 AM
#1
Thread Starter
Frenzied Member
how would you do that chimpface?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jan 29th, 2001, 01:03 PM
#2
Code:
union REGS regs;
regs.h.ah = 0x00; /* function 00h = mode set */
regs.h.al = 0x13; /* 256-color mode 13h */
int86(0x10,®s,®s); /* do it! */
-
Jan 29th, 2001, 02:53 PM
#3
Monday Morning Lunatic
All I can say is...
Ouch.
Bear in mind that this is definitely 9x only - Win2K will stop it from doing that - that's why Worms doesn't work.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jan 29th, 2001, 03:17 PM
#4
Frenzied Member
why does win2K do that???
-
Jan 29th, 2001, 03:20 PM
#5
Monday Morning Lunatic
Under Windows NT, direct hardware access is forbidden, as is disabling / enabling interrupts.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 2nd, 2001, 05:58 PM
#6
Hyperactive Member
Ok. I'm planning on designing a GUI which is based OVER top of DOS. It'll look like windows(somewhat). I've already got the mouse manipulation routines, Now I need video mode stuff.
Chimpface, you seem like you know alot about this kind of stuff, so how would you set the mode to 256 color and 640x480, or 256 color and 800 x 600?
(About Win 2000/NT, I think that it's gay that direct hardware access is forbidden. Completely gay!:P)
Designer/Programmer of the Comtech Operating System(CTOS)
-
Mar 2nd, 2001, 06:01 PM
#7
Monday Morning Lunatic
Well, with NT you have interfaces onto all the hardware, and DirectX for multimedia.
The thing is that NT is designed for stability NOT compatibility. It's so that the OS cannot be brought down by software, which means that direct hardware access has to go.
Try this under NT and get a nice "priviledged instruction" error :
Code:
int main() {
__asm cli
}
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 2nd, 2001, 06:29 PM
#8
Hyperactive Member
I don't have NT or win 2000, I've just got win95 and win98(2 PC's). I don't really have to worry about those OS's. I just think that that's stupid that hardware access is gone for those OS's. It sometimes can stop a programmer(you know what I mean).
Designer/Programmer of the Comtech Operating System(CTOS)
-
Mar 2nd, 2001, 06:34 PM
#9
Monday Morning Lunatic
No, but someone might run your program on NT and then you're a bit stuck 
That's why I'm trying to move my development onto NT.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 5th, 2001, 12:17 PM
#10
Frenzied Member
Sail3005--> If you are using a Borland Dev studio, a fullscreen console is made, if you choose Win32 Console in the AppExpert.
-
Mar 5th, 2001, 09:12 PM
#11
PowerPoster
I am using vc++, but i have BC++ 5.5 and turbo c++ 3.0. Can these do that?
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Mar 6th, 2001, 04:24 AM
#12
Frenzied Member
Ïf you only have the compiler, and not the IDE, I don't know... I'm not sure about TC, but if it supports Win32 Apps, then it should be possible!
-
Mar 6th, 2001, 07:49 PM
#13
PowerPoster
what i meant is that i have Borland C++ builder 5, in other words, i paid for it and i DO have the IDE. So, how can i get it to go full screen?
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Mar 7th, 2001, 07:28 AM
#14
Hyperactive Member
The other day I found ALOT on Video cards and setting graphics modes. What kind of graphics are you looking for? If you want higher than 640x480x16color or 320x200x256color, then check out my VESA thread"
http://forums.vb-world.net/showthrea...threadid=59209
That'll help you out with VESA modes. I got source code with it as well.
-
Mar 7th, 2001, 07:42 AM
#15
PowerPoster
Thanks Warmaster, i was kind of hoping that there was just a simple command or something, but i guess moving into heavier graphics is the only way to go.
Thanks again for the info.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Mar 7th, 2001, 04:47 PM
#16
Hyperactive Member
You can use a simple function. But if you want VESA(higher than 640x480x16) You need to be sure the card is VESA compatible and you need to know what your card can take. Every VESA card (Even my 486's) I've seen can do 640x480x256color and possibly 16-bit(64K color). Use the following function:
void setVBEmode(int mode)
{
union REGS in,out;
in.x.ax = 0x4F02; /*VESA set mode(0x4F02) BIOS call */
in.x.bx = mode; /*Set Video mode */
int86(0x10,&in,&out);
}
For example, to change the VESA mode to 640x480x256 color call:
setVBEmode(0x101);
There you have it. I still recommend the sample as it does auto-detects for the VESA hardware & modes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|