[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

When to use LoadLibrary for DLLs

I have an instrument driven by a DLL.
This instrument returns 32k bytes blocks of measured data.
High speed is important.

There is some example code written in C

The C code uses LoadLibrary.

What is the purpose of using LoadLibrary?

Does it give more speed?

I have managed to get the DLL to work with direct function and Sub calls ( ie no LoadLibrary )

If I should use LoadLibrary  
do I have to change all my function and sub declarations.
If it is better to use LoadLibrary, could you show me how.

I only know a little about Visual Basic.
Thankyou
0
skuhn
Asked:
skuhn
  • 2
1 Solution
 
skuhnAuthor Commented:
Edited text of question.
0
 
amebaCommented:
You don't need LoadLibrary to work with DLL functions. You only need declarations.

LoadLibrary can be used:
- when loading resources (e.g. bitmaps, strings,...) from DLL
- to check if DLL can be used - e.g. if LoadLibrary fails, call another form.
Successfull call to LoadLibrary requires "FreeLibrary" call to reduce reference count.
0
 
amebaCommented:
B :(
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now