So as I understand, compatibility only refers to the compiler itself, not to the compiler system (including units, resource files etc.), right?
FPC actually isn't only a compiler, it also comes with somekind of standard libraries for classic Pascal languages i.e. system unit, crt unit, dos unit, etc. which some of them are also provided by Borland Pascal 7. Plus, some additional standard packages for modern Pascal languages i.e. sysutils unit, classes unit, dateutils unit, db units, etc. which some of them are not provided by Borland Pascal 7 but available on Delphi. With bonus some more additional useful and cross platform packages from FPC itself i.e. fpweb unit, sqldb unit, etc.
Back to the problem: Almost none of the units can be found:
OWindows, WinProcs, WinTypes, FileDlgs, WinDos, BWCC, ODialogs
These units are not standard libraries for Pascal language. AFAIR, they're units for (old) Windows APIs, probably 16-bit Windows. CMIIW. The units for (modern) Windows APIs might be already available in
Lazarus, perhaps you want to check them out.
BP7 only contains the compiled versions of the units. Source files seem to be hard to find, at least I couldn't find any on the internet. Instead of rewriting the units, I guess rewriting the application makes more sense, doesn't it?
Even if you got the source files for those units, some of the APIs may no longer available or have changed in modern Windows system. However, I think it's still possible to modify your app to make it works on current Windows system.
So any suggestions where one could get source code for the units or find some advice how to convert the application?
I suggest you to try compiling your app using Lazarus (with all its Windows units) and modify it as necessary without rewriting the whole app. Well, it may not as easy as it sounds, but I believe it won't be as complicated as rewriting it. Unless your app is a simple app which is not too hard to rewrite it from scratch using FPC.
I am surprised that I find so little information on the net. I can't be the first to convert old BP7 applications, ... or maybe I am?! :-)
I think you're not the first, I have done it myself long time ago. Unfortunately, AFAIR, I didn't share my experience on the internet. I believe most people didn't do it either. Perhaps it's the reason why there is so little information about it on the internet.