Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to creat dll file and use dll for in VB 6.0?

How to creat dll file and use dll for in VB 6.0?

How to creat dll file and use dll for in VB 6.0?

I'm a fortran beginner. Now i'm using DVF 6. And I want to creat a user interface for my for. program by VB6. I have done an example from several references, but It doesn't work.
First, I created a Fortran project as dll project type.
My fortran code is below:
subroutine pro1( a, b, c )

  !DEC$ ATTRIBUTES ALIAS : 'pro1' :: pro1
  integer a,b,c

end subroutine
Then, I run fortran and a pro1.dll file was created.
after that, I created a vb project. I copied also the dll file into the same directory with the vb project.
code vb:
Private Declare Sub pro1 Lib "pro1.dll" _
(a As interger, b as integer, c As integer)

Private Sub cmdbut_Click()

  Dim c As integer
 call  pro1(3,4,c)
End Sub
When i run vb program, there was a error: "can not find the entry point pro1 dll".
Could you help me?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close