Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check ASP.NET Pin
DavidNohejl12-Jul-05 1:22
DavidNohejl12-Jul-05 1:22 
GeneralLoading and Unloading .dll file in C# Pin
pakFari11-Jul-05 20:14
pakFari11-Jul-05 20:14 
GeneralRe: Loading and Unloading .dll file in C# Pin
Expert Coming11-Jul-05 21:15
Expert Coming11-Jul-05 21:15 
GeneralRe: Loading and Unloading .dll file in C# Pin
amitmohanty11-Jul-05 22:51
amitmohanty11-Jul-05 22:51 
GeneralRe: Loading and Unloading .dll file in C# Pin
pakFari12-Jul-05 4:40
pakFari12-Jul-05 4:40 
GeneralRe: Loading and Unloading .dll file in C# Pin
DeepToot12-Jul-05 10:43
DeepToot12-Jul-05 10:43 
GeneralRe: Loading and Unloading .dll file in C# Pin
pakFari13-Jul-05 8:59
pakFari13-Jul-05 8:59 
GeneralRe: Loading and Unloading .dll file in C# Pin
DeepToot13-Jul-05 9:18
DeepToot13-Jul-05 9:18 
Well, this is where it can get tricky..at least for me. Because there are a few ways to do this, depending on if you want to call the function right then, or place that object in a Collections class and call it later. Hopefully someone will be able to explain it better than I can, but here goes.


This is how I executed a .dll after loading it.

Remember that when you created the Instance it passed back an object

object instance; //what Assembly.CreateInstance returns
object[] args; //Parameters to pass the function

MethodInfo method = type.GetMethod(functionname);
object returnval = method.Invoke(instance, args);


I hope this helps.





Steve Welborn
Software Architect
Questionhow to write factory interface handler Pin
Vinkum11-Jul-05 20:08
Vinkum11-Jul-05 20:08 
AnswerRe: how to write factory interface handler Pin
Christian Graus11-Jul-05 20:20
protectorChristian Graus11-Jul-05 20:20 
GeneralRe: how to write factory interface handler Pin
Vinkum11-Jul-05 21:22
Vinkum11-Jul-05 21:22 
GeneralRe: how to write factory interface handler Pin
Christian Graus12-Jul-05 13:14
protectorChristian Graus12-Jul-05 13:14 
Generalis Constructor Pin
Member 78161011-Jul-05 18:58
Member 78161011-Jul-05 18:58 
GeneralRe: is Constructor Pin
Christian Graus11-Jul-05 19:08
protectorChristian Graus11-Jul-05 19:08 
GeneralRe: is Constructor Pin
User 209307311-Jul-05 19:12
User 209307311-Jul-05 19:12 
GeneralTCP/IP Pin
Expert Coming11-Jul-05 18:01
Expert Coming11-Jul-05 18:01 
GeneralRe: TCP/IP Pin
Expert Coming11-Jul-05 21:48
Expert Coming11-Jul-05 21:48 
Generalnew thread for new form Pin
wdahl9911-Jul-05 17:15
wdahl9911-Jul-05 17:15 
GeneralRe: new thread for new form Pin
S. Senthil Kumar11-Jul-05 17:54
S. Senthil Kumar11-Jul-05 17:54 
GeneralCapture the xp Logon and Logoff event Pin
aocraft11-Jul-05 17:12
aocraft11-Jul-05 17:12 
GeneralRe: Capture the xp Logon and Logoff event Pin
KaptinKrunch11-Jul-05 17:32
KaptinKrunch11-Jul-05 17:32 
GeneralRe: Capture the xp Logon and Logoff event Pin
aocraft11-Jul-05 17:56
aocraft11-Jul-05 17:56 
Questionif statements with a string? Pin
Anonymous11-Jul-05 16:25
Anonymous11-Jul-05 16:25 
AnswerRe: if statements with a string? Pin
Weiye Chen11-Jul-05 16:50
Weiye Chen11-Jul-05 16:50 
GeneralRe: if statements with a string? Pin
Anonymous11-Jul-05 17:14
Anonymous11-Jul-05 17:14 

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.