Solved

VB dll

Posted on 2008-10-09
3
215 Views
Last Modified: 2012-05-05
I have a Visual basic dll. What I wonder is what the difference is between a c-dll and a VB6 dll?

Does VB allways use ActiveX?
Are the function parameter types different?
Can I use both of them with Java JNI in the same way without hazzel?

0
Comment
Question by:mdoland
3 Comments
 
LVL 13

Accepted Solution

by:
Mark_FreeSoftware earned 500 total points
Comment Utility
Visual basic (6) always generates activeX dll's unless you change this (in a very hackish, and not reommended) way

visual basic uses a fixed calling convetion, i am not entirely sure which one it is, but i though __cdecl
(a calling convention describes how to handle function parameters)

where in C or C++ you can manually change the calling convention

Visual basic 6 uses widechar strings, where you have to use a custom type in C, or use an char, or wchar_t array.
0
 
LVL 10

Expert Comment

by:peetm
Comment Utility
It's a little like asking what the difference is between a dll written in x-language vs. one written in VB: although VB [6] probably has more differences than most.

I know that's not very helpful, but I guess the point is that dlls simply have a certain header makeup, and that, other than that, they can 'be' whatever they want.
0
 
LVL 6

Expert Comment

by:Taconvino
Comment Utility
Excellent reading material here:

http://www.xtremevbtalk.com/showthread.php?t=282796

It includes an implementation of the "hackish, not recommended way" posted above.

TCV
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

762 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

10 Experts available now in Live!

Get 1:1 Help Now