Cant you allocate variables specific memory adresses? That way your second app could just edit the adress from a pointer?
Printable View
Cant you allocate variables specific memory adresses? That way your second app could just edit the adress from a pointer?
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.
I dont want to use windows. I just want to get rid of it's protection.
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.
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.Quote:
Originally Posted by siavoshkc
>>learn to live within the constraints of the hardware and os you are using.
This is exactly what I like to do.