473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Compiler Error C4277 in VS.NET 2003...


I'm getting this error:

Script View.cpp(40) : warning C4277: imported
item 'Homegazer::CoreLibrary::ScriptTable::_Deleted'
exists as both data member and function member; data
member ignored

ScriptTable is a C# class with a constructor and some
static members and "Script View.cpp" is a native C++
class and one of the offending lines is the code snippet
below:

Keyword=dynamic_cast<System::String*>
(ScriptTable::OpCodeTable[nCount].name);

It seems any attempt to access the static public
properties of the class from a native c++ class causes
the error and I can't find any reference to a C4277 in
the MSDN.

Dave Reed
Ciber, Inc.

Nov 16 '05 #1
1 1346
Can you try to rebuild your C# code without the /incremental switch. The
_Deleted metadata token is a leftover from the C# incremental build and the
C++ compiler has a problem handling it.

Ronald Laeremans
Visual C++ team

"Dave Reed" <da*****@ciber.com> wrote in message
news:2f****************************@phx.gbl...

I'm getting this error:

Script View.cpp(40) : warning C4277: imported
item 'Homegazer::CoreLibrary::ScriptTable::_Deleted'
exists as both data member and function member; data
member ignored

ScriptTable is a C# class with a constructor and some
static members and "Script View.cpp" is a native C++
class and one of the offending lines is the code snippet
below:

Keyword=dynamic_cast<System::String*>
(ScriptTable::OpCodeTable[nCount].name);

It seems any attempt to access the static public
properties of the class from a native c++ class causes
the error and I can't find any reference to a C4277 in
the MSDN.

Dave Reed
Ciber, Inc.

Nov 16 '05 #2

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

Similar topics

2
by: | last post by:
I first thought I had some compiler setting wrong in VC# 2003 but it turns out that it has something to do with .NET framework v1.1 itself. If I understand correctly, .NET installer also installs a...
0
by: Kris Desmadryl | last post by:
Hi all, I get two problems, I don't know if there are related, but I do know that I'm already stuck for days on them. First problem : Visual Basic .NET compiler is unable to recover from the...
0
by: Vijay Chegu | last post by:
Hi All, I am trying to port a perfectly working 32bit COM module developed in VC++ from 64bit. I am not able to generate .tlb file through midl compiler. I set the property thru the...
5
by: Michael Kennedy [UB] | last post by:
Hi, I would like to report some weird behavior which results in an internal compiler error in VS.NET 2003 (VC++). I have an ATL COM dll project which also uses MFC. This solution (workspace...
6
by: David Lack | last post by:
Hi, I recently installed a 60-day trial of .NET 2003 on my development system. I made tests with previous personal projects (which compiled ok with VC6) and some open source files, and keep...
1
by: Irakli Lomidze | last post by:
Internal Compiler Error VS.NET 2003 Enterprise Architect Windowx XP SP1 RAM 1GB Free DiskSpacs 20GB
1
by: Invalidlastname | last post by:
Hi, Our developer team recently started getting the compilation error, see below, once a while running the asp.net web application from Visual Studio 2003 (in debug mode), and we have to rebuild the...
6
by: Russ | last post by:
This really is the worst Microsoft product I have ever had the misfortune to work with. After the excellent feattures and stability of VS.NET 2002 and 2003, I was confident enough to start a...
8
by: STG | last post by:
Greetings, My group has an SDK that was developed 5 years ago with VC++ 6. Over the last years, the requests for a VS.NET SDK has reached critical mass and I am now in the process of doing that....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.