Search:

Type: Posts; User: Waterbottle

Search: Search took 0.00 seconds.

  1. Thank you for responding. I tried that now, same...

    Thank you for responding. I tried that now, same problem. Maybe I need to call the DLL function some other way? Sorry for my ignorance, not very familiar with the Windows API, or DLLs.

    .EXE:

    ...
  2. Empty WH_CALLWNDPROC hook crashes program right after WM_WINDOWPOSCHANGING message

    Hi,

    I'm trying to hook into firefox.exe to capture a few messages. Which seems to work fine (messages are received), however when I give the window focus (by clicking on it in the task bar)...
  3. Replies
    13
    Views
    9,689

    char is an 8-bit integer. char blah;

    char is an 8-bit integer.


    char blah;
  4. Replies
    4
    Views
    1,286

    An unsigned int is unable to store values larger...

    An unsigned int is unable to store values larger than 2^32.

    I believe a double would be able to store it. Otherwise you would need a to use a bignum library.
  5. left = (v & 0xFFFF0000) >> 16; right = (v &...

    left = (v & 0xFFFF0000) >> 16;
    right = (v & 0x0000FFFF);

    perhaps?
  6. Replies
    8
    Views
    1,445

    If the number is an integer you could extract a...

    If the number is an integer you could extract a single digit using modulo and division.
    If we have the number 123 then:
    (123 % 1000) / 100 == 1
    (123 % 100) / 10 == 2
    (123 % 10) / 1 == 3
  7. Replies
    2
    Views
    1,295

    Depth Testing

    Hello,

    I'm writing a simple 3d engine. It renders triangles and quads. However, now I'm having a hard time figuring out how to do my depth testing. No polygons will ever intersect. I originally...
  8. Replies
    2
    Views
    1,568

    The window closes as soon as you return from...

    The window closes as soon as you return from main. One way to fix this would be calling getchar before returning.


    getchar();
  9. Replies
    7
    Views
    4,505

    It's intended for the window. It will popup when...

    It's intended for the window. It will popup when an on screen button is clicked.

    And I'm already using PeekMessage.
  10. Replies
    37
    Views
    4,889

    while (abs((x/2*x/2),x) > .001) guess =...

    while (abs((x/2*x/2),x) > .001)
    guess = (x/2);

    You don't change x in the loop, so the loop never ends.
  11. Replies
    7
    Views
    4,505

    I tried the following code for creating the menu...

    I tried the following code for creating the menu in a thread. However nothing appears. TrackPopupMenuEx returns 0, GetLastError returns 0.


    typedef struct popupMenuStruct
    {
    HMENU *menu;
    ...
  12. Replies
    7
    Views
    4,505

    I tried not specifying TPM_RETURNCMD however it...

    I tried not specifying TPM_RETURNCMD however it still didn't return before the menu was closed. The only difference I could see was that it now always returned 1, rather than the identifier of the...
  13. Replies
    7
    Views
    4,505

    TrackPopupMenuEx

    I needed a context menu for my program and found the function TrackPopupMenuEx on MSDN. However this function doesn't return until the menu is closed, and I can't put all my other code on hold until...
  14. Replies
    1
    Views
    2,246

    Problems with vision cone

    I'm making a game where the enemies' vision is represented by a circle segment. I decided to split up the circle segment in line segments and then check if the lines collide with any walls and...
  15. Replies
    10
    Views
    3,910

    That's indeed what I meant. And that's quite...

    That's indeed what I meant. And that's quite helpful, thanks! :)
  16. Replies
    10
    Views
    3,910

    Line-Line distance

    Hi,

    I've been trying to make a function that finds the distance between two lines (stored as a start point and an end point) in a 2-dimensional space, but I can't seem to be able to find a way of...
Results 1 to 16 of 17