Hi,
I need to find a way to pass a pointer as a paramter to EXE file. Is command line sutiable?
Thanks for any help,
Printable View
Hi,
I need to find a way to pass a pointer as a paramter to EXE file. Is command line sutiable?
Thanks for any help,
Assuming Windows here. Yes, but you will have to use ReadProcessMemory. Windows actually keeps memory for each process separate, so that a pointer in one process is going to point to different (or invalid) data in another process.
In fact, Windows passes an hwnd parameter to screen savers when the screen saver is in preview mode, using the command line.
Z.
A window handle isn't a pointer. They're global to all applications.
A window handle is an offset into an internal table, but the app doesn't need to know about that.
Duh =P. Its just a tidbit of information, with a similar situation =).Quote:
Originally posted by parksie
A window handle isn't a pointer. They're global to all applications.
Z.
Oh well. I found a way around. It is supposed a pointer to a database class.
Thanks anyway.