I tried copying ANSI.SYS and CONFIG.NT from XP into the C:\Windows\System32 folder on my Windows 7 system, and editing CONFIG.NT to load the ANSI.SYS driver, but it doesn't seem to have any effect.
If you have Windows 7 Pro or Ultimate then you can download and install "XP Mode", I expect that your program would under XP mode OK.