By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,066 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,066 IT Pros & Developers. It's quick & easy.

DLL Reference Problem

P: n/a
JK
I have a DLL that I created to include in all of my apps. However, once I included it my apps still don't recognize the functions or the sub routines in the dll. I am new to dot net and the only thing I can come up with is that I am referencing the dll wrong. Any suggestions?
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
JK,
You need to be certain to put Public on every element that you want to
access from the second assembly. Also consider either Friend or Private for
elements that you don't want the second assembly to access.

Protected is useful for elements in base classes to be used by derived
classes.

I normally explicitly label elements as Public or Private rather then
relying on the defaults.

Hope this helps
Jay

"JK" <an*******@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
I have a DLL that I created to include in all of my apps. However, once I

included it my apps still don't recognize the functions or the sub routines
in the dll. I am new to dot net and the only thing I can come up with is
that I am referencing the dll wrong. Any suggestions?
Nov 20 '05 #2

P: n/a
Hi,

Only public functions, sub routines, classes, and modules will be
available outside the dll.

Ken
--------------
"JK" <an*******@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
I have a DLL that I created to include in all of my apps. However, once I
included it my apps still don't recognize the functions or the sub routines
in the dll. I am new to dot net and the only thing I can come up with is
that I am referencing the dll wrong. Any suggestions?

Nov 20 '05 #3

P: n/a
* "=?Utf-8?B?Sks=?=" <an*******@discussions.microsoft.com> scripsit:
I have a DLL that I created to include in all of my apps. However,
once I included it my apps still don't recognize the functions or the
sub routines in the dll. I am new to dot net and the only thing I can
come up with is that I am referencing the dll wrong. Any suggestions?


Maybe you'll have to import the namespace of the DLL: Add 'Imports
<Namespace name>' on top of your source files. You can change the root
namespace of the DLL in its project options. If you are using modules
in the DLL: Use classes with public shared methods instead.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

P: n/a
JK
None of these suggestions help.
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.