?
Solved

How can IO write a 'real' Dll in VB6

Posted on 2004-09-06
7
Medium Priority
?
282 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 200 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 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…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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