Hi Rafi,
To the first part, the answer is pretty much no, two DLLs cannot (or at least shoyld not) share memory. The reason for this is fairly obvious, each DLL should be fairly stand alone (if the DLLs are relying on each other to the point that they need shared memory, then they should probably be combined into one DLL). There are ways to get around this (using files, TCP/IP, shared memory, etc.) but all of them are either slow or hard to implement (and they are mostly not very good programming practice).
For the second part. I may be missing something here, but as long as functionA and functionB are both within the same DLL, why not just store pathname in a local variable, assign it in functionA and then read it in functionB?
Regards,
Ry
an K.