tags:

views:

109

answers:

2

please tell me how to draw any shape (a small square e.g) using visual studio 2010 with the c++ language ? PUT THEM STEP BY STEP PLEASE I don't know what type of file i have to choose nor how to check it out

A: 

I'm assuming that you are requesting to draw with ANSI C++ (non-managed).

With OpenGL you would:

  1. Setup the dependencies in your project
  2. Set up the framework for creating the Window
  3. Setup the function call back methods
  4. Use vectors to draw the shapes using basic components of the shapes

Take a look at this OpenGL tutorial in C++.

monksy
+2  A: 

I think you mean drawing in win32? I would suggest you to check this out: http://www.codeproject.com/KB/GDI/paint_beginner.aspx

DaMacc