Re: Windows graphics problem
- From: jacob navia <jacob@xxxxxxxxxx>
- Date: Tue, 10 Feb 2009 00:53:11 +0100
maan kapoor wrote:
hi can u help
i have problems with an example from my textbook on windows console
programming. here is some code to change the background to blue,
asm movb ah, 0x2
asm movb dl, 0x7
asm int 0x21
this works fine on turbo c 2.01.
but i try to compile it with lcc, a free windows compiler, and it doesnt
work.
can u help
thx
Your textbook on windows console programming is about
MSDOS console programming. Putting some values in the registers
and calling int 0x21 stopped working more than 12 years ago when MSDOS
died a natural death.
Besides, lcc has another assembler syntax so that your code will not
be understood.
Now, the good news is that lcc has a compatibility library to use the
console, similar to the one turboc uses.
#include <tcconio.h>
int main(bvoid)
{
textbackground(BLUE);
}
You link the above program with tcconio.lib.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.
- Follow-Ups:
- Re: Windows graphics problem
- From: maan kapoor
- Re: Windows graphics problem
- References:
- Windows graphics problem
- From: maan kapoor
- Windows graphics problem
- Prev by Date: Re: passing char arrays by reference
- Next by Date: Re: Why do i get runtime error ?
- Previous by thread: Re: Windows graphics problem
- Next by thread: Re: Windows graphics problem
- Index(es):
Relevant Pages
|
Loading