In my C# application, I want to make my controls have the look and feel of XP (what a novel concept, I know.) I am running Visual Studio .Net 2002 on Windows XP Pro
I found articles on the web that explain to
1) Create a file called myapp.exe.manifes
2) Make the contents of the file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><dependency><dependentAssemb ly><assemblyIdentit
type="win32
name="Microsoft.Windows.Common-Controls
version="6.0.0.0
processorArchitecture="X86
publicKeyToken="6595b64144ccf1df
language="*
/></dependentAssembly></dependency></assembly
3) save the file in the same directory as the myapp.ex
I do all this. When I run myapp.exe, I immediately get an error message dialog that reads
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.
What does this mean? I find this message rather unhelpful as I am developing the application and it does not require an install. Note that when I delete the myapp.exe.manifest, the application runs just fine (with the exception that all the controls are the old windows style.) I also can run other demo C# apps that have their corresponding manifest and they work fine
I was able to create a C++ application just fine that used the manifest file (I chose the option in the application wizard to set it up.) I did not see a similar option in the C# application wizard
I think I'm close. I just can't my C# application to work with the manifest
What am I missing
Can anyone help
Thanks
(P.S. Why did Microsoft make this such a pain. Don't users in general want the latest UI by default. Makes no sense to me...)