Search:

Type: Posts; User: Raison

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    6,364

    Thanks guys. I forgot to mention that I did...

    Thanks guys.

    I forgot to mention that I did call the function in my game loop.

    And indeed, it is the unsigned char problem.
  2. Replies
    6
    Views
    6,364

    class Keyboard : public Controller { public:...

    class Keyboard :
    public Controller
    {
    public:
    Keyboard(LPDIRECTINPUT8 pDI, HWND hwnd);
    ~Keyboard(void);
    bool shutdown();
    bool read();
    void clear();
    bool buttonDown(char key){ return...
  3. Replies
    6
    Views
    6,364

    DirectInput arrow keys

    What are the possible reasons why my directinput code can recognise normal keys like A-Z but it just doesnt recognise arrow keys like DIK_UP,DIK_LEFT,DIK_RIGHT,DIK_DOWN.
  4. Replies
    10
    Views
    6,667

    Hi darkness, thank you for ur elaborated...

    Hi darkness, thank you for ur elaborated explanation. I really think your suggestion is good.



    // will be using a shrunken rect to represent round ball
    Ball
    -shrunkenX:double // coord of...
  5. Replies
    10
    Views
    6,667

    i have done a rough class diagram, will be using...

    i have done a rough class diagram, will be using c++.



    // this class will contain all game logic
    Breakout
    - level: int // for determine speed of game and width of paddle
    - blockmap: int[][]...
  6. Replies
    10
    Views
    6,667

    I am intending to use opengl and win32API. They...

    I am intending to use opengl and win32API. They are something i self-taught myself and i want to put them into practice.

    I will code as much as i can. Will post again when i have problem with the...
  7. Replies
    10
    Views
    6,667

    Reference to making breakout game

    Hi guys, i intend to make a breakout game. But i dont know how to start. Can someone give me a direction or reference to making breakout? Mainly i need to know what kind of mathematical theory i...
  8. Replies
    17
    Views
    5,592

    He claimed he opened an unknown e-mail. There...

    He claimed he opened an unknown e-mail. There were two attachments but he didnt opened it. It crashed his pc and then that's how everything happened. I told him to restart in safe mode and scan his...
  9. Replies
    17
    Views
    5,592

    What is this virus?

    My friend's PC is now lagging very badly on startup. His PC seems to have alot of processor activities that he cant even start any application. When his processor finally stops processing, the system...
  10. Replies
    2
    Views
    4,571

    Thanks for the help. Your suggestion solved my...

    Thanks for the help. Your suggestion solved my problem. It took me a while to understand ur code. I managed to avoid the use of the stack ADT by storing the handle of the child window. Then I call...
  11. Replies
    2
    Views
    4,571

    Child window cant receive keyboard inputs

    I have a parent window of this style:
    WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX

    then i have a child window of this style:
    WS_CHILD | WS_VISIBLE

    I want my child...
  12. Replies
    14
    Views
    3,846

    Thanks for the reply, stan. I coudnt startup...

    Thanks for the reply, stan.

    I coudnt startup the UPS. I get a "Error 2481: The UPS is not configured correctly" message. Guess I will go check up what is that message first.
  13. Replies
    14
    Views
    3,846

    My computer restarts by itself

    wat could be the possible reasons my computer restarts by itself?? I was just reading some pdf file and my virus scan was running. Then all of the sudden, the computer restarts.
  14. Replies
    6
    Views
    6,066

    I always tot the compiler knows how to link them...

    I always tot the compiler knows how to link them together. Guess I will start including headers inside the headers from now on
  15. Replies
    6
    Views
    6,066

    document.cpp: #include #include...

    document.cpp:

    #include <iostream>
    #include <string>
    #include "document.h"

    using namespace std;

    /*.........Implementations of class document....*/
  16. Replies
    6
    Views
    6,066

    Yes thanks, i am aware of that namespace danger....

    Yes thanks, i am aware of that namespace danger. My program was just a small application, so i was lazy to specify the namespace. But it's really strange. I never had to include a library header in...
  17. Replies
    6
    Views
    6,066

    include library header in header files

    I was working with xemacs in unix. One of my c++ class header file has a string variable. E.g.:

    document.h:


    #ifndef DOC_H
    #define DOC_H

    #include <string>
    using std::string;
  18. Replies
    16
    Views
    47,705

    if ((life_array[row-1][col-1])=='X') ...

    if ((life_array[row-1][col-1])=='X')
    num_neighbors++;
    if ((life_array[row-1][col])=='X')
    num_neighbors++;

    //not right, i think
    if...
  19. Replies
    16
    Views
    47,705

    if ((life_array[row][col])=='X') //If box has an...

    if ((life_array[row][col])=='X') //If box has an X
    {
    num_neighbors=checkx(life_array[row][col],row,col);
    if (num_neighbors != 3) //Conditions to...
  20. Replies
    12
    Views
    5,305

    Hmm, i have encountered yet another problem, so...

    Hmm, i have encountered yet another problem, so i'm gonna post it here.


    // setup common controls
    icc.dwSize = sizeof(INITCOMMONCONTROLSEX);
    icc.dwICC = 0x00004000;//ICC_STANDARD_CLASSES...
  21. Replies
    12
    Views
    5,305

    I managed to solve the problem by adding PatBlt...

    I managed to solve the problem by adding PatBlt while handling WM_PAINT msg.



    void mainFrame::mainWindow_onPaint(HWND hwnd)
    {
    PAINTSTRUCT ps;

    HDC hDC = BeginPaint(hwnd,&ps);...
  22. Replies
    12
    Views
    5,305

    Removed all the ReleaseDC()s and EndPaint()...it...

    Removed all the ReleaseDC()s and EndPaint()...it still didnt work.
    The strangest thing is that i checked the brush in the hDC using GetCurrentObject() and OBJ_BRUSH during every WM_PAINT msg. It has...
  23. Replies
    12
    Views
    5,305

    ack...sorry i was doing cut and paste to...

    ack...sorry i was doing cut and paste to replicate the problem and the SelectBrush() wasn't there at first.

    Here is the actual problem:


    hDC = GetDC(hwnd);


    HBITMAP hbitmap;
  24. Replies
    12
    Views
    5,305

    I am quite sure i can delete the bitmap before i...

    I am quite sure i can delete the bitmap before i select the brush. Anyway i tried to select it in without deleting the bitmap. It still didnt work.
  25. Replies
    12
    Views
    5,305

    I have only made one window. It has its own DC...

    I have only made one window. It has its own DC and it is suppose to retain any changes in its DC attributes right? So if I change the brush after creating the window, it should be able to paint the...
Results 1 to 25 of 133
Page 1 of 6 1 2 3 4