Thread: Please help(get the mouse work)-programming problem!!:)))

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    Question Please help(get the mouse work)-programming problem!!:)))

    How should I write a program,which can use the mouse like input,I mean I have to write a program with mouse!
    HELP!!

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    What OS and compiler? DOS or Windows? Windows GUI or console program in Windows?

    Help us help you.

    gg

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Windows program?

    If you want to write a windows program, you have to learn to program the Windows API. If and when you are confident with your C/C++ console programming ability, get the book "Programming Windows" by Charles Petzold.

    There are some windows examples at www.cplusplus.com and here http://sunlightd.virtualave.net/Windows/

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    5
    My programme should work in DOS.

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    What compiler? Is this a machine running DOS or are you making a DOS program that will run on a windows machine?

    gg

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    Post

    My Compiler is a BorlandC++ 3.1,and I write a DOS program which should run under windows9x.

  7. #7
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You will want to use int86() function in <dos.h> with interrupt 0x33.

    Here are a few references to get you started:



    I found these by performing a google search of "interrupt 0x33"

    gg

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    Cool Thx

    Thx a lot, but furtunately I found my mistakes and my program works properly Ahh,At last.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mouse Maze Problem
    By Furbiesandbeans in forum C++ Programming
    Replies: 13
    Last Post: 04-28-2008, 04:20 PM
  2. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM
  3. Making a mouse hover button, API style
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 05-27-2004, 06:17 AM
  4. Replies: 3
    Last Post: 05-01-2003, 12:47 PM
  5. Mouse in 800x600 24Bit Mode?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 11-11-2001, 01:38 AM