Reputation: 3215
I have wrote an app in Qt/C++ using Qt creator. What's happening is that in Qt creator the app works fine (file transfer between android and mac).
As soon as I'm generating the app and run it out of Qt creator some files copy is failing all the time.
I was thinking that it's coming from how we run the debug compared to the official app.
Is there any behavior issue between:
if(item)
CopyFile(LocalPath, Android_device);
and
if(item) {
ret = CopyFile(LocalPath, Android_device);
if(ret != 0)
...
I do not ask in case of coding difference but mostly in case 1, is the app is not waiting the feedback of Copy and in case, do we need to wait the feedback before continuing as I introduce a "if"
The app is not using multithreading it's just a basic Qt/C++ app
Thanks
Upvotes: 0
Views: 262
Reputation: 11418
First version gets a return value and throws it away, second version uses the return value. There is no difference in what CopyFile(LocalPath, Android_device);
does.
Upvotes: 1