Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ostringstream and <sstream> Pin
Erik Funkenbusch23-Mar-01 22:03
Erik Funkenbusch23-Mar-01 22:03 
QuestionGetting TypeLibrary Name?? Pin
ernst.maurer23-Mar-01 1:04
ernst.maurer23-Mar-01 1:04 
QuestionGetting TypeLibrary Name?? Pin
ernst.maurer23-Mar-01 1:01
ernst.maurer23-Mar-01 1:01 
GeneralProblem about sprite animation Pin
kyousuke22-Mar-01 23:42
kyousuke22-Mar-01 23:42 
GeneralRe: Problem about sprite animation Pin
l a u r e n23-Mar-01 0:35
l a u r e n23-Mar-01 0:35 
GeneralRe: Problem about sprite animation Pin
kyousuke23-Mar-01 6:19
kyousuke23-Mar-01 6:19 
GeneralRe: Problem about sprite animation Pin
23-Mar-01 8:32
suss23-Mar-01 8:32 
GeneralRe: Problem about sprite animation Pin
kyousuke23-Mar-01 16:17
kyousuke23-Mar-01 16:17 
Now, I think that the problem is LoadBitmap function, because I want to flip the train when move to the left/right side of screen. But I don't know which function I must use, so I load new bitmap by "LoadBitmap" instead. And when I remove that part of code, no problem is occur.

Here is my code:
for(i=0;i<totaltraini;i++)

{
if(x1[i]="">34 && x1[i]<354 && f1[i]) {sprite1[i].LoadBitmap(IDB_TRAIN1); f1[i]=false;}
//else if(y1[i]>10 && y1[i]<280 && !f1[i]) {sprite1[i].LoadBitmap(IDB_TRAIN2); f1[i]=true;}
psprite1[i]->DrawTransparent(&memDC, x1[i], y1[i], RGB(0,0,0));
//if(x0[i]>34 && x0[i]<354 && f0[i]) {sprite0[i].LoadBitmap(IDB_TRAIN1); f0[i]=false;}
//else if(y0[i]>10 && y0[i]<280 && !f0[i]) {sprite0[i].LoadBitmap(IDB_TRAIN2); f0[i]=true;}
psprite0[i]->DrawTransparent(&memDC, x0[i], y0[i], RGB(0,0,0));
//if(x[i]>34 && x[i]<354 && y[i]==10 && f[i]) {sprite[i].LoadBitmap(IDB_THEAD2); f[i]=false;}
//else if(y[i]>10 && y[i]<280 && x[i]==34 && !f[i]) {sprite[i].LoadBitmap(IDB_THEAD3); f[i]=true;}
//else if(x[i]>34 && x[i]<354 && y[i]==280 && f[i]) {sprite[i].LoadBitmap(IDB_THEAD4); f[i]=false;}
//else if(y[i]>10 && y[i]<280 && x[i]==354 && !f[i]) {sprite[i].LoadBitmap(IDB_THEAD1); f[i]=true;}
psprite[i]->DrawTransparent(&memDC, x[i], y[i], RGB(0,0,0));
}
** (//) Mean if I remove that line it work perfect.

Do you know which function I should use to flip image or have other way to do?
GeneralRe: Problem about sprite animation Pin
26-Mar-01 11:00
suss26-Mar-01 11:00 
GeneralRe: Problem about sprite animation Pin
Christian Graus23-Mar-01 9:28
protectorChristian Graus23-Mar-01 9:28 
GeneralClose a foreign window Pin
22-Mar-01 22:15
suss22-Mar-01 22:15 
GeneralRe: Close a foreign window Pin
Christian Graus23-Mar-01 9:33
protectorChristian Graus23-Mar-01 9:33 
GeneralWorking with installed email client Pin
22-Mar-01 21:30
suss22-Mar-01 21:30 
GeneralRe: Working with installed email client Pin
Erik Thompson23-Mar-01 7:33
sitebuilderErik Thompson23-Mar-01 7:33 
GeneralURGENT - ListView items sort example Pin
Deian22-Mar-01 21:01
Deian22-Mar-01 21:01 
QuestionWhat's up with MFC and GIF/JPG? Pin
Matt Philmon22-Mar-01 18:27
Matt Philmon22-Mar-01 18:27 
AnswerRe: What's up with MFC and GIF/JPG? Pin
Michael Dunn22-Mar-01 18:47
sitebuilderMichael Dunn22-Mar-01 18:47 
GeneralRe: What's up with MFC and GIF/JPG? Pin
23-Mar-01 8:47
suss23-Mar-01 8:47 
AnswerRe: What's up with MFC and GIF/JPG? Pin
Christian Graus23-Mar-01 8:58
protectorChristian Graus23-Mar-01 8:58 
AnswerRe: What's up with MFC and GIF/JPG? Pin
Christian Graus23-Mar-01 9:00
protectorChristian Graus23-Mar-01 9:00 
GeneralRe: What's up with MFC and GIF/JPG? Pin
l a u r e n24-Mar-01 4:59
l a u r e n24-Mar-01 4:59 
GeneralRe: What's up with MFC and GIF/JPG? Pin
Christian Graus24-Mar-01 10:15
protectorChristian Graus24-Mar-01 10:15 
GeneralSetting Text Color for a Control which is Not Enabled Pin
22-Mar-01 6:26
suss22-Mar-01 6:26 
GeneralRe: Setting Text Color for a Control which is Not Enabled Pin
Henry Jacobs22-Mar-01 7:14
Henry Jacobs22-Mar-01 7:14 
GeneralRe: Setting Text Color for a Control which is Not Enabled Pin
23-Mar-01 0:39
suss23-Mar-01 0:39 

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.