how to get memory address applied in other program?

This is a discussion on how to get memory address applied in other program? within the C Programming forums, part of the General Programming Boards category; Hi,all I have applied a block of memory in one program (program A), and the address of the block of ...

  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,786
    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, 02:30 PM
  2. What does this do (Windows API)?
    By EVOEx in forum Windows Programming
    Replies: 4
    Last Post: 12-19-2008, 09: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, 09:39 AM
  5. Program abort due to memory problem
    By cazil in forum C++ Programming
    Replies: 5
    Last Post: 01-21-2002, 11:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21