PC Review


Reply
Thread Tools Rate Thread

How do I use "Inherits" and references

 
 
Jethro
Guest
Posts: n/a
 
      18th May 2004
Hi all

I have got my .NET vb project compiling nicely into an EXE.

I wish to use one of the components (declared as Public) stored in the EXE
as a base class for subsequent DLLs to INHERIT from.
However when I try and use the "references" dialog, all I get is a warning
that the .EXE isn't a COM component, or .NET assembly ...
What do I do to generate one of these 2 (ideally a .NET assembly) ....

I guess I could always remove the Public class from the EXE to compile it
into a DLL ...


Thanks in advance




 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      18th May 2004
"Jethro" <(E-Mail Removed)> schrieb
> Hi all
>
> I have got my .NET vb project compiling nicely into an EXE.
>
> I wish to use one of the components (declared as Public) stored in
> the EXE as a base class for subsequent DLLs to INHERIT from.
> However when I try and use the "references" dialog, all I get is a
> warning that the .EXE isn't a COM component, or .NET assembly ...
> What do I do to generate one of these 2 (ideally a .NET assembly)
> ....
>
> I guess I could always remove the Public class from the EXE to
> compile it into a DLL ...


Right. Put it into a DLL and you can reference it from the EXE and from
other DLLs.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with the difference between "Implements" and "Inherits" Tom P. Microsoft C# .NET 1 24th Jul 2008 09:53 PM
Codebehind="pglogin.aspx.vb" Inherits="myOldProject.pglogin" Rod Microsoft ASP .NET 0 19th Oct 2007 03:02 PM
Can References to "Oracle.DataAccess" AND "System.Data.OracleClient" co-exist in one application ? Peter Kanurer Microsoft C# .NET 4 9th Jun 2007 05:09 PM
Inherits=" " problem in page directive -- can't find correct classes! Ranginald Microsoft ASP .NET 2 3rd May 2006 05:17 AM
Making a subdirectory into an application causes inherits attribute to "lose" reference to .vb code Novice Microsoft ASP .NET 2 18th Mar 2004 08:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:51 PM.