Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
AnswerRe: Uploading Excell file to FTP Pin
Giorgi Dalakishvili14-Nov-07 1:29
mentorGiorgi Dalakishvili14-Nov-07 1:29 
GeneralRe: Uploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 1:48
Reddy Prakash14-Nov-07 1:48 
AnswerRe: Uploading Excell file to FTP Pin
Guffa14-Nov-07 3:43
Guffa14-Nov-07 3:43 
GeneralRe: Uploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 17:01
Reddy Prakash14-Nov-07 17:01 
QuestionHow To Start Service In Setup Application Pin
Boroumandan14-Nov-07 1:13
Boroumandan14-Nov-07 1:13 
AnswerRe: How To Start Service In Setup Application Pin
Abhijit Jana14-Nov-07 1:20
professionalAbhijit Jana14-Nov-07 1:20 
QuestionProblem with invoking new thread with socket parameter Pin
Coyote.Max14-Nov-07 1:09
Coyote.Max14-Nov-07 1:09 
AnswerRe: Problem with invoking new thread with socket parameter Pin
TJoe14-Nov-07 2:13
TJoe14-Nov-07 2:13 
You need to change the parameter's type to Object, like you describe. This is the "signature" of the ParameterizedThreadStart delegate, so you can't change this.

Now, since your parameter is now of type Object (and not Socket) then it does not have the methods/properites of the Socket type. Since you know that you passed in an object of type Socket (which is currently being held in a parameter of type Object), you can simply cast it to the appropriate type. So something like this:

private static void Thread_Send_Recv(Object obj)
{
    Socket w = obj as Socket;
    if (null == w)
        throw new ArgumentException(...); // because obj is not a Socket





Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: Problem with invoking new thread with socket parameter Pin
Coyote.Max14-Nov-07 4:35
Coyote.Max14-Nov-07 4:35 
QuestionParsing strings into TimeSpans Pin
Vikram A Punathambekar14-Nov-07 1:02
Vikram A Punathambekar14-Nov-07 1:02 
AnswerRe: Parsing strings into TimeSpans Pin
Pete O'Hanlon14-Nov-07 2:19
mvePete O'Hanlon14-Nov-07 2:19 
GeneralRe: Parsing strings into TimeSpans Pin
Vikram A Punathambekar14-Nov-07 3:38
Vikram A Punathambekar14-Nov-07 3:38 
QuestionHelp with Data Export Pin
MumbleB14-Nov-07 0:40
MumbleB14-Nov-07 0:40 
AnswerRe: Help with Data Export Pin
Rob Philpott14-Nov-07 2:21
Rob Philpott14-Nov-07 2:21 
GeneralRe: Help with Data Export Pin
MumbleB14-Nov-07 7:57
MumbleB14-Nov-07 7:57 
QuestionHow to start service Pin
Boroumandan14-Nov-07 0:35
Boroumandan14-Nov-07 0:35 
AnswerRe: How to start service Pin
Abhijit Jana14-Nov-07 0:43
professionalAbhijit Jana14-Nov-07 0:43 
GeneralRe: How to start service Pin
Boroumandan14-Nov-07 0:49
Boroumandan14-Nov-07 0:49 
GeneralRe: How to start service Pin
Abhijit Jana14-Nov-07 1:10
professionalAbhijit Jana14-Nov-07 1:10 
QuestionFilecopy in windows service and win application Pin
amitcoder8314-Nov-07 0:34
amitcoder8314-Nov-07 0:34 
AnswerRe: Filecopy in windows service and win application Pin
Boroumandan14-Nov-07 0:39
Boroumandan14-Nov-07 0:39 
GeneralRe: Filecopy in windows service and win application Pin
amitcoder8314-Nov-07 0:44
amitcoder8314-Nov-07 0:44 
AnswerRe: Filecopy in windows service and win application Pin
Vikram A Punathambekar14-Nov-07 1:05
Vikram A Punathambekar14-Nov-07 1:05 
GeneralRe: Filecopy in windows service and win application Pin
amitcoder8314-Nov-07 1:53
amitcoder8314-Nov-07 1:53 
QuestionI want to enter only Negative values,Positive values,Decimal values in TextBox Pin
g_hemanth1714-Nov-07 0:01
g_hemanth1714-Nov-07 0:01 

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.