Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I've tried some code from the internet.

I want to run an executable file ("D:\Daniel\Desktop\a\LoginServer.exe")

If I run following code


QString fileName = "\"D:\\Daniel\\Desktop\\a\\LoginServer.exe\"";
QProcess *process = new QProcess(this);
process->start(fileName);

I only get a debug print "Thread <thread> with code 0 (0x0) has ended."


Do you know how to do?
Posted
Comments
Kornfeld Eliyahu Peter 14-Dec-14 13:01pm    
And why that should mean your exe didn't run?
IceTrailer 14-Dec-14 13:22pm    
There is no error or something returned. No console popped up or similar.
Kornfeld Eliyahu Peter 14-Dec-14 13:23pm    
Code 0 means that the exe run and exited with no error...
What kind of popup did you expected?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900