Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Named Pipes with C#?? Pin
Phil C19-Mar-06 22:59
Phil C19-Mar-06 22:59 
QuestionProblem Occured - IP address Pin
Jijo BP16-Mar-06 13:48
Jijo BP16-Mar-06 13:48 
AnswerRe: Problem Occured - IP address Pin
Phil C16-Mar-06 14:03
Phil C16-Mar-06 14:03 
GeneralRe: Problem Occured - IP address Pin
Jijo BP16-Mar-06 14:54
Jijo BP16-Mar-06 14:54 
GeneralRe: Problem Occured - IP address Pin
Phil C16-Mar-06 15:14
Phil C16-Mar-06 15:14 
QuestionResponse.BinaryWrite to open/save word doc Pin
missy416-Mar-06 13:13
missy416-Mar-06 13:13 
QuestionSOAP and wsdl Pin
allenmpcx16-Mar-06 11:21
allenmpcx16-Mar-06 11:21 
QuestionLimitations on parameters for Interfaces? Pin
Erik Davidson16-Mar-06 10:38
Erik Davidson16-Mar-06 10:38 
I'm trying to make an application that supports plugins but I'm having some troubles with my interface. In the interface I define a function like this:

string edplugin_HandleCommand( string[] command, string username );

And in my test plugin I implement it like this:

public string edplugin_HandleCommand( string[] command, string username )
{
return "Successful!";
}

For some reason when I have the user parameter on the function I get the following error when I try to "load" the plugin with Activator.CreateInstanceFrom() into the main application:

Additional information: Method edplugin_HandleCommand in type edbot.CEDBotPlugin from assembly plugin_test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null does not have an implementation.

When I remove the 2nd parameter from the interface as well as the implementation the program runs flawlessly. Is there some kind of limitation to an interface that won't let me have more than one parameter?

Thanks for the help!

AnswerRe: Limitations on parameters for Interfaces? Pin
leppie16-Mar-06 15:02
leppie16-Mar-06 15:02 
GeneralRe: Limitations on parameters for Interfaces? Pin
Erik Davidson16-Mar-06 19:25
Erik Davidson16-Mar-06 19:25 
QuestionRegular Expressions in C# Pin
conrado716-Mar-06 9:52
conrado716-Mar-06 9:52 
AnswerRe: Regular Expressions in C# Pin
Curtis Schlak.16-Mar-06 10:02
Curtis Schlak.16-Mar-06 10:02 
GeneralRe: Regular Expressions in C# Pin
conrado716-Mar-06 11:21
conrado716-Mar-06 11:21 
AnswerRe: Regular Expressions in C# Pin
leppie16-Mar-06 15:08
leppie16-Mar-06 15:08 
GeneralRe: Regular Expressions in C# Pin
conrado717-Mar-06 0:57
conrado717-Mar-06 0:57 
GeneralRe: Regular Expressions in C# Pin
leppie17-Mar-06 1:04
leppie17-Mar-06 1:04 
GeneralRe: Regular Expressions in C# Pin
conrado717-Mar-06 2:27
conrado717-Mar-06 2:27 
GeneralRe: Regular Expressions in C# Pin
leppie17-Mar-06 2:48
leppie17-Mar-06 2:48 
QuestionTabPage activation on Form Load Pin
zaboboa16-Mar-06 9:06
zaboboa16-Mar-06 9:06 
AnswerRe: TabPage activation on Form Load Pin
Ed.Poore16-Mar-06 11:54
Ed.Poore16-Mar-06 11:54 
QuestionReading data from GPS Pin
prashantkgupta16-Mar-06 9:00
prashantkgupta16-Mar-06 9:00 
AnswerRe: Reading data from GPS Pin
BlackDice16-Mar-06 9:08
BlackDice16-Mar-06 9:08 
GeneralRe: Reading data from GPS Pin
Phil C16-Mar-06 14:11
Phil C16-Mar-06 14:11 
QuestionClass-constant functions? Pin
Dominik Reichl16-Mar-06 8:44
Dominik Reichl16-Mar-06 8:44 
AnswerRe: Class-constant functions? Pin
Christian Graus16-Mar-06 8:53
protectorChristian Graus16-Mar-06 8:53 

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.