Solved

Simple graphics/mouse

Posted on 2003-10-21
5
177 Views
Last Modified: 2010-04-02
Ok I am basically new to c++
I can do basic operations, loops, stuff like that
I know Visual Basic quite well so understanding code isn't a problem

I want to know how to create simple graphics in c++ while using the least amount of includes and the includes that are used should come standard with Visual C++ 6.  Things like SetPixel and stuff would be nice, and I also want to know how to get mouse coords and input from the mouse

Help is greatly appreciated! Thanks
0
Comment
Question by:ScRiBbLe420
5 Comments
 

Author Comment

by:ScRiBbLe420
ID: 9595529
PS If you add a good enough answer I will up the points before accepting based on how good the question is just so you know
0
 
LVL 4

Accepted Solution

by:
n_fortynine earned 50 total points
ID: 9597377
Using MFC, which is built into VC++, you can basically create windows and define methods in your message map to handle various mouse events. (Usually you can have OnMouseMove, OnMouseDown funcs that returns the mouse coords for you). Search for MFC tutorials, or Microsoft should give you enough info from their database. You'll only need #include <afxwin.h> for simple, beginner's stuff. If you're seriously interested, look into OpenGL (glut libs) Much much better than MFC (graphics-wise) :)
0
 
LVL 1

Expert Comment

by:Paladin_VB
ID: 9618163
Yeah I agree with him use VC++ and you can have stuff like onmousemove or you could try OpenGL which is not visual likevisual basic  but it has support for mouse movement and button pressing etc. lol also keyboard support . Is proably 9 out of 10 times used for games though as it is bassically a set of graphics libraries. lso you can add menu's to it and stuff.
0
 
LVL 11

Expert Comment

by:bcladd
ID: 10481853
sNo comment has been added lately, so it's time to clean up this TA. I will
leave a recommendation in the Cleanup topic area that this question is:

Answered: Points to n_fortynine

Please leave any comments here within the next four days.

Experts: Silence means you don't care. Grading recommendations are made in light
of the posted grading guidlines (http://www.experts-exchange.com/help.jsp#hi73).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

-bcl (bcladd)
EE Cleanup Volunteer
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question