473,289 Members | 1,780 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,289 software developers and data experts.

My first Class Libary

I am creating a class libary of VB.Net utilities that will be built into a
DLL. This DLL can be used by our development VB.NET programs when they want
to call standard in-house utilities.

I create the class libary MYCLASSLIBRARY.VB by inserting a whole bunch of
classes, ie:

public class class1
end class
public class class2
end class

And so on. I then build it into a DLL. However, when I include a reference
to this DLL in a separate VB.NET project, only the very first class defined
in the class libary becomes known within the project. All other classes in
the class libary are unknown. (Note: I use "IMPORTS MYCLASSLIBARY" in the
project, so wouldn't everything in the class libary be known?).

Any ideas?

Thanks in advance,

Tom Edelbrok
Nov 21 '05 #1
1 1359
Figured it out. I didn't use "IMPORTS MYCLASSLIBRARY" at the head of each
file that calls any of the classes within the library.

Tom



"Tom Edelbrok" <an*******@anonymous.com> wrote in message
news:rldbe.4360$tg1.425@edtnps84...
I am creating a class libary of VB.Net utilities that will be built into a
DLL. This DLL can be used by our development VB.NET programs when they want
to call standard in-house utilities.

I create the class libary MYCLASSLIBRARY.VB by inserting a whole bunch of
classes, ie:

public class class1
end class
public class class2
end class

And so on. I then build it into a DLL. However, when I include a reference
to this DLL in a separate VB.NET project, only the very first class
defined in the class libary becomes known within the project. All other
classes in the class libary are unknown. (Note: I use "IMPORTS
MYCLASSLIBARY" in the project, so wouldn't everything in the class libary
be known?).

Any ideas?

Thanks in advance,

Tom Edelbrok

Nov 21 '05 #2

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

Similar topics

4
by: C-Sharper or C-Hasher, one of the two | last post by:
Hi, I have a C# class libary (Class1) which is inherited by another class in a Windows Forms app. I want this other class to implement some, but not all of the features of the base class. How...
1
by: Roger Gordon | last post by:
I have the VB.NET Standard Edition. I'm taking a VB.NET class in school. Last night we tried to create a class libary and there was no option to do this in the Standard Edition. Our instructor...
1
by: Ron | last post by:
Hello, I need to create/instantiate a global class library project so that 2 EXE's can write to the same class library form in the same instance of the class libary. I am thinking something...
36
by: Cap'n Ahab | last post by:
I have used VB3 - VB6, so learning all this OO stuff is reasonably new to me (although I looked at Java a few years ago). Anyway, I thought I would write a small class to begin with, with a...
3
by: koffieautomaat | last post by:
I've made one solution containing two projects. The first projects contains a control libary (dll) with a reusable class. The other projects contains a from which i wanna talk to the dll made by...
3
by: Rich | last post by:
I put together a simple test class libary (VB2005) with one class and one function that takes an integer argument and adds 10 the argument and returns that number. Then I created a simple VB2005...
7
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class...
3
by: Jacob | last post by:
Hi! Where do i find .NET class libary in Visual studio? I mean if you would like to browse through the classes and members. Or if you want to search fr specific classes or members. Thanks in...
4
by: vedrandekovic | last post by:
Hello, Does anybody have any idea how can I embed my modules to libary.zip and use it from my application.For example if user write this code in my TextEntry ( or something like that, textentry...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.