if hope ur using turboc , under dos or windows, this works only on those
you can do an output to screen by directly accessing the video ram
char far * video_ram = (char far *)0xB8000000; //if your card is CGA use
0xB0000000;
char * data="Ananth.G";
int i=0;
while (data) {
*(video_ram+i)= *data;
*(video_ram+i+1)= 50; // 50 is the color, try something else if u
dont get any char on screen
i+=2;
++data;
}
hope this works, i dont have turboc for checking...
yours,
ananth.g
subiksha wrote:
>how to output any charactor on to screen without using "printf"
>fuction.(through video buffer-how to?)
>
>
>
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at
ad...@sifycorp.com