Solved

VB dll

Posted on 2008-10-09
3
220 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
[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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

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