Click here to Skip to main content
15,878,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: avi codec information Pin
leppie16-May-03 22:39
leppie16-May-03 22:39 
GeneralRe: avi codec information Pin
cbiacca17-May-03 9:33
cbiacca17-May-03 9:33 
GeneralRe: avi codec information Pin
leppie17-May-03 12:08
leppie17-May-03 12:08 
GeneralConfused by Invoke Pin
Neil Lamka16-May-03 8:41
Neil Lamka16-May-03 8:41 
GeneralRe: Confused by Invoke Pin
leppie16-May-03 11:59
leppie16-May-03 11:59 
GeneralRe: Confused by Invoke Pin
Wesner Moise19-May-03 18:54
Wesner Moise19-May-03 18:54 
Generalquestion about unbound column in DataGrid Pin
cruscal16-May-03 6:06
cruscal16-May-03 6:06 
GeneralUrlDownloadToFile strange behaviour Pin
GriffonRL16-May-03 5:35
GriffonRL16-May-03 5:35 
Hello,

I have come across a strange behaviour.
I typed the following code:
<br />
[DllImport("urlmon.dll",CharSet=CharSet.Auto)]<br />
public static extern uint URLDownloadToFile(<br />
 IntPtr pCaller,<br />
 string szURL,<br />
 string szFileName,<br />
 uint dwReserved,<br />
 IntPtr lpfnCB);<br />
<br />
string URL="http://www.boursorama.com";<br />
URLDownloadToFile(IntPtr.Zero,URL,"c:\test.html",0,IntPtr.Zero);<br />


When I run it (using the debugger), the function doesn't seems to send back an error and the function seems actually to work but I get no local file ! I even looked at the HTTP requests and I can see the HTTP GET issued and the 200 OK response.
I don't understand and I need UrlDownloadToFile (WebClient doesn't work with the IE cache).
I'm using the 1.1 framework on Windows 2000 Professionnal.


Thanks,


R. LOPES
Just programmer.
GeneralRe: UrlDownloadToFile strange behaviour Pin
James T. Johnson16-May-03 13:44
James T. Johnson16-May-03 13:44 
GeneralRe: UrlDownloadToFile strange behaviour Pin
J. Dunlap16-May-03 13:48
J. Dunlap16-May-03 13:48 
GeneralRe: UrlDownloadToFile strange behaviour Pin
GriffonRL18-May-03 22:39
GriffonRL18-May-03 22:39 
GeneralRe: UrlDownloadToFile strange behaviour Pin
GriffonRL18-May-03 22:40
GriffonRL18-May-03 22:40 
GeneralIDocHostUIHandler and InternetExplorer object. Pin
GriffonRL16-May-03 4:14
GriffonRL16-May-03 4:14 
GeneralBest way to implement a game timer Pin
Anonymous16-May-03 4:10
Anonymous16-May-03 4:10 
General.NET Remoting related question Pin
stevb16-May-03 4:01
stevb16-May-03 4:01 
GeneralRe: .NET Remoting related question Pin
Andres Manggini16-May-03 12:31
Andres Manggini16-May-03 12:31 
GeneralDynamic business application questions Pin
tarmin16-May-03 0:05
tarmin16-May-03 0:05 
GeneralRe: Dynamic business application questions Pin
Daniel Turini16-May-03 0:58
Daniel Turini16-May-03 0:58 
GeneralRe: Dynamic business application questions Pin
shaunAustin16-May-03 1:09
shaunAustin16-May-03 1:09 
GeneralRe: Dynamic business application questions Pin
tarmin17-May-03 4:28
tarmin17-May-03 4:28 
GeneralXML documentation problem Pin
simwiz15-May-03 23:00
simwiz15-May-03 23:00 
GeneralRe: XML documentation problem Pin
shaunAustin16-May-03 0:59
shaunAustin16-May-03 0:59 
Generalcreating a bindable control Pin
Roger Alsing15-May-03 21:06
Roger Alsing15-May-03 21:06 
GeneralRe: creating a bindable control Pin
David23g16-May-03 6:58
David23g16-May-03 6:58 
GeneralRe: creating a bindable control Pin
Bo Hunter16-May-03 20:19
Bo Hunter16-May-03 20:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.