I am trying to implement a dancing doll in c and i found that the code snippet which i have does not run on visual studio.
It requires a file dos.h and the visual studio is unable to find it. So on which platform should i run it. I tried running the same on cygwin as well but of no use. ANY IDEA ON WHY IT IS UNABLE TO FIND THE INCLUDE FILE DOS.H
insertCode:#include <conio.h> # include <dos.h> # include <stdio.h> void interrupt our(); void interrupt (*prev)(); char far *scr =(char far *) 0xB800000L; void main() { unsigned long int far *p; p=(char far *)36; prev=*p; *p=our; keep(0,500); getch(); } void interrupt our() { int i; for(i=0 ;i<=3999;i+=2) { if(*(scr+i)>='A'&& *(scr+i)<='Z') *(scr+i)+=32; else if(*(scr+i)>='a'&& *(scr+i)<='z') *(scr +i)-=32; } (*prev)(); }