954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

C++ Graphics!!

OK,
I have ben programming for about 6 monthes but never done real graphics!! I was wondering, how i could implement graphics into a program??
If this helps any i am using Visual C++ 2005 Express Edition...

lotsofsloths
Light Poster
44 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

Depends what you are trying to do with graphics. There isn't a standard way to do console graphics, although you can use the WinAPI to accomplish it if you choose.
Here's a sinppet that accomplishes this: http://www.daniweb.com/code/snippet173.html

The other way of doing graphics is through a Windows GUI application, which means you will have to display a Win32 window before you can draw graphics in it.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

yeah you can either do plain old win32 or mfc

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

>yeah you can either do plain old win32 or mfc
MFC is actually a WinAPI wrapper, so either way you'd have to use the Win32 API.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

and he can't use MFC because VC2005E doesn't support MFC.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
and he can't use MFC because VC2005E doesn't support MFC.

Perhaps MFC classes are available, but we cannot do something like double click and write code. I never used MFC but I just saw an option in VC2005Ex to include MFC library.

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

you can use MFC in VS2005 express if you install the Platform SDK . I do this myself

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

uhh!!
what is all that!?!

lotsofsloths
Light Poster
44 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

What kind of graphics ? Graphics as in related to games or graphics related to GUI widgets like buttons, image boxes, text boxes etc. ?

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 
you can use MFC in VS2005 express if you install the Platform SDK . I do this myself

not according to the MSDN forums...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Why would you want to use MFC is more to the point?

You've got all the libraries already there to do really anything you want with 2d graphics.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You