Quote Originally Posted by darkyzzw0w View Post

I've been writing some code and this is part of it:
Code:
...
URLDownloadToFile(NULL, _T("http://something/something.txt"), path, 0, NULL);
return 0;
}
The file gets downloaded successfully but the downloader wont exit (return value 0). So it remains active.
I am sure the problem is URLDownloadToFile()
How is path defined?

Please produce a full working test program that demonstrates the problem (like Igor posted) and post the program here.