I need some information about the differences of MFC between VS2008 and VS2010. For example I found some differences in OpenDocumentFile method (docmgr.cpp). Someone knows where can I find this information?
From the MSDN page - Breaking Changes in Visual C++ for VS2010:
Related
After being away for a decade, I am using Jeff Prosie's Programing MFC to rebuild my understanding of MFC using visual studio 2012. His simple Hello World program generates a LNK 1561: entry point must be defined error. Since I have a global CWinApp declared, I do not understand this. All of the suggestions I saw cited a VS 2010 menu item that does not appear in VS 2012.Can anyone get me started (I don't want to use the MFC wizard yet).
If you "hand-crafted" a project, chances are that you haven't set all the settings correctly for an MFC program, including linking of the MFC libraries and setting the correct entry point.
I know you say that you don't want to use the MFC wizard, although I'm not sure why you don't... but the answer to that is Use the MFC wizard.
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 cant seem to find any useful information whether constructor delegates that are proposed for C++0x are already available in Visual Studio 2008 / 2010. I tried to use them and got pretty strange errors, but I can't test this in VS2010 currently. Can anyone tell me if they are available already?
cheers,
Tom
They aren't available yet.
:(
I seem to have gotten a bit carried away with the number of libraries I'm referencing in a ASP.Net MVC web application I'm working on. Is there any tools or features already built into Visual Studio 2008/2010 which indicates to me which references I don't need?
See this older SO question and answer.
Resharper will do this for you, with its clean code context menu.
Hey does anyone know if theres a way in Visual Studio to filter the intellisense dropdown list based on what you have already typed.
e.g. say under MultiScaleImage there is a UseSprings property. I type in msi.springs and in the intellisense menu it would filter out anything that does not contain springs.
Flash Develop has this functionality and I found it extremely useful.
Thanks
I belive that Visual Studio 2010 will have intellisense improvements which will give it the ability to better filter type and member code completion than prior versions. You read more about on Scott Guthrie's blog. I do not belive that the current versions will give you the level of filtering that you are looking for.
Check out Resharper. It adds much improved intellisense to VS and many many other features.
http://www.jetbrains.com/resharper/