Please I need to know if it is possible to execute a method with a c#.net dll using execdll.exe.
I’m try to execute a simple method Hello World but I get the error “Unable to browse functions of this file”. I don’t know if I’m doing something wrong.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume that you mean rundll32.exe or at least execdll.exe is something similar.
.NET classes can’t be exposed as plain DLLs. They can be exposed as COM DLLs though. So the only way to make what you want is to expose .NET class as COM and then write a regular DLL (in C++, Delphi or so) that would instantiate your COM object and call it. You can then call your DLL from rundll32.exe or whatever tool you use.