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:
...
Type: Posts; User: Waterbottle
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:
...
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)...
char is an 8-bit integer.
char blah;
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.
left = (v & 0xFFFF0000) >> 16;
right = (v & 0x0000FFFF);
perhaps?
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
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...
The window closes as soon as you return from main. One way to fix this would be calling getchar before returning.
getchar();
It's intended for the window. It will popup when an on screen button is clicked.
And I'm already using PeekMessage.
while (abs((x/2*x/2),x) > .001)
guess = (x/2);
You don't change x in the loop, so the loop never ends.
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;
...
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...
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...
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...
That's indeed what I meant. And that's quite helpful, thanks! :)
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...