Results 1 to 4 of 4

Thread: [disable unicode]

  1. #1
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default [disable unicode]

    i get

    error: cannot convert 'const char*' to 'const WCHAR*' for argument '2' to 'HWND__* FindWindowW(const WCHAR*, const WCHAR*)'

    ive coem to the point of knowing from my past C++ experince Disablign UNICODE will fix this, thing is i dotn knwo how to diable UNICODE in Qt o.O

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [disable unicode]

    I don't know about disabling Unicode but you could just use the non-unicode version FindWindowA

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: [disable unicode]

    Quote Originally Posted by tri407tiny View Post
    i get
    error: cannot convert 'const char*' to 'const WCHAR*' for argument '2' to 'HWND__* FindWindowW(const WCHAR*, const WCHAR*)'
    Since you don't show us what you were doing to get this response from your compiler its difficult to help. You are calling a function with parameters of the wrong type, and this possibly has nothing to do with Qt. Perhaps you should focus on addressing this by asking a more targeted question.
    ive coem to the point of knowing from my past C++ experince Disablign UNICODE will fix this, thing is i dotn knwo how to diable UNICODE in Qt o.O
    Unicode is fairly well entrenched in Qt but it may be possible to rebuild it without Unicode using appropriate configure options. This is almost certainly not the best solution to your problem.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: [disable unicode]

    Quote Originally Posted by tri407tiny View Post
    ive coem to the point of knowing from my past C++ experince Disablign UNICODE will fix this, thing is i dotn knwo how to diable UNICODE in Qt o.O
    Please correct your spelling mistakes before you send a post. It's not that much work for you and in exchange you will get a clean response from a non-annoyed person. I think that's worth the effort.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Unicode strings int Qt 4.2.1
    By mkrentovskiy in forum Qt Programming
    Replies: 12
    Last Post: 29th December 2011, 09:02
  2. Unicode
    By qtuser20 in forum Qt Programming
    Replies: 0
    Last Post: 28th September 2009, 21:43
  3. Printing Unicode?
    By auba in forum Qt Programming
    Replies: 2
    Last Post: 4th June 2009, 15:24
  4. source in unicode 4.0
    By conexion2000 in forum Qt Programming
    Replies: 1
    Last Post: 10th August 2007, 11:28
  5. Unicode + plain C++
    By ct in forum General Programming
    Replies: 7
    Last Post: 20th March 2007, 07:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.