Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

using namespace issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
--== Alain ==-- - 04 Nov 2006 10:44 GMT
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.
Bruno van Dooren [MVP VC++] - 04 Nov 2006 11:49 GMT
> 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.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.