Thread: Changing a var by another app

  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,246
    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,246
    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,246
    >>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

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, 01: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, 09:24 AM