Solved

VB dll

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

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…
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.
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…
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…

752 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