By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

Root namespace in vb.net

P: n/a
Is it possible to instantiate an object from the Root namespace? I have a MS
Visual Studio 2002 vb.net project consisting of a dozen individual project
files and I would like to know how to transfer messages from project to
another within the Solution Explorer.

Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Viet" <vp**@starcalif.com> schrieb:
Is it possible to instantiate an object from the Root namespace? I have a
MS
Visual Studio 2002 vb.net project consisting of a dozen individual project
files and I would like to know how to transfer messages from project to
another within the Solution Explorer.


You can reference other DLL projects from within DLL/EXE projects. It's not
supported to reference an EXE project from another project. To add a
reference, right-click the project in the solution explorer, choose "Add
reference...", and select the project in the projects tab.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

P: n/a

Thanks for your reply.

All my project files are exe format. For me to add a reference to the
project, I have save them as a dll which won't do (because of the code).
Is there another way?
Thanks,
Viet

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3

P: n/a
"Viet Pho" <vp**@hotmail.com> schrieb:
All my project files are exe format. For me to add a reference to the
project, I have save them as a dll which won't do (because of the code).
Is there another way?


No.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

P: n/a
You can actually just change the file extension from .exe to .dll and you'll
be able to make the references and use the objects. You will NOT be able to
run those projects directly anymore, however.

"Viet Pho" <vp**@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Thanks for your reply.

All my project files are exe format. For me to add a reference to the
project, I have save them as a dll which won't do (because of the code).
Is there another way?
Thanks,
Viet

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #5

P: n/a
Since the root namespace is essentially another namespace, can't I just
declare a namespace class and have it reference the root namespace?

"Scott M." <s-***@nospam.nospam> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
You can actually just change the file extension from .exe to .dll and you'll be able to make the references and use the objects. You will NOT be able to run those projects directly anymore, however.

"Viet Pho" <vp**@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Thanks for your reply.

All my project files are exe format. For me to add a reference to the
project, I have save them as a dll which won't do (because of the code).
Is there another way?
Thanks,
Viet

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 21 '05 #6

P: n/a
What do you mean by the root namespace being "another" namespace?

Namespaces are just labels that designate how to organize and group classes
and interfaces. How and why you make references is not affected by
namespaces.

Namespaces are used to refer to a class. Imports statements are used so
that you don't have to refer to the namespace that a class is in.
Namespaces and references are two distinct and different things.
"Viet" <vp**@starcalif.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
Since the root namespace is essentially another namespace, can't I just
declare a namespace class and have it reference the root namespace?

"Scott M." <s-***@nospam.nospam> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
You can actually just change the file extension from .exe to .dll and

you'll
be able to make the references and use the objects. You will NOT be able

to
run those projects directly anymore, however.

"Viet Pho" <vp**@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
>
> Thanks for your reply.
>
> All my project files are exe format. For me to add a reference to the
> project, I have save them as a dll which won't do (because of the
> code).
> Is there another way?
> Thanks,
> Viet
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.