sajis997
21st May 2015, 08: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
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