Solved

How can IO write a 'real' Dll in VB6

Posted on 2004-09-06
7
273 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now