namespaces

Where does Visual Studio get the data intellisense and name-space completion

I admit...I am posting this question because I still don't have an answer to my other question and thought I would take a different tact. Can someone explain to me WHERE the values for intellisense and namespace/class/member completion works. I figured if I can drill into where/how it is deriving that data I can try to reconfigure my...

ASP.NET: Trying to parse Google Base XML, can't access "g:" tags

My customer doesn't want a database but would prefer to update their data in an XML file. This is all well and good. However, they also want their items to be submitted to Google products. This complicates things a bit. I decided to attempt to just use the Google XML file for the database rather than create and maintain two separate file...

Overspecified Namespace in UserControl fails WPF Build

I have a very simple user control, and I'm trying to instantiate it in XAML. I find that when I go a bit overzealous with the namespacing, I run into problems with x:Name. Here is my UserControl: <UserControl x:Class="UserControlTest.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema...

C Typedef and Struct Question

What's the difference between these two declarations, and is one preferred over the other? typedef struct IOPORT { GPIO_TypeDef* port; u16 pin; } IOPORT; typedef struct { GPIO_TypeDef* port; u16 pin; } IOPORT; ...

Does the anonymous namespace enclose all namespaces?

In C++ you specify internal linkage by wrapping your class and function definitions inside an anonymous namespace. You can also explicitly instantiate templates, but to be standards conforming any explicit instantiations of the templates must occur in the same namespace. AFAICT this should compile, but GCC fails on it: namespace foo { ...

(ASP.NET) Automatic way to put all code-behind classes in a namespace.

I just converted a WebSite to a Web application and put in a new namespace. I now need to put all code behind files in this namespace. is there an automatic way to do it or am I going to have to go to each page and do it manually? ...

MSXML DOM: Add namespace declaration to an existing node in a tree

Problem description: Read an xml file, traverse to a particular node (element), if it does not have a particular namespace declaration, add the required namespace declaration, and write out the file. I need to do this in C++ using Microsoft's MSXML DOM APIs. The namespaceURI property on IXMLDOMNode COM object is read-only according to t...

C# Namespaces/Folders: when is getting too organized/creating too many namespaces not right?

Hello: I like trying to stay organized when developing, grouping related *.cs flies together into their own folders: ->Project --->Enums --->Exceptions --->Extensions --->Providers --->Configuguration --->Design --->etc. Manager.cs As you all know, Visual Studio, by default, creates a new Namespace for each folder: Company.Product...

Accessing an enum in a different namespace

I'm using C# in VS2005. I have a class library that contains several enums common to a number of different projects. When accessing one of these enums I have to specify the whole namespace path to the enum even though I have declared a 'using' directive to the namespace that contains the enum. For example I have the following enum: nam...

Can you put a library inside a namespace?

I am working with OpenCV and I would like to put the entire library inside it's own namespace. I've looked around quite a bit but haven't found an answer... Can you do this without modifying the library source code? If then how? ...

Access Class library from MVC project??

I have a Class Library project and MVC project in the one solution. My class library has the namespace MyStuff.Classes My MVC project has the namespace MyStuff.Web I can't seem to access my class library from the mvc project or vice versa directly or with a using directive?? Whats the best way to use namespaces in this instances? and...

web link in svg

Hi all. I need to have a linked text inside a svg graph. Here is what I did <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="138pt" height="188pt" viewBox="0.00 0.00 138.00 188.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/1999/xhtml"&gt; <g id="graph0...

Cannot find DataContractJsonSerializer from an Asp.Net Mvc application...

I can't get access to the DataContractJsonSerializer method from System.Runtime.Serialization.Json If I do: using System.Runtime.Serialization.Json; I get an error... How can I access this in my Asp.Net Mvc app so I can use the DataContractJsonSerializer method ...

Namespace loop or code leak in boost::function ?

I'm really baffled by this. Have I managed to do something to cause this, or is it an unclosed namespace block in boost, or some bug in VS c++ 2008? I'm definitely sure I've closed all my own namespaces properly, all includes are outside of and above them, and all my header files got include guards. The boost/function.hpp is only incl...

Move namespace from SOAP envelope root to xml payload

I've got a soap envelope that is returned from a encoded RPC PHP service that I wrote that declares a namespace in the root node of the SOAP envelope. However, I want that namespace to be in the root node of the xml payload in the SOAP body. Basically, I want this: <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/...

How do I parse XML containing custom namespaces using SimpleXML?

I'm wondering how to parse values in XML that appear to have : in their name. I've been using: $response = file_get_contents($url); $data = simplexml_load_string($response); then doing a: foreach($data->item as $key => $current){ However, one of the latest feeds that I've been given has colons in the name of the feed as seen in ...

wpf binding combobox to enum in different namespace

I'm trying to bind a XAML ComboBox so that its list items are the members of the System.IO.Ports.Parity enum. I've found plenty of examples of databinding enums, but it seems these don't work if the enum is in a different namespace (like System.IO.Ports). Right now I have: <ObjectDataProvider MethodName="GetValues" ObjectType="{x:Ty...

Namespace Clashing in C++

I cannot understand why this piece of code does not compile: namespace A { class F {}; // line 2 class H : public F {}; } namespace B { void F(A::H x); // line 7 void G(A::H x) { F(x); // line 9 } } I am using gcc 4.3.3, and the error is: s3.cpp: I...

Accessing Parent Namespace in C++

Hello, all :) I've got a scenario like the following: class criterion { // stuff about criteria... }; namespace hex { class criterion : public criterion //does not compile { //This should inherit from the //A hex specific criterion //criterion class in the global namespace ...

Tabbed documents in Visual Studio - possible to show more detail than the file name?

I have a solution where I'm repeating various class names within three different projects (a WCF service project, a unit testing project and a BL project). Also partial classes have been used to spread these classes across multiple files. The net result is that I've got 5 different file names that are repeated across three different pro...