How to create DLL with vb.net to run with rundll32.exe
-
Hello everyone ! I built a DLL file using VB.NET 2005. How can I run its functions/subs with Windows RunDll32.exe command ? Another question: How do I retrieve function result if I call it with rundll32.exe ?
For example: Rundll32.exe c:\MyDll.dll ,FuncName
Thank you very much, And have a nice weekend ! Reuven -
Hello everyone ! I built a DLL file using VB.NET 2005. How can I run its functions/subs with Windows RunDll32.exe command ? Another question: How do I retrieve function result if I call it with rundll32.exe ?
For example: Rundll32.exe c:\MyDll.dll ,FuncName
Thank you very much, And have a nice weekend ! Reuvenhttp://www.codeproject.com/useritems/DllExport.asp?df=100&forumid=356836&exp=0&select=1981668#xx1981668xx[^]
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
http://www.codeproject.com/useritems/DllExport.asp?df=100&forumid=356836&exp=0&select=1981668#xx1981668xx[^]
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I tried to follow that article, and I still can't run my dll from Rundll32. My code (VB.NET): ----------------- Public Class Class2 _ Public Sub MSG() MsgBox("Hello world !!!") End Sub End Class After I compiled the dll into c:\SampleDll.dll I use the command line: ExportDll c:\SampleDll.dll (Release mode) The result was: "Debug: False" in command line. After that I tried to run my dll in this way: RunDll32.exe c:\SampleDll.dll ,MSG The result is system message box saying: "error in c:\sampledll.dll Missing value: MSG" What am I missing, Plz. help me. Thanks, Reuven