Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Win32 Dialog box in Qt
Forum Updated to NodeBB v4.3 + New Features

Win32 Dialog box in Qt

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 985 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.
  • A Offline
    A Offline
    ArbolOne
    wrote on last edited by
    #1

    @void abc::uiexception::show() {
    std::string apstr;
    apstr = "File: " + getFile() + "\n Method: " + getMethod() + "\n Line: " + abc::to_string(getLine());
    MessageBox(NULL, (LPCTSTR )apstr.c_str(),(LPCWSTR)getMessage().c_str(), MB_OK);
    }@
    Using the above code I intend to display error information to the user, however, the message pops up in some unknown language," look":https://skydrive.live.com/?cid=365DC2CB1062D510&id=365DC2CB1062D510!185&v=3#cid=365DC2CB1062D510&id=365DC2CB1062D510!185&v=3

    Is it that I am not allowed to make calls to the Win32 API from Qt?

    TIA

    This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on last edited by
      #2

      Did you try using a QString instead?


      Free Indoor Cycling Software - https://maximumtrainer.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ArbolOne
        wrote on last edited by
        #3

        Humm... I thought of it, but part of the description in this code is that it is std and Win32 only code. Using Qt lib would make things faster, but this is a legacy library.

        Thanks though, I appreciate the help.

        This is not the first time you've been here, at the end you've always lost. You create viruses and we the cure, and in this battle you've always lost.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved