Click here to Skip to main content
16,016,306 members
Home / Discussions / C#
   

C#

 
Generalcopying a large file using streaming Pin
248912828-Apr-08 0:38
248912828-Apr-08 0:38 
GeneralRe: copying a large file using streaming Pin
Anthony Mushrow28-Apr-08 1:00
professionalAnthony Mushrow28-Apr-08 1:00 
General[MULTI-POST :: IGNORE IT] Re: copying a large file using streaming Pin
Vasudevan Deepak Kumar28-Apr-08 1:38
Vasudevan Deepak Kumar28-Apr-08 1:38 
GeneralBinding DataGridViewComboBoxColumn to Enumeration Pin
Bekjong28-Apr-08 0:33
Bekjong28-Apr-08 0:33 
GeneralProblem in publishing an client server application... Pin
Vicky2Galaxy28-Apr-08 0:21
Vicky2Galaxy28-Apr-08 0:21 
GeneralUnable to Capture Incoming Mail Event in Outlook Pin
narayanagvs28-Apr-08 0:09
narayanagvs28-Apr-08 0:09 
GeneralRe: Unable to Capture Incoming Mail Event in Outlook Pin
Bert delaVega29-Apr-08 5:39
Bert delaVega29-Apr-08 5:39 
QuestionCannot pass String Arrays as arguments to delegates?? Pin
ptr2void27-Apr-08 23:37
ptr2void27-Apr-08 23:37 
Hi,

When I pass Strings as arguments to delegate, it runs perfectly fine.. But when I try to pass String Arrays, it gives error..

So does that mean we cant pass string arrays as parameters to delegates???



Here's a snippet of code:

public: delegate void myDelegate1(String^);<br />
<br />
public: delegate void myDelegate2(array<String^>^);<br />
<br />
 <br />
<br />
private: void BasicPolicyMethod()<br />
<br />
{<br />
<br />
String^ str = "Hi";<br />
<br />
array<String^>^ arrstr = gcnew array<String^> {"Hi","Hello"};<br />
<br />
 <br />
<br />
this->Invoke(gcnew myDelegate1(this, &DashBoardForm::myMethod1), str);<br />
<br />
 <br />
<br />
/*Shows error in the next line: "Parameter Count Mismatch"*/<br />
<br />
this->Invoke(gcnew myDelegate2(this, &DashBoardForm::myMethod2), arrstr);<br />
<br />
 <br />
<br />
private: void myMethod1(String^ str)<br />
<br />
{<br />
<br />
/*Do Something here*/<br />
<br />
}<br />
<br />
 <br />
<br />
private: void myMethod2(array<String^>^ arrstr)<br />
<br />
{<br />
<br />
/*Do Something here*/<br />
<br />
<br />
}<br />
<br />
 <br />
<br />



Any replies would be appreciated..

Thank you !!
AnswerRe: Cannot pass String Arrays as arguments to delegates?? Pin
Vikram A Punathambekar27-Apr-08 23:44
Vikram A Punathambekar27-Apr-08 23:44 
GeneralRe: Cannot pass String Arrays as arguments to delegates?? Pin
Anthony Mushrow28-Apr-08 1:02
professionalAnthony Mushrow28-Apr-08 1:02 
GeneralRe: Cannot pass String Arrays as arguments to delegates?? Pin
ptr2void28-Apr-08 1:24
ptr2void28-Apr-08 1:24 
QuestionOpening a sub form Pin
M. J. Jaya Chitra27-Apr-08 22:49
M. J. Jaya Chitra27-Apr-08 22:49 
GeneralRe: Opening a sub form Pin
N a v a n e e t h27-Apr-08 23:08
N a v a n e e t h27-Apr-08 23:08 
GeneralRe: Opening a sub form Pin
Bert delaVega29-Apr-08 5:42
Bert delaVega29-Apr-08 5:42 
QuestionLogging by appending log entries to an XML file. Pin
Zerox MXI27-Apr-08 22:41
Zerox MXI27-Apr-08 22:41 
GeneralRe: Logging by appending log entries to an XML file. Pin
N a v a n e e t h27-Apr-08 22:58
N a v a n e e t h27-Apr-08 22:58 
GeneralRe: Logging by appending log entries to an XML file. Pin
Zerox MXI27-Apr-08 23:07
Zerox MXI27-Apr-08 23:07 
GeneralRe: Logging by appending log entries to an XML file. Pin
N a v a n e e t h27-Apr-08 23:49
N a v a n e e t h27-Apr-08 23:49 
GeneralRe: Logging by appending log entries to an XML file. Pin
Vikram A Punathambekar27-Apr-08 23:47
Vikram A Punathambekar27-Apr-08 23:47 
GeneralRe: Logging by appending log entries to an XML file. Pin
Not Active28-Apr-08 3:01
mentorNot Active28-Apr-08 3:01 
QuestionAccessing executable 'metadata' (summary information) Pin
I'm a member...27-Apr-08 22:30
I'm a member...27-Apr-08 22:30 
GeneralRe: Accessing executable 'metadata' (summary information) Pin
N a v a n e e t h27-Apr-08 23:06
N a v a n e e t h27-Apr-08 23:06 
QuestionCan we discuss MONO news Here?? [modified] Pin
Ahmad Zuhd27-Apr-08 21:48
Ahmad Zuhd27-Apr-08 21:48 
AnswerRe: Can we discuss MONO news Here?? Pin
Pete O'Hanlon27-Apr-08 22:00
mvePete O'Hanlon27-Apr-08 22:00 
AnswerRe: Can we discuss MONO news Here?? Pin
#realJSOP27-Apr-08 23:50
professional#realJSOP27-Apr-08 23:50 

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.