   How to set an adress of a pointer?
  HiI''m trying to make two programs communicate with each other (on the same computer). First program allocates memory space and prepares a pointer to that space. Then it saves the pointer adress to a file, which will be loaded by the other program. And here comes my question:How do I set an adress of a pointer? The adress is written in a string and I have no idea how to convert it to an apropriate format. Is there any built in function? 
  well first off..........THAT WILL NOT WORK(will_no_work) * (infinity) = (dont_do_that)if you need separate programs to communicate then you would generally use sockets (or at least i would)or if you really wanna do the file thing then write the contents of that memory to the file and then have the other program read the data, but the pointer thing wont work therebut just for your viewing pleasure...the way to set the address of a pointer from a char* string ischar* address = "0x00445566";   // or whatevervoid* pointer = atoi(address); "A soldier is a part of the 1% of the population that keeps the other 99% free"  - Lt. Colonel Todd, 1/38th Infantry, Ft. Benning, GA ;  Although your idea isn''t too bad, unfortunately, it''s not going to work.  The OS prevents different programs from getting at each other''s data, unless you specifically arrange to do so with the OS.  If you''re using Win32, here''s MSDN''s Interprocess Communication reference.  It might be complicated, though.  I haven''t used it yet, so I don''t really know what''s involved. ;ClickyTake a look at the interprocess communication articles, tho some of them use MFC (I personally do not believe in using MFC)   _________________________________________"Why, why why does everyone ask ''''why'''' when ''''how'''' is so much more fun"-Spawn 1997 ;  Or memory mapped files.... 