Re: [wininet]add implementation of few more options - try6
10 Nov
2005
10 Nov
'05
9:27 a.m.
Hi Vijay, sorry I wasn't more explicit. This is what I mean: + hurl = InternetConnectA(hinet,"www.winehq.com",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,0,0); This could fail for many reasons other than that InternetConnectA has a flaw (the test machine may be offline, winehq.com may be down, etc.) Therefore you must deal with the failure, but using ok() is not correct--a failure doesn't necessarily indicate a failure in the test. So you must something like the following: if (hurl) { /* do tests that depend on hurl here */ InternetCloseHandle(hurl); } --Juan __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
7341
Age (days ago)
7341
Last active (days ago)
0 comments
1 participants
participants (1)
-
Juan Lang