need Help in Mouse Pointer

This is a discussion on need Help in Mouse Pointer within the C++ Programming forums, part of the General Programming Boards category; Hi everybody, i wanna enable concole mouse point in BGI GRAPHIC , i need urs Help , if u know ...

  1. #1
    Registered User
    Join Date
    Nov 2006

    need Help in Mouse Pointer

    Hi everybody,
    i wanna enable concole mouse point in BGI GRAPHIC , i need urs Help ,
    if u know how to Enable Mouse In C++ ( BGI GRAPHIC ) then reply me plz!

    i hv also a code of mouse pointer , BUT i can't understand This code ,
    No Error In Code.

    void showptr();
    void restrictptr(int,int,int,int);
    void getmpos(int*,int*,int*);
    int initmouse();
    void setmpos(int,int);
    void hideptr();
    class mouse
              union REGS i,o;
             struct SREGS s;
    /************* Initialize Mouse ********************/
    int initmouse()
       return (;
    /************* Display Pointer *********************/
    void showptr()
    /************* Restrict Mouse Movement *************/
    void restrictptr(int x1,int y1,int x2,int y2)
    /********** Get Mouse Position ***************/
    void getmpos(int *button,int *xx,int *yy)
    /********** Set Pointer Position **************/
    void setmpos(int xx,int yy)
    /***************HIDE MOUSE *********************/
    void hideptr()
    // end mouse class

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    No Error In Code.
    Are you saying that you can compile it without errors?

    What exactly is the problem? Do you get an error when you run it? Does it ignore the mouse?

    I'm guessing, but I have a feeling this is not going to run on a modern 32-bit system. You probably have to run under 16-bit DOS...

    EDIT -
    If you need to use the mouse in a Windows Console application, check-out the MSDN Console Reference. The techniques & funcions described at MSDN should work with any modern Windows compiler/system.

    If you are a beginner, I strongly recommend that you learn ANSI/ISO Standard C++ first. (no mouse, graphics, color, or sound). Once you're comfortable with Standard C++, learn full-blown Windows programming, if you want/need to use a mouse.
    Last edited by DougDbug; 12-06-2006 at 05:39 PM.

  3. #3
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Boston, Massachusetts
    For example, this:
    Hint: o-o-outdated, and not supported in even most modern compilers. It should be:
    #include <iostream>
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  4. #4
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005

    That is a 16bit dos library. As manutd said, learn thr basics before moving into advanced topics
    I'm just trying to be a better person - My Name Is Earl

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting the matrix question..
    By transgalactic2 in forum C Programming
    Replies: 47
    Last Post: 12-22-2008, 03:17 PM
  2. scope of a pointer?
    By Syneris in forum C++ Programming
    Replies: 6
    Last Post: 12-29-2005, 09:40 PM
  3. Question About Pointer To Pointer
    By BlitzPackage in forum C++ Programming
    Replies: 2
    Last Post: 09-19-2005, 11:19 PM
  4. Changing mouse pointer?
    By Matte in forum Windows Programming
    Replies: 9
    Last Post: 11-25-2004, 02:05 PM
  5. changing mouse pointer in c
    By MMM in forum Windows Programming
    Replies: 3
    Last Post: 05-11-2003, 09:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21