Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to create DLL with vb.net to run with rundll32.exe

How to create DLL with vb.net to run with rundll32.exe

Scheduled Pinned Locked Moved Visual Basic
questiontutorialcsharp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Reuven Elliassi
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • R Reuven Elliassi

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      R 1 Reply Last reply
      0
      • C Christian Graus

        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 )

        R Offline
        R Offline
        Reuven Elliassi
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups