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

How can IO write a 'real' Dll in VB6

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
bourneleisure
Asked:
bourneleisure
  • 3
2 Solutions
 
mladenoviczCommented:
I don't think that it is possible to write API functions in VB
0
 
mladenoviczCommented:
I meant "API like" functions
0
 
SmallintCommented:

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
 
mladenoviczCommented:
I think that points should be splitted. It is not possible to write "API like" DLLs in VB
0
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

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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