I realise that this is an ancient thread but I had this problem last night so thought I'd share what fixed it:
I had the above issue with AOEII:Age Of Kings. My brief spec is Windows 7 Ultimate (SP1 32bit) and an nVidia 8600 GT graphics card. I did the following (make sure you reboot after each install):
Make sure you're running the latest AOEII:AOK patch (2.0a):
Download Details - Microsoft Download Center - DirectX End-User Runtime
Download and install latest DirectX:
Download Details - Microsoft Download Center - Age of Empires II Update v2.0a
Download and install latest nVidia driver suite. I let the software autodetect my card and reset all of my settings to default. I also installed the full software suite:
Drivers - Download NVIDIA Drivers
Finally, right click the AOE shortcut and click properties. Click on the compatability tab and select the following:
- Run this program in compatabilty mode - Pick Windows XP Service Pack 2 (!!NOT 3!!)
- Disable Visual Themes
- Disable Desktop Composition
- Run this program as an Administrator
One of the above options may work on it's own but that's what I had to do to get it running and I tested it after each step.
Good luck!