473,498 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using namespace issues

Hi I've create a C++ managed Class as :

*.h file
--------
#pragma once

#include "afxcmn.h"
using namespace System::Design;
using namespace System::Drawing::Design;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;

namespace VXP_Editors
{
ref class VXP_ColumnEditor : public
System::ComponentModel::Design::CollectionEditor
{
public:
VXP_ColumnEditor(void);
};
}

and *.cpp file
--------------
#include "stdafx.h"

#include "VXP_ColumnEditor.h"

namespace VXP_Editors
{
#pragma region VXP_ColumnEditor

VXP_ColumnEditor::VXP_ColumnEditor(void)
{
}
#pragma endregion
}
when i compile it, VC++.NET displays errors :

l:\editors\VXP_ColumnEditor.h(5) : error C2039: 'Design' : is not a
member of 'System'
l:\editors\VXP_ColumnEditor.h(5) : error C2871: 'Design' : a namespace
with this name does not exist
l:\editors\VXP_ColumnEditor.h(13) : error C2039: 'CollectionEditor' : is
not a member of 'System::ComponentModel::Design'
l:\editors\VXP_ColumnEditor.h(13) : error C2504: 'CollectionEditor' :
base class undefined

how is it possible ?
in my project property options, i add the references to the right
SystemDesign.dll
thx for help.

Al.

Nov 4 '06 #1
1 2820
l:\editors\VXP_ColumnEditor.h(5) : error C2039: 'Design' : is not a member
of 'System'
l:\editors\VXP_ColumnEditor.h(5) : error C2871: 'Design' : a namespace
with this name does not exist
Open the object browser (view menu) and look at system.design.dll
You'll see that there is no System::Design namespace.

Probably a bug in intellisense because it is not supposed to present the
option IMO.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Nov 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5681
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
3
2101
by: Jay Douglas | last post by:
Hello all, I've wrote a .dll in c#. The .dll needs to be used by a VB 6 application. At first, I couldn't set a reference from the VB app, but then I found the register for COM Interop in the...
7
8417
by: thechaosengine | last post by:
Hi all, Can anyone tell me if it is advisable (or even possible) to define a namespace across 2 or more assemblies? For example, consider the namespace SampleApplication.Data.Providers ...
30
4059
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" <<...
6
2776
by: Andrew Robinson | last post by:
assuming that I have a class public class MyClass { public string FirstName { get {...} set {...} } } how can I assign the FirstName property using reflection on a generic class
9
1763
by: chikkubhai | last post by:
Why is the result different for the following set of two code snippets Code without using this pointer #include <string> #include <iostream> using namespace std; struct X { private:
1
2028
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
Thank you Wen Yuan, This did answer my question, but it took a lot of work to implement. My original code did not use any namespace so I had to modify and test some 3000 lines of code to make...
7
2792
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
13
3964
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
This is a follow-up to my post "Silverlight video doesn't work when file is streamed from handler in ASP.net" at...
0
7163
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,...
0
7200
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...
0
7375
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...
0
5460
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,...
0
4586
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...
0
3090
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
287
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...

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.