Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Plz Help on writing directly into vdu memory in c (http://www.go4expert.com/forums/plz-help-writing-directly-vdu-memory-c-t11208/)

tiger 8Jun2008 09:48

Plz Help on writing directly into vdu memory in c
 
Hi friends!
i wanna write directly to vdu memory using c language.the code is here
.............code begin........
#include <stdio.h>
#include <conio.h>
int main(void)
{
int i;
char far *vidmem=0xB8000000;
for(i=0;i<=3999; i=i+2)
*(vidmem+i)='A';
return 0;
}

..........code end...........

the compiler i use is Turbo C version 3.0. i got the following error when i try to compile
the code.

cannot convert unsigned long to char far*

please help me , what is the error or the reason why it does not work.
moreover please suggest a good C Book for me i m a college computer science student.
thanx.

tiger 1Jul2008 15:57

Re: Plz Help on writing directly into vdu memory in c
 
hey people u r all too lazy to answer my post which was posted a month ago.........
i m very dissapointed with forum.................

owatheowais 28Jun2011 17:56

Re: Plz Help on writing directly into vdu memory in c
 
#include <stdio.h>
#include <conio.h>
int main(void)
{
int i;
char far*video;
video=(char far*)0xB8000000L;
for(i=0;i<=3999; i=i+2)
{
*(video+i)='A';
*(video+i+1)=65;
}

Sorry late reply, as I m also new user of c programming don't know such knowlegde about vdu and graphic coding in c but it will help you!


All times are GMT +5.5. The time now is 09:32.