473,396 Members | 1,767 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.

Adding a new class to a dll

I've got a dll which houses a namespace hierarchy of useful utilities.
I decided that I wanted to add another class to this namespace today. I
then started up the project, copied the class file to the project
directory, clicked add existing item, and added the class. I then
recompiled the dll.
I then removed the reference to the original dll, and re-added the
reference to (what I thought) get the updated dll. The problem though
is that my new class does not show up in the namespace..
I've tried to delete all occurences of the dll, recompile the, remove
the reference and then add it again, but my changes refuse to appear.
I also tried to move the class to a new sub-namespace but this also
does not appear.

Does anyone have any explanation to what I'm doing wrong?

Jan 11 '06 #1
4 1920
Håvard Olerud Eriksen wrote:
I've got a dll which houses a namespace hierarchy of useful utilities.
I decided that I wanted to add another class to this namespace today. I
then started up the project, copied the class file to the project
directory, clicked add existing item, and added the class. I then
recompiled the dll.
I then removed the reference to the original dll, and re-added the
reference to (what I thought) get the updated dll. The problem though
is that my new class does not show up in the namespace..
I've tried to delete all occurences of the dll, recompile the, remove
the reference and then add it again, but my changes refuse to appear.
I also tried to move the class to a new sub-namespace but this also
does not appear.

Does anyone have any explanation to what I'm doing wrong?

Are you sure the new class is in the same namespace as the others?
Did you check if you compiled the Debug/Release version of the new dll
and if it is that one you are trying to use?
Jan 11 '06 #2
Yes, I've doublechecked this. My release version is compiled to a
shared network drive and I've deleted the file, then recompiled to make
sure it's the correct location with the correct timestamp. I've also
compared the namespace names of two "siblings" but afaiks it's all
correct.

Jan 11 '06 #3
Håvard,

Make sure that your class is declared as *public*. Keep in mind that the
default is *internal*, which means they can only be used inside the
assembly.
--
HTH
Stoitcho Goutsev (100)

"Håvard Olerud Eriksen" <ho*******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Yes, I've doublechecked this. My release version is compiled to a
shared network drive and I've deleted the file, then recompiled to make
sure it's the correct location with the correct timestamp. I've also
compared the namespace names of two "siblings" but afaiks it's all
correct.

Jan 11 '06 #4
Bingo. That was the one thing I'd overlooked. Thanks a bunch!

Håvard

Jan 12 '06 #5

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

Similar topics

5
by: Andrew Ward | last post by:
Hi All, Sorry if this is off topic, but I could not seem to find a suitable OO Design newsgroup. If there is one feel free to let me know. Here is a simplification of a general design problem I...
10
by: sp0 | last post by:
Is there a reason why to make mix numbers improper when adding? It seems when subtracting and adding, adding a subtracting the whole numbers and fraction parts should be sufficient? what'ch think
5
by: surrealtrauma | last post by:
the requirement is : Create a class called Rational (rational.h) for performing arithmetic with fractions. Write a program to test your class. Use Integer variables to represent the private data...
11
by: Steven D'Aprano | last post by:
Suppose I create a class with some methods: py> class C: .... def spam(self, x): .... print "spam " * x .... def ham(self, x): .... print "ham * %s" % x .......
3
by: Gabriele *darkbard* Farina | last post by:
Hi, there is a way to add methods to an object dynamically? I need to do something like this. I remember python allowed this ... class A(object): def do(s, m): print m @staticmethod def...
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
13
by: Rob Meade | last post by:
Hi all, I have written a small ProperCase function which I would like to make available to our team at work through our common class library. A colleague mentioned that I could write a new...
2
by: Dave Calkins | last post by:
I'm wriiting an MFC C++ application which uses a third party C# .NET API via a DLL. The app runs fine. If I add a new, empty C++ class, and compile/link it refuses to run, complaining about not...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.