Messagebox and Manifest
-
When I include a manifest (XML) file to use the Common Controls version 6 in the Resource or the path, and I call ::MessageBox(NULL, TEXT("Hello"), TEXT("Hello"), MB_OK), the messagebox isn't shown (I only hear a sound), if I do not include the manifest everything works fine. It goes even wrong when I do:
#include "resource.h" // only when using the resource variant #include <tchar.h> #include <windows.h> int __stdcall _tWinMain (HINSTANCE hInstance, HINSTANCE, TCHAR * lpCmdLine, int mainFrameDisplayMode) { MessageBox(NULL, TEXT("Hello"), TEXT("Hello"), MB_OK); }
Sjoerd van Leent LPCTSTR Dutch = TEXT("Double Dutch :-)");
-
When I include a manifest (XML) file to use the Common Controls version 6 in the Resource or the path, and I call ::MessageBox(NULL, TEXT("Hello"), TEXT("Hello"), MB_OK), the messagebox isn't shown (I only hear a sound), if I do not include the manifest everything works fine. It goes even wrong when I do:
#include "resource.h" // only when using the resource variant #include <tchar.h> #include <windows.h> int __stdcall _tWinMain (HINSTANCE hInstance, HINSTANCE, TCHAR * lpCmdLine, int mainFrameDisplayMode) { MessageBox(NULL, TEXT("Hello"), TEXT("Hello"), MB_OK); }
Sjoerd van Leent LPCTSTR Dutch = TEXT("Double Dutch :-)");
This is most weird! Try adding the flag
MB_ICONINFORMATION
as well asMB_OK
(Just a guess) . Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
This is most weird! Try adding the flag
MB_ICONINFORMATION
as well asMB_OK
(Just a guess) . Joaquín M López Muñoz Telefónica, Investigación y DesarrolloTried it but it didn't work, it's even more weird, I looked at the sorce of MFC, and know I'm really totally confused, it's done the same way I do. LPCTSTR Dutch = TEXT("Double Dutch :-)");
-
When I include a manifest (XML) file to use the Common Controls version 6 in the Resource or the path, and I call ::MessageBox(NULL, TEXT("Hello"), TEXT("Hello"), MB_OK), the messagebox isn't shown (I only hear a sound), if I do not include the manifest everything works fine. It goes even wrong when I do:
#include "resource.h" // only when using the resource variant #include <tchar.h> #include <windows.h> int __stdcall _tWinMain (HINSTANCE hInstance, HINSTANCE, TCHAR * lpCmdLine, int mainFrameDisplayMode) { MessageBox(NULL, TEXT("Hello"), TEXT("Hello"), MB_OK); }
Sjoerd van Leent LPCTSTR Dutch = TEXT("Double Dutch :-)");
Do I need to register a manifest file or something, I really don't know whats going wrong. LPCTSTR Dutch = TEXT("Double Dutch :-)");