473,734 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Root namespace in vb.net

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
6 4028
"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

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
"Viet Pho" <vp**@hotmail.c om> 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
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.c om> wrote in message
news:uW******** ******@TK2MSFTN GP10.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
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.nosp am> wrote in message
news:O0******** ******@TK2MSFTN GP09.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.c om> wrote in message
news:uW******** ******@TK2MSFTN GP10.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
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******** ******@TK2MSFTN GP10.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.nosp am> wrote in message
news:O0******** ******@TK2MSFTN GP09.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.c om> wrote in message
news:uW******** ******@TK2MSFTN GP10.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8687
by: cplusplus | last post by:
Hello, I have newbie question. I'm stuck on this current assignment. Write a program that prompts the user for two integer values, passes the values to a function where they are multiplied together and the square root of the product is returned and displayed for the user. The function should return a double. Hint: If you multiply an integer by 1.0 the result will be a double. For example:
6
8346
by: David B. Bitton | last post by:
I am having a problem deserializing XML when the root node is missing a namespace declaration. My Type has an XmlTypeAttribute with a namespace defined. If I attempt to deserialize the XML, I get the dreaded <elementname xmlns=''> was not expected exception. If I comment out the XmlTypeAttribute, it works just fine. Just so you know, when I instantiate an instance of an XmlSerializer, I pass a default namespace to the ctor. ...
4
11802
by: Sebastien Tardif | last post by:
Subject: XmlSerializer.Deserialize complain when root declare the namespace If I do XmlSerializer.Deserialize( myString ) and myString is: String myString = "<?xml version=\"1.0\" encoding=\"utf-16\"?><DocumentResponse ><documentSize xmlns=\"urn:webservices.docharbor.com\">23</documentSize></DocumentResponse>"; It's working
3
3095
by: Lee Moody | last post by:
Does anyone know where I can access programmically the value stored in the "Root Namespace" parameter of the project's common properties? To find this within the IDE, select your project name under the solution explorer, right click, select properties, the first form that comes up has the value stored in the "Root Namespace" field. I need to find out how to find this value using code. Thanks in advance.
3
1815
by: CCJohn | last post by:
Hi, I find that while I can use the "Namespace...End Namespace" inside my code, there is also a "Root namespace" field in the project properties dialog box under General. So where should I put my REAL root namespace, or should I leave it blank, or should I create any at all? Please advice. Thanks in advance. CCJohn
2
1968
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the project's root namespace). However, the project also includes a couple of source files whose contents will live in an entirely different namespace, let's say the "Special"
2
21871
by: Rich | last post by:
Greetings, I am trying to find a way to use a form of GetObject in VB.Net and have been researching WMI. Apparently, this is a vast subject, but seems to reference a Namespace called Root.CIMV2. Does anyone know how to access this namespace? Thanks, Rich
16
3522
by: TT (Tom Tempelaere) | last post by:
Hi all, I created an XSD to define the structure of an XML file for my project. I made an XML file linked to the XSD using XmlSpy. The problem is that if I read the file using .NET XmlDocument and then query for the root element, the result is always null (1). However if I strip the root element of all attributes generated by XmlSpy, then there is no problem to find the root element with .NET XML classes (2). (1) The XML for which...
2
4761
by: gabe | last post by:
Hi, We have a number of projects that will use the default 'Root Namespace' option in the project properties box. There will be a common Master Page that will be used among the projects. I'd like to be able to use the master page without including the root namespace in the masterpage Page declaration. In the example below, 'TESTApp' is the default Root namespace (the name of the project) <%@ Page Language="vb"
0
8946
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
9452
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
9310
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
9184
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...
0
8187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6033
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4551
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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.