Boris,
...unfortunately my English is not good enough...
Don't be rediculous, your English is great!
The link below explains the concept of Pcode. It is rather techincial but the basic issue is that it emulates running on a theoretical CPU, so the OS may be an issue.
http://en.wikipedia.org/wiki/P-code_machine
Can you run the same EXE compiled on the XP machine on the Windows 7 machine without the error?
I know that you may think you are compiling with exactly the same LIBs on the new machine but sometimes on an older machine there are old LIBs in the path somewhere that get linked in by mistake. I have had this happen and it drove me nuts trying to find the problem.
You could use a file compare program to see if EXEs compiled on both machines are exactly the same or not.
The 3-party SQL.LIB is going to continue to be a problem. If you can compile a working program on the XP machine that works under Windows 7, then you could just work on the XP machine and then transfer the EXEs to the Windows 7 machine. It's a pain but it is a solution.
Where did you get the 3-party lib? Can you get the source or a newer version? There is a version of a SQL RDD available on this forum, is that the same one you are using? If not, maybe you can convert to it so you will have the source.
This is why I am very resistant to using any 3-party lib that I don't have the source for.
Regards,
James