Results 1 to 3 of 3

Thread: Qt Creator in Windows 8

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Qt Creator in Windows 8

    Hello forum,

    I am trying to port an application from visual studio 2012 to Qt. The compilation worked fine both with visual studio and Qt. But I am having different value in the argc argument in Qt and this value is changing the program logic entirely - eventually results in program exception set by the application. The argc value is supposed to get the value 1, but I am getting 2 and the argv array is containing 67 'C'. I am not sure what is actually causing this issue.

    Qt Code:
    1. int main(int argc, char* argv[])
    2. {
    3. // the argc value here is different in two development environments
    4. return 0;
    5. }
    To copy to clipboard, switch view to plain text mode 

    Any hint folks ?


    Thanks
    Last edited by sajis997; 21st May 2015 at 10:11.

  2. #2
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt Creator in Windows 8

    Hello Folks,

    Is there anything missing in my last post ? I did not get any response so far. Please let me know, I shall explain the issue I am experiencing again.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator in Windows 8

    How to you launch your application?
    argc is the number of commandline arguments, usually 0 being the name of the executable.

    Also there is no Qt code in your code snippet, how is this Qt related?

    Cheers,
    _

Similar Threads

  1. How to use QWT in QT4 Creator on Windows?
    By Kevin Ching in forum Qwt
    Replies: 12
    Last Post: 17th May 2011, 16:58
  2. Qt Creator 2.1.0 and Qt 4.7.2 on Windows
    By OMGHero in forum Newbie
    Replies: 1
    Last Post: 10th March 2011, 22:11
  3. Qt Creator Installation - Windows XP
    By SixDegrees in forum Qt Tools
    Replies: 9
    Last Post: 23rd November 2010, 20:44
  4. QT Creator DLL Question (Windows)
    By Sisco55 in forum Newbie
    Replies: 8
    Last Post: 29th November 2009, 21:37
  5. Replies: 2
    Last Post: 25th November 2009, 23:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.