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!!!
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!!!
Why? The often unanswerable question. If it is unanswerable, why answer it?
Join the Cult of Sheograth, it's the place to be!
http://cultosheogorath.proboards16.com
Lord, we know what we are, yet we know not what we may be... Who wrote that anyway? If you know, E-Mail me. [email protected]
Joy to all the fishes...
**infected by frenchfry164**
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
Ess
Like a rat in a maze who says,
"Watch me choose my own direction"
Are you under the illusion
The path is winding your way? - Rush
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.
-sh0x
>>> 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.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.