943,884 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 666
  • C++ RSS
Jul 13th, 2008
0

graphics

Expand Post »
im sorry to bother you but i wanted to know

BUT I AM USEING DEV C++

I WANT TO SEE HOW TO ADD A BACKGROUND TO A PROGRAM IS THERE ANY WAY YOU COULD HELP ME

THANK YOU
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
justinclev is offline Offline
12 posts
since Jul 2008
Jul 13th, 2008
0

Re: graphics

Please don't shout.

Adding a background depends on the toolkit you are using.

If you are using straight Win32 API, you'll need to process the WM_PAINT message sent to the form and draw the bitmap before you let any other controls draw.

If you are using a toolkit, please tell us which one you are using.
Featured Poster
Reputation Points: 1140
Solved Threads: 229
Postaholic
Duoas is offline Offline
2,039 posts
since Oct 2007
Jul 13th, 2008
0

Re: graphics

What type of program are you dealing with? A window? A console window?

Most likely, the answer will lie somewhere in either the Direct3D (Microsoft), or OpenGL (open source) APIs. Look them up.
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008
Jul 13th, 2008
0

Re: graphics

well i m still a bit of a beginer my programs a secruity one it will run and youll have to enter a password then it will allow you to go on if you enter it right otherwise it shutsdown the computer
but it runs off the command prompt
Reputation Points: 10
Solved Threads: 0
Newbie Poster
justinclev is offline Offline
12 posts
since Jul 2008
Jul 13th, 2008
0

Re: graphics

If you're running a command prompt, there really isn't a way (to my knowledge) of setting a background.
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008
Jul 13th, 2008
0

Re: graphics

well how do i get out of command prompt then it help my program to know that sense the totorail im using sucks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
justinclev is offline Offline
12 posts
since Jul 2008
Jul 14th, 2008
1

Re: graphics

Depending on how much of a beginner you are, you may want to stick with console apps for a while and get a handle around pointers, classes, inheritance, and polymorphism to some degree. But, you don't necessarily have to.

If you're on Windows, this is a very good place to begin. As Duoas said, there's a way to do a background with just the Windows API, though if you want to go into more graphical applications, you can try to delve on in to Direct3D.
Reputation Points: 77
Solved Threads: 40
Posting Pro in Training
CoolGamer48 is offline Offline
401 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Opening other programs
Next Thread in C++ Forum Timeline: Macro reading program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC