Thanks Michael.
I wrote this code but I have problems and debugger stop the program and
I dont' know a solution.
Sure I do an error but where is it ?
public delegate void CallBackDelegate(int hinternet, IntPtr dwcontext, int
dwstatus, IntPtr lpv, int dwstatuslength);
public static CallBackDelegate CallBack;
[DllImport("wininet.dll")]
public extern static CallBackDelegate InternetSetStatusCallback(int
hInternet,CallBackDelegate del );
public MyConstr()
{
InitializeComponent();
CallBack = new CallBackDelegate(CallBackFunction);
InternetSetStatusCallback(0,CallBack);}
}
public static void CallBackFunction(int hinternet, IntPtr dwcontext, int
dwstatus, IntPtr lpv, int dwstatuslength)
{
//---
}
> Hello willem,
>
> Define delegate for callbacks
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conusingcallbackfunctions.asp
> w> Hi everyone,
> w> Please I have a question
[quoted text clipped - 16 lines]
> "At times one remains faithful to a cause only because its opponents do not
> cease to be insipid." (c) Friedrich Nietzsche