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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. importing dll's

importing dll's

Scheduled Pinned Locked Moved Visual Basic
csharphelpvisual-studiodebugging
4 Posts 4 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.
  • A Offline
    A Offline
    alankrita
    wrote on last edited by
    #1

    Hi, Can anyone help me with importing a fortran 8.0 dll to vb.net.I have tried several times with the following code but get an error saying that the entry point in the dll was not found. I have a module in vb.net that contains the following code. Declare Sub runit Lib "C:\Documents and Settings\User\My Documents\Visual Studio Projects\Dll1\Debug\Dll1.dll" _ (list of arguements) where Dll1 is the name of the fortran project.and runit is the subroutine i am trying to call from .net. I dont know what to do.Is there any configurations that i must set before trying to run the program.

    N A R 3 Replies Last reply
    0
    • A alankrita

      Hi, Can anyone help me with importing a fortran 8.0 dll to vb.net.I have tried several times with the following code but get an error saying that the entry point in the dll was not found. I have a module in vb.net that contains the following code. Declare Sub runit Lib "C:\Documents and Settings\User\My Documents\Visual Studio Projects\Dll1\Debug\Dll1.dll" _ (list of arguements) where Dll1 is the name of the fortran project.and runit is the subroutine i am trying to call from .net. I dont know what to do.Is there any configurations that i must set before trying to run the program.

      N Offline
      N Offline
      normanordas
      wrote on last edited by
      #2

      try adding an "alias" to your declaration, this alias should have the same name as the main subroutine in your app (you may follow this with A [for ANSI] or W [for ASCII]). you then invoke the routine thru this alias. another workaround is using the DLLImportAttribute becoz with this you can specify the entry point during declaration.

      1 Reply Last reply
      0
      • A alankrita

        Hi, Can anyone help me with importing a fortran 8.0 dll to vb.net.I have tried several times with the following code but get an error saying that the entry point in the dll was not found. I have a module in vb.net that contains the following code. Declare Sub runit Lib "C:\Documents and Settings\User\My Documents\Visual Studio Projects\Dll1\Debug\Dll1.dll" _ (list of arguements) where Dll1 is the name of the fortran project.and runit is the subroutine i am trying to call from .net. I dont know what to do.Is there any configurations that i must set before trying to run the program.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        you would call it this way: Private Declare Sub RunItFtrn Lib "DLL1.dll" Alias "runit" (ByRef ..., ByRef ..., ect...) but I would suggest reading this: http://www.codeproject.com/dotnet/intro\_fortran.asp

        1 Reply Last reply
        0
        • A alankrita

          Hi, Can anyone help me with importing a fortran 8.0 dll to vb.net.I have tried several times with the following code but get an error saying that the entry point in the dll was not found. I have a module in vb.net that contains the following code. Declare Sub runit Lib "C:\Documents and Settings\User\My Documents\Visual Studio Projects\Dll1\Debug\Dll1.dll" _ (list of arguements) where Dll1 is the name of the fortran project.and runit is the subroutine i am trying to call from .net. I dont know what to do.Is there any configurations that i must set before trying to run the program.

          R Offline
          R Offline
          ramaseb
          wrote on last edited by
          #4

          Hi.. are tou sure that the dll "exports" the function?? Ramaseb.

          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