E2161 Warning: Duplicate resource: Type 24 (user-defined), ID 1; DELPHI


The TXPManifest is component that only appears at designtime. When your code is compiled, it includes the WindowsXP.res resource file, which contains the manifest resource needed to enable XP style themes. In Delphi 2007, you can enable theme support in the project options. It’s a checkbox labeled “Enable runtime themes” on the Application page of the Project Options dialog.
You can’t have both “Enable runtime themes” checked and an instance of TXPManifest in your application. They both try to pull in WindowsXP.res and the second attempt will FAIL. The fix for this is easy. You can disable the “Enable runtime themes” setting or remove the TXPManifest component from your form and remove the reference to xpman in that form’s uses clause.

No comments:

Post a Comment

Pages