473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual Basic: how to use DLL

Hello,

I am starting to program a demo for my DLL, but I cannot access the
methods in Visual Basic.

How can I do this? Do I have to import the dll somewhere?

Thanks.
Jul 17 '05 #1
3 12857
I presume this DLL is not an ActiveX DLL.

In that case you'll need to declare each of the functions you want to use
from that DLL - see Windows API examples as they show how a declare
statement looks. Once that's done you can call the functions as if they
were part of your VB code.

If you are in fact talking about an ActiveX DLL, then you'll need to
instantiate the relevant object ( COM) interfaces exposed by that DLL. Then
you can set up the function calls as required.

HTH

Rob.

"moonwulf" <mm********@yahoo.com> wrote in message
news:19**************************@posting.google.c om...
Hello,

I am starting to program a demo for my DLL, but I cannot access the
methods in Visual Basic.

How can I do this? Do I have to import the dll somewhere?

Thanks.

Jul 17 '05 #2
Rob
For us newbies .... Could you please translate that last paragraph into
English.

Thanks
Alan
"Rob Strover" <di*************@NOSPAMyahoo.com.invalid> wrote in message
news:u_********************@news-server.bigpond.net.au...
I presume this DLL is not an ActiveX DLL.

In that case you'll need to declare each of the functions you want to use
from that DLL - see Windows API examples as they show how a declare
statement looks. Once that's done you can call the functions as if they
were part of your VB code.

If you are in fact talking about an ActiveX DLL, then you'll need to
instantiate the relevant object ( COM) interfaces exposed by that DLL. Then you can set up the function calls as required.

HTH

Rob.

"moonwulf" <mm********@yahoo.com> wrote in message
news:19**************************@posting.google.c om...
Hello,

I am starting to program a demo for my DLL, but I cannot access the
methods in Visual Basic.

How can I do this? Do I have to import the dll somewhere?

Thanks.


---
Outgoing mail is certified virus free by AVG AntiVirus..
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
Jul 17 '05 #3
Alan,

I'd be glad to help. My apologies for the delay in getting back to you -
it's been a very busy time for me.

I'll post a response hopefully within the next couple of days - I hope this
delay hasn't inconvenienced you too much.

The challenge is to give you a useful answer without drowning you in too
much detail :-)

Rob.

"Alan" <al**@nospam.ca> wrote in message
news:Mz**********************@news01.bloor.is.net. cable.rogers.com...
Rob
For us newbies .... Could you please translate that last paragraph into English.

Thanks
Alan
"Rob Strover" <di*************@NOSPAMyahoo.com.invalid> wrote in message
news:u_********************@news-server.bigpond.net.au...
I presume this DLL is not an ActiveX DLL.

In that case you'll need to declare each of the functions you want to use from that DLL - see Windows API examples as they show how a declare
statement looks. Once that's done you can call the functions as if they
were part of your VB code.

If you are in fact talking about an ActiveX DLL, then you'll need to
instantiate the relevant object ( COM) interfaces exposed by that DLL.

Then
you can set up the function calls as required.

HTH

Rob.

"moonwulf" <mm********@yahoo.com> wrote in message
news:19**************************@posting.google.c om...
Hello,

I am starting to program a demo for my DLL, but I cannot access the
methods in Visual Basic.

How can I do this? Do I have to import the dll somewhere?

Thanks.


---
Outgoing mail is certified virus free by AVG AntiVirus..
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pix | last post by:
Hello, I would like to start learning Visual Basic, and I was wondering if there are any recomendations to any ebooks, or actual books for that matter. I have my eye on this book by John Smiley,...
2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
2
by: frossberg | last post by:
Hello! I tried to install the Visual Basic.NET Resource Kit (http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very wrong and now it sems impossible both to repair and to...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
4
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
11
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I have seen the terms Visual Basic 2005 and VB.NET. It seems that sometimes they seem to be referring to the same thing but sometimes they are not. I also run into terms like VB9 and VB10.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.