Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Messagebox and Manifest

Messagebox and Manifest

Scheduled Pinned Locked Moved C / C++ / MFC
xmlannouncementlearning
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    S van Leent
    wrote on last edited by
    #1

    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 :-)");

    J S 2 Replies Last reply
    0
    • S S van Leent

      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 :-)");

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      This is most weird! Try adding the flag MB_ICONINFORMATION as well as MB_OK (Just a guess) . Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      S 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        This is most weird! Try adding the flag MB_ICONINFORMATION as well as MB_OK (Just a guess) . Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        S Offline
        S Offline
        S van Leent
        wrote on last edited by
        #3

        Tried 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 :-)");

        1 Reply Last reply
        0
        • S S van Leent

          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 :-)");

          S Offline
          S Offline
          S van Leent
          wrote on last edited by
          #4

          Do I need to register a manifest file or something, I really don't know whats going wrong. LPCTSTR Dutch = TEXT("Double Dutch :-)");

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups