Delphi XE UxTheme ユニットには、次の宣言があります。
function DrawThemeTextEx(hTheme: HTHEME; hdc: HDC; iPartId: Integer; iStateId: Integer;
pszText: LPCWSTR; cchText: Integer; dwTextFlags: DWORD; pRect: PRect;
var pOptions: TDTTOpts): HResult; stdcall;
external themelib name 'DrawThemeTextEx' delayed;
SP3 を適用した Windows XP Professional には、uxtheme.dll にそのような機能がありません ( http://www.nirsoft.net/utils/dll_export_viewer.htmlの dllexp.exe で確認) 。
私のアプリケーションはプロシージャの読み込みを遅らせ、次のエラーでランタイムに失敗したようです:
Project mtgstudio.exe raised exception class EExternalException
with message 'External exception C0FB007F'.
この問題は JVCL でも発生しましたが、http: //andy.jgknet.de/blog/2009/09/once-upon-a-delayed-jvcl-time/ に従って解決されました。
DevExpress コンポーネントでも使用されているため、UxTheme を修正する必要があります。
UxTheme.pas DrawThemeTextEx 宣言を遅延しないようにパッチ/修正する方法はありますか?