CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Newkid34

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,173

    Re: Breakout Clone Collision Detection

    i dont understand how booleans in a struct work. can anyone give me some help?
    to be honest i dont know how boolean variables work at all and i tried to read up on it but i am still unclear.
    ...
  2. Replies
    5
    Views
    3,173

    Re: Breakout Clone Collision Detection

    thanks,

    can i ask why this was moved? i am using visual studio and also using WINAPI.

    can i get this moved back to the appropriate sub-forum?
  3. Replies
    5
    Views
    3,173

    Breakout Clone Collision Detection

    #include <windows.h>
    #include <string>
    using namespace std;

    const char g_szClassName[] = "myWindowClass";
    const int ID_TIMER = 1;
    const int BALL_MOVE_DELTA = 4; //ball speed

    typedef struct...
  4. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    as the original problem is solved im going to open a new thread for the current problem. it seems no one is answering this and i think the misleading title may be the cause
  5. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    can someone give me some insight as to how to create an array of bricks instead of drawing each individually? I realize individually it makes it significantly harder to do a brick collision...
  6. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    #include <windows.h>
    #include <string>
    using namespace std;

    const char g_szClassName[] = "myWindowClass";
    const int ID_TIMER = 1;
    const int BALL_MOVE_DELTA = 4; //ball speed

    typedef struct...
  7. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    ohhh your right about that, Thanks. will try and repost
  8. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    #include <windows.h>
    #include <string>
    using namespace std;

    const char g_szClassName[] = "myWindowClass";
    const int ID_TIMER = 1;
    const int BALL_MOVE_DELTA = 4; //ball speed

    typedef struct...
  9. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    ok so COMPLETE code remodification.....

    here is the new code



    #include <windows.h>
    #include <string>
    using namespace std;
  10. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    i cant figure out how to make a brick break program, i have put days of work into this and i dont understand how this is to be easy....Does anyone have, or know of, a tutorial where i can get a...
  11. Replies
    4
    Views
    1,052

    Re: Final c++ Project

    ok but what is the simplest solution?
  12. Replies
    13
    Views
    2,158

    Re: Problem painting the BITMAP

    well what i don't understand is that the file paints the image of the ball that is displayed but not the image of the brick. i was wondering the same thing, where do i declare what the bmp file is,...
  13. Replies
    13
    Views
    2,158

    Problem painting the BITMAP

    #include <windows.h>
    #include "resource.h"

    const char g_szClassName[] = "myWindowClass";

    HBITMAP g_hbmBall = NULL;
    HBITMAP g_hbmBrick = NULL;

    LRESULT CALLBACK WndProc(HWND hwnd, UINT msg,...
  14. Replies
    4
    Views
    1,052

    Final c++ Project

    Well for the final project for my c++ class we have to create a Breakout game using win api. I was wondering if the best thing to do for the blocks would be to include a .bmp file of the blocks. What...
  15. Replies
    5
    Views
    891

    Re: Trouble Includeing a Header

    when i use

    #include "resources.h"

    i end up with these errors

    1>c:\users\mrn5\documents\visual studio 2008\projects\project1new\project1new\resources.h(7) : error C2059: syntax error :...
  16. Replies
    5
    Views
    891

    Re: Trouble Includeing a Header

    If it is in the Same folder as the cpp file shouln't it not matter?
    Also, i dont really kno what you mean, i dont know how to define file paths in MSVC++.
  17. Replies
    5
    Views
    891

    Trouble Includeing a Header

    So i searched MSDN and i cannot figure out why i can't include the resources.h file i created for my program.

    Here is how i did it.

    1- Right click project folder and hit add-new item, chose .h...
  18. Replies
    1
    Views
    756

    Virtual Key Up

    Im trying to put in a case where the window checks if the up key is pressed, and then displays a message, and i know the actual virtual key code for VK_UP is 26 or 0x26. What i dont know is how to...
  19. Replies
    11
    Views
    1,325

    Re: Cant Find the Error In My Project

    if you run the program the file gets created....

    if you want a file create a txt document that is blank and put it in the folder. dont forget to name it petnames.txt

    just to be clear, when you...
  20. Replies
    11
    Views
    1,325

    Re: Cant Find the Error In My Project

    you run the program once, and it creates and edits the file with what you input.

    when you run it again it should come up and say "file found" because you have run the program before. It should...
  21. Replies
    11
    Views
    1,325

    Re: Cant Find the Error In My Project

    my mistake for wrong forum but the file is created when you run the program for the first time, then when you run it again it doesn't work.

    Regards,

    Newkid34
  22. Replies
    11
    Views
    1,325

    Cant Find the Error In My Project

    So i am at the end of this project that makes animals that the user inputs bite each other.
    The only problem i am having is when i go to read from a file that already exists.

    I think i have...
  23. Replies
    1
    Views
    606

    File I/O Problem

    Im havign aproblem with a peice of code in this program, i have posted it after the program in its entirety. What happens when i run the program is it is supposed to check is a file exists. If it...
  24. Replies
    5
    Views
    1,103

    Re: Arrays of Functions?

    ahh this looks like it is the right direction of what the teacher wanted us to do, Thanks.

    As to what im trying to do, i dont even know. my professor leaves these assignments so vague and "open to...
  25. Replies
    5
    Views
    1,103

    Arrays of Functions?

    I need to create an array of the dobite and dobitten functions i have here.
    i have tried to create the array as follows
    string petArray[1] = {&d1.doBite(&c1)};
    cout << petArray[0];

    and i cant...
Results 1 to 25 of 32
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured