Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How can IO write a 'real' Dll in VB6

Posted on 2004-09-06
7
276 Views
Last Modified: 2008-02-26
I want to write a 'proper' dll in VB6. I know that I can create an ActiveX Dll and call methods of a dummy class object, but I'd rather have a proper dll that I can add to the references in my project and use the functions as regular functions.

For example:
  I know I can write the ActiveX dll and call it as:

      Dim x as new MyDll

      x.MyFunction p1, p2

  I want to add the reference to the project references and call it as:

      MyFunction p1, p2

Surely this is possible. I've read that I can do this in C++. The problem there is I don't know C++
0
Comment
Question by:bourneleisure
  • 3
7 Comments
 
LVL 8

Accepted Solution

by:
mladenovicz earned 50 total points
ID: 11990404
I don't think that it is possible to write API functions in VB
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11990410
I meant "API like" functions
0
 
LVL 7

Assisted Solution

by:Smallint
Smallint earned 50 total points
ID: 11990554

You can't write directly in VB standard non-com DLLs.

But there are some products in the market that can provide you such features.

http://simplysolutions.com


Cheers
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12563805
I think that points should be splitted. It is not possible to write "API like" DLLs in VB
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…

791 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