Click here to Skip to main content
15,901,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trying this again... (Import method from DLL) Pin
Luc Pattyn6-Jul-07 16:20
sitebuilderLuc Pattyn6-Jul-07 16:20 
QuestionDelegates in c# Pin
Malayil alex6-Jul-07 8:00
Malayil alex6-Jul-07 8:00 
AnswerRe: Delegates in c# Pin
led mike6-Jul-07 8:03
led mike6-Jul-07 8:03 
AnswerRe: Delegates in c# Pin
Martin#6-Jul-07 8:04
Martin#6-Jul-07 8:04 
AnswerRe: Delegates in c# Pin
Luc Pattyn6-Jul-07 16:26
sitebuilderLuc Pattyn6-Jul-07 16:26 
AnswerRe: Delegates in c# Pin
Sathesh Sakthivel6-Jul-07 16:59
Sathesh Sakthivel6-Jul-07 16:59 
GeneralRe: Delegates in c# Pin
Not Active7-Jul-07 2:40
mentorNot Active7-Jul-07 2:40 
QuestionHelllp!!! :-) About using a method from a Dll... Pin
Azad Giordano Ratzki6-Jul-07 6:37
professionalAzad Giordano Ratzki6-Jul-07 6:37 
Ok so here's the problem....

I have a solution that contains 2 projects one is the executable and the other is a DLL that I wrote that the application uses... the problem is that method I am using from the dll tries to reference a class and/or method from the application but since it isn't referenced I get an error here is the code:

Application code:

AnyMethod.RunMethod("ProcessModules","Menu"); //ProcessModules being a class in the application.

DLL code:

public static void RunMethod(string myClass, string myMethod)
{
Type myType = Type.GetType(myClass);
MethodInfo myMeth = myType.GetMethod(myMethod);
myMeth.Invoke(null,null);
}

Any ideas? I have a feeling this would use some inheritance feature or something but not sure...still very new to C#...There has to be a way the dll can reference a class in my other namespace without having to hard-code the reference right??
AnswerRe: Helllp!!! :-) About using a method from a Dll... Pin
led mike6-Jul-07 6:46
led mike6-Jul-07 6:46 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Azad Giordano Ratzki6-Jul-07 6:53
professionalAzad Giordano Ratzki6-Jul-07 6:53 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Not Active6-Jul-07 7:45
mentorNot Active6-Jul-07 7:45 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
led mike6-Jul-07 7:45
led mike6-Jul-07 7:45 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Azad Giordano Ratzki6-Jul-07 8:09
professionalAzad Giordano Ratzki6-Jul-07 8:09 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
led mike6-Jul-07 8:21
led mike6-Jul-07 8:21 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Azad Giordano Ratzki6-Jul-07 8:27
professionalAzad Giordano Ratzki6-Jul-07 8:27 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
led mike6-Jul-07 8:36
led mike6-Jul-07 8:36 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Not Active6-Jul-07 9:24
mentorNot Active6-Jul-07 9:24 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Martin#6-Jul-07 20:57
Martin#6-Jul-07 20:57 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Not Active7-Jul-07 2:36
mentorNot Active7-Jul-07 2:36 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
leckey6-Jul-07 8:40
leckey6-Jul-07 8:40 
AnswerRe: Helllp!!! :-) About using a method from a Dll... Pin
Guffa6-Jul-07 8:44
Guffa6-Jul-07 8:44 
GeneralRe: Helllp!!! :-) About using a method from a Dll... Pin
Azad Giordano Ratzki6-Jul-07 9:09
professionalAzad Giordano Ratzki6-Jul-07 9:09 
AnswerRe: Helllp!!! :-) About using a method from a Dll... Pin
Leslie Sanford6-Jul-07 9:19
Leslie Sanford6-Jul-07 9:19 
QuestionProblem with KeyEventHandler Pin
terraverdetech6-Jul-07 5:55
terraverdetech6-Jul-07 5:55 
AnswerRe: Problem with KeyEventHandler Pin
Wjousts6-Jul-07 6:28
Wjousts6-Jul-07 6:28 

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.