Click here to Skip to main content
15,902,445 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Class Inheritance Pin
Pete O'Hanlon29-Aug-07 9:21
mvePete O'Hanlon29-Aug-07 9:21 
GeneralRe: Class Inheritance Pin
#realJSOP29-Aug-07 9:23
professional#realJSOP29-Aug-07 9:23 
GeneralRe: Class Inheritance Pin
Luc Pattyn29-Aug-07 9:38
sitebuilderLuc Pattyn29-Aug-07 9:38 
GeneralRe: Class Inheritance Pin
#realJSOP29-Aug-07 9:50
professional#realJSOP29-Aug-07 9:50 
GeneralRe: Class Inheritance Pin
#realJSOP29-Aug-07 9:38
professional#realJSOP29-Aug-07 9:38 
GeneralRe: Class Inheritance Pin
Pete O'Hanlon29-Aug-07 10:11
mvePete O'Hanlon29-Aug-07 10:11 
GeneralRe: Class Inheritance Pin
#realJSOP29-Aug-07 10:14
professional#realJSOP29-Aug-07 10:14 
AnswerRe: Class Inheritance Pin
#realJSOP29-Aug-07 10:13
professional#realJSOP29-Aug-07 10:13 
SOLVED

Here's what I found.

I have a solution with a project in it that represents an application.

I've added a second project to the solution that represents a DLL (asembly) to be used by the application.

I added a new class (my base class) to the solution, and VS2005 placed the cs file into a folder called Solution Items.

In the assembly, I need to derive from the base class. The only way I could derive from the class was to "add existing item" and select the file.

Unbeknownst to me, the IDE created a copy of the file int he assembly's folder.

I was still editing the copy of the base class that was in the Solution Items folder (which had the desired constructor), but the assembly project was compiling its own local copy. When I added the constructor to the local copy, it compiled fine.

So, do I have to compile the base class into it's own assembly in order to derive from it without this file duplication problem?




"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Class Inheritance Pin
Pete O'Hanlon29-Aug-07 10:21
mvePete O'Hanlon29-Aug-07 10:21 
GeneralRe: Class Inheritance Pin
#realJSOP29-Aug-07 10:31
professional#realJSOP29-Aug-07 10:31 
GeneralRe: Class Inheritance Pin
Pete O'Hanlon29-Aug-07 10:36
mvePete O'Hanlon29-Aug-07 10:36 
GeneralRe: Class Inheritance Pin
#realJSOP29-Aug-07 10:50
professional#realJSOP29-Aug-07 10:50 
QuestionVB application breaks with dll built with Framework 2.0 Pin
saswatpadhan29-Aug-07 7:48
saswatpadhan29-Aug-07 7:48 
AnswerRe: VB application breaks with dll built with Framework 2.0 Pin
Pete O'Hanlon29-Aug-07 9:04
mvePete O'Hanlon29-Aug-07 9:04 
GeneralRe: VB application breaks with dll built with Framework 2.0 Pin
saswatpadhan29-Aug-07 9:54
saswatpadhan29-Aug-07 9:54 
AnswerRe: VB application breaks with dll built with Framework 2.0 Pin
Luc Pattyn29-Aug-07 9:40
sitebuilderLuc Pattyn29-Aug-07 9:40 
GeneralRe: VB application breaks with dll built with Framework 2.0 Pin
saswatpadhan29-Aug-07 9:56
saswatpadhan29-Aug-07 9:56 
QuestionUsing the .Net image machanism without extra copy of the source image Pin
Dudi Avramov29-Aug-07 4:25
Dudi Avramov29-Aug-07 4:25 
AnswerRe: Using the .Net image machanism without extra copy of the source image Pin
Dave Kreskowiak29-Aug-07 4:56
mveDave Kreskowiak29-Aug-07 4:56 
QuestionHow make a dll in Visual C++ to use in C#? Pin
Rui A Sousa29-Aug-07 3:36
Rui A Sousa29-Aug-07 3:36 
AnswerRe: How make a dll in Visual C++ to use in C#? Pin
Paul Conrad4-Nov-07 7:35
professionalPaul Conrad4-Nov-07 7:35 
QuestionLoad a DLL Dynamically Pin
#realJSOP29-Aug-07 0:33
professional#realJSOP29-Aug-07 0:33 
AnswerRe: Load a DLL Dynamically Pin
originSH29-Aug-07 1:03
originSH29-Aug-07 1:03 
AnswerRe: Load a DLL Dynamically Pin
Pete O'Hanlon29-Aug-07 9:10
mvePete O'Hanlon29-Aug-07 9:10 
QuestionIn Windows Server 2003, how to run C# application which uses a VC8.0 dll Pin
pmt28-Aug-07 21:22
pmt28-Aug-07 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.