473,388 Members | 1,346 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,388 software developers and data experts.

Class View bug - fyi

I have just started spending serious time in the new studio 2005
C++/CLI arena writing some code assembly that will attache to a much
larger C# caode base. In keeping with the highly used namespaces in
C#, I have been making sure I organise my interfaces and class into
correct namespaces.

....However, I have run into a situation where when I renamed a
namespace in the code, the "Class View" window would not release the
old namespace name nor recognise the new name.

To make a long story short, after searching for this issue in the
groups and trying a a number of different things including removing
files (and deleting) from the project, recompiling, etc., the only way
I found to resolve this was to:

1) Close studio
2) delete the debug folders
3) delete aps and ncb files
4) reopen the solution and let it rebuild the class view

Not sure which files actually had to be removed... not sure if I care.
I am already edgy about C++/CLI not supporting the Class Designer... I
know they had trouble integrating it into VC and they had to pick and
choose their battles, but hey! I have no interrest in flaming C#, but
to me, moving away from 2005's VC (which now rocks with the new
language mods) to C# would be a step down.

....sorry about the rant at the end.

Tony

Apr 12 '06 #1
2 1314
la********@gmail.com wrote:
I have just started spending serious time in the new studio 2005
C++/CLI arena writing some code assembly that will attache to a much
larger C# caode base. In keeping with the highly used namespaces in
C#, I have been making sure I organise my interfaces and class into
correct namespaces.

...However, I have run into a situation where when I renamed a
namespace in the code, the "Class View" window would not release the
old namespace name nor recognise the new name.

To make a long story short, after searching for this issue in the
groups and trying a a number of different things including removing
files (and deleting) from the project, recompiling, etc., the only way
I found to resolve this was to:

1) Close studio
2) delete the debug folders
3) delete aps and ncb files
4) reopen the solution and let it rebuild the class view

Not sure which files actually had to be removed... not sure if I care.
I am already edgy about C++/CLI not supporting the Class Designer... I
know they had trouble integrating it into VC and they had to pick and
choose their battles, but hey! I have no interrest in flaming C#, but
to me, moving away from 2005's VC (which now rocks with the new
language mods) to C# would be a step down.

...sorry about the rant at the end.


Please post a bug report at http://lab.msdn.microsoft.com/productfeedback
and post the URL to the bug report here so that others can valdiate and vote
on it.

Mostly likely, all you needed to do is delete the .ncb file. NCB stands for
"No Compile Browser" aka Class View and Intellisense.

Personally, I don't miss the class designer in C++. It's nice in C#, but
even there it's so limited that I'm constantly switching back & forther
between the diagram and the code - it'd be even worse in C++ since the class
designer has no ability to deal with separation of interface and
implementation, or any C++ language features that don't map directly to C#
(e.g. template, free functions).

What is absolutely wonderful in C# (especially in 2005) is having
Intellisense that's 99.99% accurate. Intellisense in VC++ 2005 has come a
long way, but it's not up to the level of C# or VB yet.

-cd
Apr 12 '06 #2
<la********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
1) Close studio
2) delete the debug folders
3) delete aps and ncb files
4) reopen the solution and let it rebuild the class view

Not sure which files actually had to be removed... not sure if I care.


When Intellisense stops working correctly for me I often have luck closing
the solution and deleting the .ncb file.

Regards,
Will
Apr 12 '06 #3

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

Similar topics

4
by: Donnal Walter | last post by:
This is a question about Python patterns or idioms. Over a period of time, I have evolved a pattern of usage that seems to work better for me than other ways I tried previously, but in writing some...
1
by: agrsaurabh | last post by:
Hello Everybody, I have created an AVI Player using DirectShow. This player is working fine. I have also created a View Window (with class name CViewWnd) using CFrameWnd class. This view...
2
by: chandra sekhar | last post by:
Hi All, I have problem regarding the friend class. I have a library where the class are declration is follows ( only example ) class Frame { public: protected:
2
by: dotNEWBIE | last post by:
In VB .net I and my colleagues will often use abstract interfaces and VB's 'class wizard bars' at the top of the IDE for inheriting and generating a number of new classes quickly. This feature does...
5
by: Diffident | last post by:
Hello All, I have written a webform which is by default derived from "Page" class. I have coded another utility class with few methods and an object of this class is instantiated from the webfom...
7
by: S. Lorétan | last post by:
Hi guys, Sorry for this stupid question, but I don't know why it isn't working. Here is my (example) code: namespace Test { class A { public string Label1; }
2
by: Pyenos | last post by:
class model:pass class view: model() class controller: model() I can instantiate clsss model from inside class view but I can't instantiate class model from inside controller, due to the...
2
by: mosfet | last post by:
Hi, I have qome questions about templated class and pointer. Let's says I have some graphical classes defined like this(WTL framework) : // represent a view class CFooView : public...
1
by: SePp | last post by:
Hello together, I have a main form which includes a Datatoolstripmenu. From one of these items I want to call a Form which includes an DataGridview. I want to use this form and datagridview as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.