How do I use "Inherits" and references

J

Jethro

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
 
A

Armin Zingler

Jethro said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top