The first question I would have at this point is:
Have you tried running the 32-bit version of your program on your friend's 64-bit PC? Most 32-bit programs will work without issue in 64-bit environments (unless, that it, they interact with other applications and in the 64-bit environment those applications happen to be 64-bit).
Once this has been confirmed as still not working, the next question I would ask is:
Have you have tried to run it on a 32-bit copy of Windows 7? In other words, it could be an issue with Windows 7 compatibility (UAC is the first that springs to mind, but the list of possibilities is quite extensive!), rather than an architecture issue.
If the answer to the first question is that it still doesn't work, and the answer to the second is that it does work under 32-bit Windows 7 (or, for that matter, even if this doesn't work either), please consider posting your code (at least the _readmemory function and any functions it calls) so that we can walk through the code line-by-line to find where the incompatibility might be.