Thread: how to get memory address applied in other program?

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    16

    how to get memory address applied in other program?

    Hi,all

    I have applied a block of memory in one program (program A), and the address of the block of the memrory is stored in the the global varible of the program(program A), . How can I get this memroy address in other program while the program A is runing?

    the plateform is windows.


    Thanks in advance.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Get the first program to communicate the memory address of the variable to the second program...then the second program opens a handle to the first and then calls ReadProcessMemory

    Bit of a potch though IMO....

    Better to use some form of Inter Process Communication such as a pipe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  2. What does this do (Windows API)?
    By EVOEx in forum Windows Programming
    Replies: 4
    Last Post: 12-19-2008, 10:48 AM
  3. Memory Address
    By Stack Overflow in forum C Programming
    Replies: 5
    Last Post: 05-25-2004, 11:43 AM
  4. my C++ program hangs during memory deallocation.
    By the-tzar in forum C++ Programming
    Replies: 6
    Last Post: 03-06-2004, 10:39 AM
  5. Program abort due to memory problem
    By cazil in forum C++ Programming
    Replies: 5
    Last Post: 01-21-2002, 12:55 PM