Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to create a DLL using VB6

Posted on 2002-05-24
2
Medium Priority
?
253 Views
Last Modified: 2010-05-02
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?
0
Comment
Question by:GrahamAtJobserve
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 400 total points
ID: 7031671
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!
0
 

Author Comment

by:GrahamAtJobserve
ID: 7031678
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.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question