PDA

View Full Version : Qt Creator in Windows 8



sajis997
21st May 2015, 09:15
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.




int main(int argc, char* argv[])
{
// the argc value here is different in two development environments
return 0;
}



Any hint folks ?


Thanks

sajis997
21st May 2015, 15:24
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.

anda_skoa
21st May 2015, 17:55
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,
_