469,353 Members | 2,167 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

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 12712
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by pix | last post: by
2 posts views Thread by frossberg | last post: by
97 posts views Thread by Master Programmer | last post: by
11 posts views Thread by =?Utf-8?B?UGV0ZXI=?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.