Click here to Skip to main content
16,011,532 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA General Question on Sound Programming? Pin
18-Mar-01 1:30
suss18-Mar-01 1:30 
AnswerRe: A General Question on Sound Programming? Pin
Christian Graus18-Mar-01 13:10
protectorChristian Graus18-Mar-01 13:10 
Generalhelp Pin
17-Mar-01 23:46
suss17-Mar-01 23:46 
GeneralRe: help Pin
Tim Deveaux18-Mar-01 3:38
Tim Deveaux18-Mar-01 3:38 
QuestionAny one can help me? Pin
17-Mar-01 18:22
suss17-Mar-01 18:22 
AnswerRe: Any one can help me? Pin
l a u r e n17-Mar-01 22:56
l a u r e n17-Mar-01 22:56 
GeneralRe: Any one can help me? Pin
Colin J Davies17-Mar-01 23:27
Colin J Davies17-Mar-01 23:27 
AnswerRe: Any one can help me? Pin
18-Mar-01 19:01
suss18-Mar-01 19:01 
The bmp you want to move around is actually called a "sprite" in the world of 2D Animations. A sprite is basically a Bitmap with a Mask that would make the unwanted areas of the bitmap in question to not be drawn or in other wotds turn transparent and then are both blitted to the screen over another Bitmap of the background.

You can produce a mask for your Train bmp and then blit it onto the background image usinf BilBlit(..) function.

Load your image using the LoadImage(..) function, or better yet put your image as a resource in your app and then load it.

Search the google.com on "Windows Sprite Programming" and you get a lot of good replies!

Good Luck! Smile | :)
GeneralExecuting .bat files programmatically, C++ Pin
17-Mar-01 17:36
suss17-Mar-01 17:36 
GeneralRe: Executing .bat files programmatically, C++ Pin
Michael Dunn17-Mar-01 17:48
sitebuilderMichael Dunn17-Mar-01 17:48 
GeneralRe: Executing .bat files programmatically, C++ Pin
Colin J Davies17-Mar-01 23:17
Colin J Davies17-Mar-01 23:17 
QuestionHow can I programmatically change the screen area? Pin
17-Mar-01 14:01
suss17-Mar-01 14:01 
AnswerRe: How can I programmatically change the screen area? Pin
Tim Deveaux17-Mar-01 15:17
Tim Deveaux17-Mar-01 15:17 
GeneralRe: How can I programmatically change the screen area? Pin
David Cunningham17-Mar-01 15:27
cofounderDavid Cunningham17-Mar-01 15:27 
Questionredirect cout to CEdit ? Pin
17-Mar-01 11:24
suss17-Mar-01 11:24 
QuestionHow do you. . . Pin
17-Mar-01 6:00
suss17-Mar-01 6:00 
AnswerRe: How do you. . . Pin
Tim Deveaux17-Mar-01 14:56
Tim Deveaux17-Mar-01 14:56 
GeneralSockets Pin
ernst.maurer17-Mar-01 3:40
ernst.maurer17-Mar-01 3:40 
GeneralRe: Sockets Pin
Scott!17-Mar-01 4:21
Scott!17-Mar-01 4:21 
GeneralRe: Sockets Pin
ernst.maurer17-Mar-01 4:38
ernst.maurer17-Mar-01 4:38 
GeneralRe: Sockets Pin
David Cunningham17-Mar-01 7:05
cofounderDavid Cunningham17-Mar-01 7:05 
GeneralRe: Sockets Pin
Peter Godec19-Mar-01 8:32
Peter Godec19-Mar-01 8:32 
QuestionHow I can do it !!! Pin
Ahmad16-Mar-01 21:44
Ahmad16-Mar-01 21:44 
AnswerRe: How I can do it !!! Pin
l a u r e n16-Mar-01 23:32
l a u r e n16-Mar-01 23:32 
GeneralRe: How I can do it !!! Pin
Ahmad17-Mar-01 21:25
Ahmad17-Mar-01 21:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.