Solved

DLL in VB

Posted on 2004-03-20
6
383 Views
Last Modified: 2008-03-17
Whether The DLL developed in VB requires VB runtime files? Why?
0
Comment
Question by:sanjusambhe
  • 2
  • 2
6 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 10643153
Yes, because it too will, in all likelihood, make external library calls.
0
 
LVL 12

Expert Comment

by:guidway
ID: 10643155
For one, you need to have the latest runtime installed if you make any API calls from the dll since some features you could call may not reside on earlier systems and the user would get an error.
0
 
LVL 12

Expert Comment

by:guidway
ID: 10643156
sorry cookre, your post wasn't there when I started. :-)
0
 
LVL 22

Expert Comment

by:cookre
ID: 10643182
Shoot, I do it all the time.  I start mashing keys, stop to look up something, take a phone call, then 20 minutes later hit submit and find 3 other posts.
0
 

Accepted Solution

by:
SilentExpert earned 250 total points
ID: 10668502
The dll that one typically creates using Visual Basic (5,6) is actually a an ActiveX component. All of the com instantiation code, as well as any of the intrisic functions of the VB language you might use (e.g. functions such as Instr for instance) is all contained within the VB runtime.

There are some interesting caveats however - first, most machines have some flavour of Visual Basic Runtime on them, typically 6 as it is included with a bevy of MS products. You might be able to technically 'get away' with simply registering a dll on a PC with a more recent operating system or software library installed on it, *but*, if it were not there your dll would fail in dramatic fashion and you have no way of checking.

Second, there are some third party products that allow you to do some crazy stuff with VB such as combine C or asm code and create 'standard' (meaning non-registered) windows dlls. TweakVB is one such example. With TweakVB is technically possible to create a windows DLL using VB that did not use the VB runtime, but it would be tricky as one false step (such as creating some com object in code that the dll itself might need) would try to access the VB runtime. But it could be done.

http://www.tweakvb.com
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 116
Arduino EDI - Programming Language - Voice Recorder 4 95
jboss 7.1 start up error 1 42
batch file or script 4 28
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

820 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