|
-
Jan 24th, 2003, 08:30 PM
#1
Thread Starter
Hyperactive Member
Passing Pointer to EXE
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,
-
Jan 25th, 2003, 12:03 AM
#2
Frenzied Member
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.
-
Jan 25th, 2003, 05:31 AM
#3
Monday Morning Lunatic
A window handle isn't a pointer. They're global to all applications.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jan 25th, 2003, 09:53 AM
#4
A window handle is an offset into an internal table, but the app doesn't need to know about that.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 25th, 2003, 06:21 PM
#5
Frenzied Member
Originally posted by parksie
A window handle isn't a pointer. They're global to all applications.
Duh =P. Its just a tidbit of information, with a similar situation =).
Z.
-
Jan 25th, 2003, 07:40 PM
#6
Thread Starter
Hyperactive Member
Oh well. I found a way around. It is supposed a pointer to a database class.
Thanks anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|