I have been working with standard C++ on Visual Studio for a while, and now I decided to try writing applications. I encountered the problem that in Windows Forms Applications intellisense was "Unavailable for C++/CLI". So I looked up what could be done and I found I could disable "\clr" from the options. So I did that.
Now the compiler complains that the using namespace System; directive fails at finding the namespace System.
Now, uncle Google seems to tell everyone to turn back on the \clr support which I am trying to avoid.
So my question is, where does the namespace live in, so that I can include its header or some other workaround so I can work with the little intellisense left by MS and live with it, as a tool such a Visual Assist is only for free for a limited time.
Thanks, and sorry if the question is disturbingly simplistic
System is a .NET Framework namespace and therefore will require the CLR option when compiling source that uses it.
Are you looking for using namespace std for command line applications?
You will need the /CLR (forward slash) option on to use the .NET frameworks. Visual Studio 2008 has better (not perfect, but livable) Intellisense for C++/CLI. If you don't need any newer features, that might be a better option for you.
Related
I saw some developer have visual studio inline watch without using any third party plugin. I searched in settings to turn this ON but I can not understand what option will allow me this.
I can get this feature using Entrain Inline watch but this is a paid software and I know the visual studio has a built-in feature for this. Can you let me know how can I turn this on?
See the screenshot, I can see the variable values in line using entrain third-party plugin but I want to use the visual studio's built-in option
For future referrence, I would like to share one tool that I have found useful, that is Entrian Inline Watch visual studio extension, very useful.
I'm afraid the answer is negative.
For now, Visual Studio2015 doesn't support for watching inline values in debug mode.Please check this document,it describes several ways to watch values in debug mode without using third-party plugin.
I saw some developer have visual studio inline watch without using any
third party plugin.
As I know, VS2015 doesn't have this option. But VS Code seems to support this feature now. I'm not sure if the developer you mentioned has some extension like Resharper or what. It also provides this feature like Entrain Inline watch.
If you have a requirement to achieve this feature in VS2015, I suggest you post your suggestion on DC by Help=>Send feedback=>Provide a Suggestion, if it gets enough votes, the product team would consider it.
guys,
Is there a VS2010 VC++ add-on to auto generate C++ class method declaration code in header file and implementation code in cpp file when I am trying to add a new method into an existing class?
Too many add-on. Maybe there is, but I don't know which one.
Thanks.
Visual Assist X from Whole Tomato has an "Add Member" as well as "Create Implementation" and "Create Declaration" functions. It can also move implementation to source amongst other things. So far this has been the best (and only) c++ plug-in I use. Further, it's Intellisense feature is much better than Visual Studio's built in one.
Unfortunately it's not free, but well worth it.
I'm using Visual C++ in Visual Studio 2010 Express, and in the past I remember when you use a string object and after the dot (eg: .) all the member functions will show in list, but that's not happening.
string myString = "hello world";
myString.
After typing the dot, all functions that are part of the string class don't show. Where in Visual C++ is the setting to make them show?
The functionality you refer to is called IntelliSense in Microsoft-speak, their version of autocompletion for variable names, functions, and methods.
IntelliSense is not supported in Visual Studio 2010 for C++/CLI projects. You will only get IntelliSense for projects written in native C++ code. This is explained in more detail here on the Visual C++ Team Blog. There is also a bug filed on Microsoft Connect; the official word is this:
Thanks for your feedback. Unfortunately in this release we had to cut the intellisense support for C++/CLI due to time constraints. If you want to get some intellisense like quick info and memberlist on the native classes you can get it by choosing no /clr support in the project properties.
Thank You!
Visual C++ Team
This is unfortunate news for many of us who work with C++/CLI projects, and we aren't left with many options. A question regarding those options has been asked here: What are people replacing the missing C++/CLI Intellisense in VS 2010 with? The summary is people are either going back to VS 2008
(I believe the Express Edition of 2008 is still available for download if you look around), or purchasing third-party software such as Visual Assist X that promises to bring back IntelliSense.
It's worth mentioning, however, that Microsoft does not regard C++/CLI as a "first-class" .NET language. There's little (if any) reason to start new projects using the language. It's designed for interop purposes between native C++ and managed C# applications. If you want to write C++, you should target the native Windows API (create a new Win32 project in VS). If you want to write managed .NET code, it is highly recommended that you use C# instead (that's a different version of Express that must be downloaded separately). The syntax is very similar between C++ and C#, but you will still have to learn the .NET Framework and idioms. Both native C++ projects and managed C# projects have very much improved IntelliSense support in Visual Studio 2010, so you're guaranteed to be much happier with either of those.
I'm currently considering a big "no no" and jumping over to VS 2010 while it's still in RC... after all, text code is text code, how bad can it "F" things up?
I'm just wondering if anyone is using VS 2010 for their projects? I'm very much interested in the subtle additions as well as the multi-screen support.
I've been using it in a VM and it's been pretty stable and even resharper 5.0 has support for it now so it's as good as fully baked for my liking.
A few things to be careful of are:
the .sln files aren't backwards compatible so it won't be easy to share with other people not using VS2010.
There are a number of plugins that don't yet support VS2010 so if you depend on any third party plugins make sure they work
ASP.NET MVC 2 RC 2 has a bit of funkiness so you should check out this post to make sure you've got all your stars aligned if you're using 2010 and MVC.
As you said first of all it is still in RC. People wouldn't upgrade the current Visual Studio version unless there is a reason for it.
If you are not going to use any of the features in .net 4.0, it is probably not important to switch to Visual Studio 2010.
We are using VS2010RC and TFS2010 for our projects in production.
Works great!!
What I like in VS2010 and use:
Test Manager for recording manual tests in Web, WPF, Windows Forms and soon in Silverlight. AWESOME!
Generating "Coded UI" tests
Hierarchical work items (TFS) finally :-)
What I like in VS2010 but don't use yet:
.NET4 features like: Parallel extensions, dynamic keyword, optional and named parameter
Yes, Multi Monitor support works a bit better, but was fine for me with VS2008 too
Can I use LINQ within VS2005 if I have .NEt 3.5 installed?
The thing to remember is that at it's core Visual Studio, like any IDE, is a glorified text editor with an integrated debugger, and maybe a few other features as well. You could certainly use Visual Studio 2005 to input the code text of your linq program and then use the .Net 3.5 command line compiler to build it. You might even be able to find or write an add-in to automate the build process.
That means the technically correct answer to your question is, "Yes."
However, you won't get any extra IDE support:
Incorrect/broken intellisense.
Incorrect/broken syntax highlighting
Inability to work with .Net 3.5+ solution files.
No debugger support
The result is that you would probably be better served if I had simply said, "No."
If you already have 2005 but not 2008, you have a few options:
Get the 2008 Express Edition
Use a third-party tool like #Develop
Buy a 2008 full edition
There is no direct compiler support for LINQ in VS 2005.
You can still use the LINQ namespace and methods, however, it is not as elegant as using it in VS 2008.
See this article for details.
Vs2005 and C# do not directly support Extension Methods, Lambda Expression, Anonymous Types or Expression Trees which are key enabling features of LINQ. Some of the early LINQ betas did work with VS2005 and C# but none of the release products.
Likely the same for VB but I can't directly comment on VB other than I am about 99.99% sure you can't.
Simple answer is no.
LINQ relies on language features (such as extension methods) that VS2005 does not support.