Problem with delegates
-
Hi all, I have seen a solution,which deals with File download in web browser. and the bellow code gives error can some one help me what is the problem here...
//make a thread to look for the dialog
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120,
});From here i tried download dialogue thanks
-
Hi all, I have seen a solution,which deals with File download in web browser. and the bellow code gives error can some one help me what is the problem here...
//make a thread to look for the dialog
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120,
});From here i tried download dialogue thanks
What is the error?
-
Hi all, I have seen a solution,which deals with File download in web browser. and the bellow code gives error can some one help me what is the problem here...
//make a thread to look for the dialog
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120,
});From here i tried download dialogue thanks
-
I hope you don't mean this:
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120**);**
});Hi thanks and when i build (C#) the following error comes, i am not familiar with delegates can you guide me The name 'FindDownloadDialogWindow' does not exist in the current context do i need to declare this or what to do. thanks...
-
Hi all, I have seen a solution,which deals with File download in web browser. and the bellow code gives error can some one help me what is the problem here...
//make a thread to look for the dialog
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120,
});From here i tried download dialogue thanks
Your code produces syntax errors. I suggest you try the code harold posted. If you still get an error, try calling
FindDownloadDialogWindow
without the thread, this will help you determine whether your call to the method is OK, then add back the delegate call. -
Hi thanks and when i build (C#) the following error comes, i am not familiar with delegates can you guide me The name 'FindDownloadDialogWindow' does not exist in the current context do i need to declare this or what to do. thanks...
jasome wrote:
do i need to declare this or what to do.
Obviously. The function is only described, not actually given, on that blog. It's not to hard to write it, but you seem more like the copy&paste kind of "programmer" to me. No offense, but matching up parenthesis and adding missing semicolons is not exactly high-level. Good luck.
-
Your code produces syntax errors. I suggest you try the code harold posted. If you still get an error, try calling
FindDownloadDialogWindow
without the thread, this will help you determine whether your call to the method is OK, then add back the delegate call.Hi thanks Even if i call FindDownloadDialogWindow outside the thread also it gives the same error. do you have any idea of which namespace or dll consists this FindDownloadDialogWindow function. thanks
-
Hi thanks Even if i call FindDownloadDialogWindow outside the thread also it gives the same error. do you have any idea of which namespace or dll consists this FindDownloadDialogWindow function. thanks
You'll need to write the method yourself. I suggest you take a look at http://msdn.microsoft.com/en-us/library/aa288436(VS.71).aspx[^]
-
You'll need to write the method yourself. I suggest you take a look at http://msdn.microsoft.com/en-us/library/aa288436(VS.71).aspx[^]
Thanks i do try...!
-
Hi all, I have seen a solution,which deals with File download in web browser. and the bellow code gives error can some one help me what is the problem here...
//make a thread to look for the dialog
Thread workThread = new Thread(delegate()
{
FindDownloadDialogWindow("#32770", "File Download", 120,
});From here i tried download dialogue thanks
Hey, for example: //new Thread t= new Thread (new ThreadStart(MyFunction)); t.Start(); // MyDelegate dele = new MyDelegate (FindDownloadDialogWindow ); dele.BeginInvoke("#32770", "File Download", 120); void FindDownloadDialogWindow(string handle, string tileText, int num);