Solved

Simple graphics/mouse

Posted on 2003-10-21
5
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C Language combined operators 28 120
How do i run a c++ file? 15 51
How to add columns to a RAD Studio FMX grid at design time 1 27
Coding for the first time 9 62
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

740 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