Solved

VB dll

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Suggested Courses
Course of the Month3 days, 19 hours left to enroll

630 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