Does anybody know how I can do basic graphics in C++ using a Microsoft Visual C++ Enterprise edition compiler??? The equivalent of the LINE or CIRCLE or PAINT commands in QBasic???
I'm desperate!!!
Printable View
Does anybody know how I can do basic graphics in C++ using a Microsoft Visual C++ Enterprise edition compiler??? The equivalent of the LINE or CIRCLE or PAINT commands in QBasic???
I'm desperate!!!
I'm guessing you're new to windows programming, so I suggest you create an SDI project from the MFC app wizard. And look at the CDC class members. I've attached an MSDN article to get you started.
thanks
dan
There are tutorials on Windows programming in the board FAQ. http://www.cprogramming.com/boardfaq.html
if you are using a borland compiler (and why not) you should have access to the BGI, look for a folder called BGI or check your compiler documentation
CumQuaT, you might want to take a look at a book called Windows Game Programming for Dummies by Andre Lamothe. The title of the book is a misnomer, it's a pretty good book. It spends a couple of chapters on the basic Windows GDI graphics functions you're looking for, then it moves onto DirectX if you would like to learn some more complex graphics tehcniques.
>>> so I suggest you create an SDI project from the MFC app wizard.
And I suggest you don't. I believe you should learn to program with the native API before you start with a class library, (MFC etc.). Once you can drive the API, learning MFC etc. is easy, the other way round is not.
Get hold of a book by Petzold or Schildt.