Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to assign unsigned char in c++? Pin
mike@codeproject8-May-11 5:51
mike@codeproject8-May-11 5:51 
GeneralRe: how to assign unsigned char in c++? Pin
mathivanaan9-May-11 18:48
mathivanaan9-May-11 18:48 
Questionhow to pass values between dialog window in MFC Pin
lamrinraj5-May-11 23:55
lamrinraj5-May-11 23:55 
AnswerRe: how to pass values between dialog window in MFC Pin
Cool_Dev6-May-11 1:07
Cool_Dev6-May-11 1:07 
GeneralRe: how to pass values between dialog window in MFC Pin
lamrinraj9-May-11 1:56
lamrinraj9-May-11 1:56 
QuestionRe: how to pass values between dialog window in MFC Pin
David Crow9-May-11 3:54
David Crow9-May-11 3:54 
AnswerRe: how to pass values between dialog window in MFC Pin
Niklas L6-May-11 1:12
Niklas L6-May-11 1:12 
QuestionBall Physics Pin
Cyclone_S5-May-11 23:51
Cyclone_S5-May-11 23:51 
Hi,

I'm creating a brick game and am having trouble merging these two if blocks. They work independantly fine but not together. Any ideas on how to get them to work. They reverse the velocities of the ball when hitting a brick. I'm also having a problem where the ball sometimes goes through a brick, it flickers and slowly makes its way through,kinda glitchy.

if(Ball_List[b]->gameBall->Bounds.IntersectsWith(Brick1->Bounds))
{

    if((Ball_List[b]->gameBall->Right >= Brick1->Left || Ball_List[b]->gameBall->Left <= Brick1->Right))
    {
        Ball_List[b]->xVel = -Ball_List[b]->xVel;

    }

    if((Ball_List[b]->gameBall->Bottom >= Brick1->Top || Ball_List[b]->gameBall->Top <= Brick1->Bottom))
    {
        Ball_List[b]->yVel = -Ball_List[b]->yVel;
    }
}

AnswerRe: Ball Physics Pin
Richard MacCutchan6-May-11 2:58
mveRichard MacCutchan6-May-11 2:58 
GeneralRe: Ball Physics Pin
Cyclone_S6-May-11 7:57
Cyclone_S6-May-11 7:57 
AnswerRe: Ball Physics Pin
CPallini6-May-11 10:29
mveCPallini6-May-11 10:29 
GeneralRe: Ball Physics Pin
Cyclone_S6-May-11 21:35
Cyclone_S6-May-11 21:35 
AnswerRe: Ball Physics Pin
Stefan_Lang10-May-11 5:11
Stefan_Lang10-May-11 5:11 
QuestionSetting BGColor to a WebBrowser Control [modified] Pin
pix_programmer5-May-11 1:32
pix_programmer5-May-11 1:32 
QuestionRe: Setting BGColor to a WebBrowser Control Pin
వేంకటనారాయణ(venkatmakam)5-May-11 1:54
వేంకటనారాయణ(venkatmakam)5-May-11 1:54 
AnswerRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 2:17
pix_programmer5-May-11 2:17 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
_Flaviu5-May-11 2:32
_Flaviu5-May-11 2:32 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 2:34
pix_programmer5-May-11 2:34 
QuestionRe: Setting BGColor to a WebBrowser Control Pin
Maximilien5-May-11 7:19
Maximilien5-May-11 7:19 
AnswerRe: Setting BGColor to a WebBrowser Control Pin
pix_programmer5-May-11 18:08
pix_programmer5-May-11 18:08 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
barneyman5-May-11 20:03
barneyman5-May-11 20:03 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
Cool_Dev5-May-11 22:18
Cool_Dev5-May-11 22:18 
GeneralRe: Setting BGColor to a WebBrowser Control Pin
వేంకటనారాయణ(venkatmakam)5-May-11 22:50
వేంకటనారాయణ(venkatmakam)5-May-11 22:50 
QuestionA strange thing about using SHGetFileInfo to get icon [modified][solved] Pin
yu-jian4-May-11 22:55
yu-jian4-May-11 22:55 
AnswerRe: A strange thing about using SHGetFileInfo to get icon Pin
Michael Dunn5-May-11 13:46
sitebuilderMichael Dunn5-May-11 13:46 

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.