The problems you had are mainly due to Ogre versioning issues. The line:
Code: Select all
d_texelOffset = Point((float)d_render_sys->getHorizontalTexelOffset(), (float)d_render_sys->getVerticalTexelOffset());
Uses methods that were added shortly after the 0.14 release of Ogre, though they have now been merged into the 0.14 source tree as well (not sure if the download packages have them though, you may have to get the 0.14 branch from the Ogre CVS repository). Without these calls rendering og GUI imagery will be incorrect using the D3D driver for Ogre.
The library issue is a similar story, though you have applied the appropriate fix already... Ogre has changed it's configuration recently to output the debug version with the _d appended, if you're using a version that does not do this, all you have to do is modify the project settings for the OgreGUIRenderer within CEGUI and change OgreMain_d.lib to OgreMain.lib.
HTH
CE.