Hi,
I am required to make a assignment in Computer Graphics using C++ in which I have to control the mouse. I tried making it in Turbo C++ in windows 7 but gave up due to its medieval interface. I set up environment to do this in Linux using steps given here :http://itsanimesh.com/2009/01/08/c_graphics_in_linux/ . But the problem is that there is no substitute for dos.h in Linux which allows to access REGS - register which is used to store mouse positions. I googled it and find out that providing this type of access compromises OS's security so Linux doesn't provide it. Is there any work around?
@Tavish
I included these files but it doesn't recognize "int86" & "REGS"
function that I use in windows. Any idea, what can be used at their
place?
> --
> Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
>
--
Rishi Agarwal
3rd Year Undergraduate
Department of Mathematics
Indian Institute of Technology, Delhi
What about those bloody fucking exams?
I was just about to ask this graphics question here because I have
installed Ubuntu 11.10 on a non-geek friend's old P4. He's doing just C
now, and next semester we have C++ with graphics.h
--
Nilesh Govindarajan
http://nileshgr.com
unix-like operating systems are written 95% in c and only 5% in
assembler-- for original unix-- and talking directly to hardware- as
well as lack of portability-- is discouraged as part of unix's design
philosophy.
So, while logically you could use assembler-- compile it to a .o
file-- and link with your c code into a executable-- using assembler
is not the preferred way of doing this under unix.
I suggest that for your assignment-- use turbo-c/c++ ---> in dos-box
if not in dos/windows-- and get the assignment done-- and understand
the concepts.
Personally I believe that apart from talking of turbo-c versus gcc--
you (Rishi) need to dig deeper into understanding the architectural
concepts of systems and also about operating systems-- so that the
answers of this question will be self obvious.
I hope this helps.
Best Regards,
Nalin
@Tavish
I included these files but it doesn't recognize "int86" & "REGS"
function that I use in windows. Any idea, what can be used at their
place?
After all, is called dos.h
Apparently you people have got some solution. Which Linux-library has
an API similar to that offerred by TurboC's graphics.h?
I can do with alternatvies, but my friend is not much geeky and also
doesn't have internet, so no research work is possible.
Something close to substitution will be appreciated. This should not
become a reason to reformat the disk on that poor old P4 and install
bullshit Windows Xp.
Apparently you people have got some solution. Which Linux-library hasOn Mon 17 Oct 2011 09:54:27 AM IST, Debasish Ray Chawdhuri wrote:
> After all, is called dos.h
>
> --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
an API similar to that offerred by TurboC's graphics.h?
I can do with alternatvies, but my friend is not much geeky and also
doesn't have internet, so no research work is possible.
Something close to substitution will be appreciated.
This should not
become a reason to reformat the disk on that poor old P4 and install
bullshit Windows Xp.