PC Review


Reply
Thread Tools Rate Thread

call c# written dll function from command line

 
 
=?Utf-8?B?Um9saTc5?=
Guest
Posts: n/a
 
      26th Jul 2005
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2Ft?=
Guest
Posts: n/a
 
      27th Jul 2005
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.

"Roli79" wrote:

> 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?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel fails to update call to user-written function. Jim Luedke Microsoft Excel New Users 9 28th Aug 2009 12:46 AM
Call particular Excel function from command line hkbqanda@gmail.com Microsoft Excel Programming 3 29th Sep 2006 03:47 PM
call c# written dll function from command line =?Utf-8?B?Um9saTc5?= Microsoft Dot NET 2 26th Jul 2005 04:02 PM
call c# written dll functions through command line =?Utf-8?B?Um9saTc5?= Microsoft Dot NET Framework 0 26th Jul 2005 03:39 PM
Call function written in excel from access as a part of a larger . =?Utf-8?B?QW5h?= Microsoft Access VBA Modules 1 1st Feb 2005 06:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.