the solution is:

1) go to the folder where you install final fantasy 7

2) look for ff7.exe, right click on it and select properties

3) click on compatibility tab, check the "run this program...