473,795 Members | 3,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1332
la********@gmai l.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********@gma il.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.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
1908
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 documentation I don't know what to call this syntax or how best to describe it. I have not seen it used in other places. The somewhat longish version is that I have implemented an MVP (model-view-presenter) architecture where each "presenter"...
1
4301
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 window is used in an application which plays its own customised files (of some other extensions) on this view window. Now:
2
1835
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
1641
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 not appear to be available in C#. Rather than using the xsd designers (or purchasing rational rose), is their a recomended method of generating C# classes/interfaces that is of similar (or even faster!) speed to vb .net? Regards,
5
2305
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 class. Methods inside the utility class set few global variables which act as mediums of persistence to hold data. Now my question is all works fine during my initial request and all the global variables are set correctly, but during later...
7
13714
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
1342
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 nature of python interpreter.
2
1699
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 CStdDialogImpl<CFooView> {
1
1776
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 template and call It a lot of time from diffrent menu items.( But with diffrent data (views)) What is the best way to do that. My problem is to find a way to say: If this menu item is clicked load the template form with the template
0
10439
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9043
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7541
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.