No, you see it WON'T be erroneous because I'm using the debugger to find the memory address from the completed code.
The function pointer code will be contained within a DLL that will be loaded...
Type: Posts; User: vulcan_146
No, you see it WON'T be erroneous because I'm using the debugger to find the memory address from the completed code.
The function pointer code will be contained within a DLL that will be loaded...
Oh sorry, I wasn't clear enough.
I know how to do it like that. I'm saying if I only know the hexadecimal memory address of a function how can I get it to work.
Say I have the Memory Address of a function, and I know the return type and the paramter types, how can I call it?
I tried something like this:
typedef void(*TESTFUNCTION)(void);
...
...
I am making a thread for my Ray-Casting engine that paints one column of the screen. However for some reason, the thread cannot execute any paint commands.
[CODE]
long WINAPI Thread(long...
Nevermind, problem fixed.
Note:
for (int i = 0; i <= 19; i++)
should be i <= 99
#include <windows.h>
#include <math.h>
#include <fstream.h>
#pragma resource "icon.res"
#define ID_TEXTURE 1000
#define ID_ICON 100
#define PI 3.14159265358979323846
Weird, I use BCB5.5 and only have to put in #include <iostream.h>.
I think he means that he wants to know how to calculate the boundaries of an isometric box because they are boxes at angles.
Ah.... I figured out why I couldn't get it to work in Win API: WM_MOUSEMOVE returns the mouse coordinates relative to the Window while SetCursorPos sets coordinates in screen coordinates.
I'm trying to make a FPS. When you move the mouse, you look in a different direction. (Like Counterstrike, or Quake) Problem is, when the cursor moves off the window, I can no longer get any...
>Is it a generated header file?
Yes, you can search your computer for it. Or, you could make your own.
I made the pens Global because if I put them into the WM_PAINT message I keep getting "case bypasses declaration of local variable"
Another SideEffect: Black Pop up menus for ALL Apps after this glitch has happened.
#include <windows.h>
HDC MapDC;
HWND hWnd;
const char ClsName[] = "Grid Test";
const char WindowCaption[] = "Grid Test";
LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM...
If I were to say drag a window around alot, it will start to glitch. If this window has moved to the background once or more, it much easier to do this.
For some reason, I can't use PrintScreen...
http://www.winprog.org/tutorial/bcpp.html
AHA! Crazy Borland, not having bcr32 automatically linking the files. But I got it now.
Yes I am. I will compile the program and then run brc32. (It's suppose to make the .RES, which it does, and link it) Since it doesn't link it, I runk ilink32 seperately and then get that error.
...
I'm trying to link a .res file with my .exe. I am using the freeware command-line compiler from Borland. However, anytime I try to link them I get: EXE contains invalid OMF record type 0x4D. What's...
Thanks! Worked Great!:D
I decided to make a simple Ray-Casting Engine. Right now all you can do is press the LEFT Arrow Key to turn left, however, the window can't seem to refresh fast enough and there is thus terrible...
MessageBox(NULL, "Hit OK, type the passkeys\nand hit ENTER.", "Run", MB_OK);
That's Windows API right? If you want to make a Windows Program you have to change function main to function WinMain,...
for (x=0;x=length;x++)
The equal sign is an assignmwnt operator; it is used to set a variable or array to a value.
You want the double equal sign, which tests if the two are equal.
for (x=0;...
I FINALLY GOT IT!
The command line was -tW. It was just very hard to find that!