You must have the same versions of Heroes installed, with the same patches and scripts. Also, you need a patch for online play. If it still kicks you out after checking everything, the problem is with Windows 7.
Could you tell me where to find a patch for online play?