Solved

How can IO write a 'real' Dll in VB6

Posted on 2004-09-06
7
277 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
[X]
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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

756 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