Apr 12, 2011 at 1:01am UTC
For testing purposes I've created a simple hello world messagebox in C++ and compiled with MinGW's g++:
hello.cpp:
1 2 3 4 5 6 7 8
#include <windows.h>
int main()
{
MessageBox(NULL, "Hello World!" , "Hi" , MB_OK);
return 0;
}
The app works fine, displaying the window.
I then created a manifest file and named it to match the executable.
hello.exe.manifest:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" >
<description>Simple Dialog</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
But with the manifest there the window doesn't show up. I hear the beep notification of the messagebox, but nothing visually. I have tested that the manifest works for other apps. Does anyone know why the manifest prevents the window from appearing?
Last edited on Apr 12, 2011 at 1:01am UTC