call c# written dll function from command line

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top