Changing a var by another app

This is a discussion on Changing a var by another app within the C++ Programming forums, part of the General Programming Boards category; Cant you allocate variables specific memory adresses? That way your second app could just edit the adress from a pointer?...

  1. #16
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Cant you allocate variables specific memory adresses? That way your second app could just edit the adress from a pointer?
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  2. #17
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    No because of two reasons:
    1) We can't specify the address by ourselves at this level.
    2) Windows protects apps memory from being written by anothers.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #18
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    I dont want to use windows. I just want to get rid of it's protection.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  4. #19
    Distributed Programming beyonddc's Avatar
    Join Date
    Dec 2001
    Location
    Mass
    Posts
    31
    Since I been mostly doing distributed programming.
    I know that if you use CORBA , it'll work exactly the way you want, but CORBA is usually used for distributed programming, so if you're using it for your case, it might be a little overkill for your case.

    oh, you can also try looking into Adaptive Communication Environment, it has a nice set of tools that you can use for share memory. That's what I use on Solaris for using share memory. ACE is also ported to Windows also, so you can use it on Windows platform.
    -dc

  5. #20
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by siavoshkc
    I dont want to use windows. I just want to get rid of it's protection.
    Then use MS-DOS 6.X! or write your own operating system. Or learn to live within the constraints of the hardware and os you are using.

  6. #21
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    >>learn to live within the constraints of the hardware and os you are using.
    This is exactly what I like to do.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help assignment
    By 6kaine9 in forum C Programming
    Replies: 26
    Last Post: 10-19-2008, 08:51 PM
  2. best program to start
    By gooddevil in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-28-2004, 05:56 PM
  3. server question
    By xddxogm3 in forum Tech Board
    Replies: 24
    Last Post: 01-21-2004, 12:12 AM
  4. pasword app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-07-2003, 10:28 AM
  5. Vigenere Decipher/Encipher
    By Xander in forum C++ Programming
    Replies: 5
    Last Post: 02-15-2002, 08:24 AM

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