Thread: Visual C++ 6.0 Console Application

  1. #1
    Unregistered
    Guest

    Exclamation Visual C++ 6.0 Console Application

    Hello.

    How can i control the mouse coordinates and buttons events in the Visual Studio C++ 6.0 win32 console application.

    Please help me (i tried to do it in assembly but it brings the blue screen with an error.).
    (I program in Delphi but i have to do a work in visual c++ in console mode and i've never did one.)

    Thanx...

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    To be honest, I don't know how and if you can. But you shouldn't need to. If you need mouse control, do a windows application. If you need simple keyboard control, stay with the console.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Unregistered
    Guest
    You can't, console mode is text only so the mouse routines will give you errors if you try to run it.

  4. #4
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    I'm not sure how you want to control the mouse co-ordinates but if the console has the ENABLE_MOUSE_INPUT flag set (which I believe is the default setting) then you can get the inputted mouse events with the ReadConsoleInput() function.
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Console Application
    By Mont_Blanc in forum C++ Programming
    Replies: 3
    Last Post: 04-17-2004, 03:07 AM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. header file bringing errors?
    By bluehead in forum Windows Programming
    Replies: 4
    Last Post: 08-19-2003, 12:51 PM