• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

How to create a DLL using VB6

I wish to create a DLL, using VB6, or VB7(.net) to be useable as in the example shown.

Option Explicit
Declare Function Testthis Lib "test.dll" (ByVal i_Anyint As Integer) As Integer

Sub calldll()
    Call Testthis(2)
End Sub

Ie, its NOT an activeX DLL. Can it be done, and if so, how?
1 Solution
Not in VB6 though there is an add-in which claims to be able to do this: http://www.banasoft.net/MakeEx.htm as for vb.net I don't know yet!
GrahamAtJobserveAuthor Commented:
Cheers Tim, good answer as always.

I suspected as much, but there was always the chance that there was a way to do it somehow. Not going to try the add-in though.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now