473,789 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Old Class Library Objects Keep Showing Up!

Hello:

I have a C# app that I'm trying to build. I have three projects in
the solution, the first of which stores the base object definitions
(base form, base textbox, base commandbutton, etc), the second project
holds an intermediate class level (subclassed from the base class
stuff), and a third class level that holds the end forms. I'm trying
to add a form called "AddCustome r" to the highest level project. The
problem is, I decided to change some controls around on the base form
(add some commandbuttons) , but the old layout is showing up on the
derived classes. ie, The form objects from the old build of the base
project are still showing up on the end forms.

Why aren't the new changes in the base form reflected in the derived
form, after a solution rebuild? Why am I still seeing the old layout?

Thanks!

Steven
Nov 16 '05 #1
2 1256
Steven, check the "bin" folder(s) of your projects and see if they have the
latest date/time of the topmost (or base) project. If they are not in
synch, right-click the solution & choose "Rebuild Solution". Sometimes I'm
not sure that Visual Studio always updates my referenced dlls, but
rebuilding the whole solution usually works.

You might try right-clicking the solution, then choose "Configurat ion
Manager". That's how Visual Studio knows which to build & not build for a
given configuration. Do you think your settings are correct? --Marty
Nov 16 '05 #2
On Tue, 27 Apr 2004 16:04:59 -0700, "Marty McDonald"
<mc******@wsdot .wa.gov> wrote:
Steven, check the "bin" folder(s) of your projects and see if they have the
latest date/time of the topmost (or base) project. If they are not in
synch, right-click the solution & choose "Rebuild Solution". Sometimes I'm
not sure that Visual Studio always updates my referenced dlls, but
rebuilding the whole solution usually works.

You might try right-clicking the solution, then choose "Configurat ion
Manager". That's how Visual Studio knows which to build & not build for a
given configuration. Do you think your settings are correct? --Marty

Thanks, Marty:

I have all three class level dll's in separate folders, and the
versioning is correct.

I went ahead and deleted the form to start again, and when I try to
right click on my topmost project and choose ADD | Add Inherited Form,
I get another wacky message. I enter the name frmAddCustomer, click
Open, and get the message:

Unable to load assembly D:\Path\App1\ob j\debug\App1.dl l
Ensure that the file is a valid .Net Framework assembly.

, where App1 is the baseclass app that contains the form class that
I'm trying to inherit. First of all, It's compiling the .dll to the
\bin folder, but this message indicates that it expects to find the
dll in the \obj folder. Something is wacked here. All of the
settings via the configuration manager for the solution are correct
(compile all three projects to debug)..

Ideas?

Thanks!

Steven
Nov 16 '05 #3

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

Similar topics

2
1925
by: Thomas Miller | last post by:
Hello, I have built a c# class library (I will call it "Assembly1"), and built an installer that installs it. It is working well. I created a new asp.net application, right-clicked on references and selected "add reference". My "Assembly1" is not showing up under the list of components under the .NET tab. I have to click "browse" and manually locate the dll. How do I make it show up in the list of available .NET objects? Tom
66
6642
by: Mike Stenzler | last post by:
I am new to Template programming and I would like to create an array of user-defined class objects using MFC CArray. Normally I would use linked list processing - create an object class and then an object-list class, but in this instance array processing would be more efficient. However I need to use arrays that can dynamically shrink and grow ala Visual Basic arrays. I'm confused as to how to declare/implement the CArray using my Class....
8
2848
by: JustSomeGuy | last post by:
I need to write an new class derived from the list class. This class stores data in the list to the disk if an object that is added to the list is over 1K in size. What methods of the std stl list class must Ioverride in order for this to work?
6
1739
by: SearedIce | last post by:
Consider the following simplified hypothetical code: #include <iostream.h> class rabbit { public: rabbit() {x = 3; y = 3; /*code here to set field to 1*/} void runtocage(); int x;
7
2117
by: WXS | last post by:
Vote for this idea if you like it here: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=5fee280d-085e-4fe2-af35-254fbbe96ee9 ----------------------------------------------------------------------------- This is a consortium of ideas from another thread on topic ----------------------------------------------------------------------------- One of the big issues of organizing items within a class, is there are many...
9
4027
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New DataTable("SliceInfo") Dim tblSliceRatings As New DataTable("SliceRatings") '.... All the adding datacolumns, datarows, etc. goes here.. DatasetInit.Tables.Add(tblSliceInfo)
7
10324
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 called AssemblySettings that someone (I forget his name) had written. When the class library was finished, you deployed it to the GAC and put the configuration files in the GAC with the class library assembly. This no longer works. In fact...
4
1884
by: Basilisk96 | last post by:
This topic is difficult to describe in one subject sentence... Has anyone come across the application of the simple statement "if (object1's attributes meet some conditions) then (set object2's attributes to certain outcomes)", where "object1" and "object2" are generic objects, and the "conditions" and "outcomes" are dynamic run- time inputs? Typically, logic code for any application out there is hard-coded. I have been working with...
1
1918
by: mjdryden | last post by:
I have a bit of a complicated mix of COM and .Net here, so bear with me while I explain :) We have a Type Library that defines all of the interfaces used in this project (a rather large one at that) which was created in VB6. For a number of unrelated reasons, we've chosen to create new .Net classes that implement these interfaces, which are, for the most part, working correctly. We are able to pass our new objects into our COM classes...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10410
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9984
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.