@catshy
1\ Alex's code seems fine at a glance, of course incomplete but it should do ok.
Now nobody can magically guess what is wrong on your end, it's like you went to car mechanic and told him "there is problem with my car" and left.
Is it the engine? The wheels? There is no gas in the tank?
Be specific! What errors are you getting?
BTW, my guess would be #include path is not correctly set.
2\ Plugins discussed here are DLLs that are injected into the game exe. You can also make an exe that will read RAM and get relevant information from Heroes 3. I've had bad experience with EXE as they have a habit of stopping to work every few HDmod updates and then you have to recompile over and over, whereas a well programmed DLL that is injected has little chance of breaking in the future.
Alex has considerable experience on this (see LMOracle), he can answer better than I ever will.
3\ wrt your last question, I would suggest to ignore HotA for now and start working in SoD. The HDmod allows for easy injection in SoD so you don't have to worry about this part right away while you learn how to do the things you are looking for.
Once your plugin works in SoD, HotA will be 99.9% the same, with maybe a few differences to be accounted for depending on what statistics you are looking to display. At this point only it'll be time to worry about injection into HotA exe.
Baby steps eventually lead to running
@Ben80
Your comment about shifted blocks has got me thinking about potential fix to a lot of issues. I think a big part of RMG problems is zones that are not correctly closed by obstacles but blocked off by creatures. This leads to roads going in the wrong direction and all kinds of problems. It is likely that the core of the solution to enhance RMG lies in fixing sub_00541630 or a similar function responsible for delimitation of connected zones by roads.
Food for thought.
Sorry about my non-Russian posts, I've been told on HW it's better I write in English than try through translator
I could make effort to learn a bit but it probably be worse than translator)