Solved

VB dll

Posted on 2008-10-09
3
218 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
ID: 22678427
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
ID: 22682262
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
ID: 22689072
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

777 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