call c# written dll function from command line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello together,

i'm trying to call some functions wirtten in c# and compiled as a type
library (dll) trough the windows cmd shell. Is this generally possible?

My first idea was it to use rundll32.exe to call my user defined function,
but if i try to make a call like this: rundll32.exe mylib.dll,myFunc
Param1,Param2
I alway receive the Error message: Error in mylib.dll Missing Entry: myFunc

The srouce code looks like this example
namespace test {
class TestClass {
public static myFunc(int param1, string param2){
/*SourceCode*/
return (ReturnData)
}
}
}

Is there Something special i have to consider? Or must i call in a another
kind.

regards
Roland
 
Just an idea, but you might be able to write a console application that uses
reflection to call a method or a given class in a given assembly. Never done
it myself though.
 
Back
Top