Function/variable auto completion C++ in visual studio 2010 - c++

I created 2 games using the visual studio 2010 for WP7 using XNA and when trying to create one using c++ in visual studio I dont know how to turn on the auto completion thing. When for example I wanted to write a function/variable, I just used to write the first 2 letters then choose it from the list. This helps me save time but I dont know how to turn this feature on when writing in c++
Best Regards

Sounds like you're using C++/CLI, since you said both C++ and XNA (.NET).
Visual Studio 2010 doesn't have Intellisense for C++/CLI. It should be added back in the next version, or you can buy Visual Assist X from Whole Tomato Software, which not only supports C++/CLI but does a better job on C# and native C++ as well.
If you don't intend to use .NET, you can get Intellisense working by turning off the /clr compiler option.

Hit CTRL+SPACE after typing a few letters.

Related

Visual Studio 2017 - can't find Visual C++ Windows Forms

So, I'm in awkward situation - I wanted to create Windows Form App using Visual Studio, but I can't find any place to create Visual C++ Windows Form template. I tried even to reinstall Visual C++, add other libraries and search answer online - no results.
I can of course create new Winforms in C#:
But not in C++:
Also, all possible modules in Visual Studio Update was checked:
I tried even add template from Online list:
What should I do next? I use Visual Studio 2017 Community Edition.
Ok, I found a working way to creating Windows Forms in Visual Studio 2017.
Create new CLR Empty Project:
Add .cpp file for main function.
In project add new item from UI->Windows Forms:
(If we didn't add main loop before the error will occur)
Now we can add new elements to form from the Toolbox to the left (i spent measurable time looking for that).
To run application we have to declare this instead of main function:
Also we need to tell Visual Studio that we are making Windows Application instead of Console Application:
WinForms designer support for C++/CLI was dropped a long time ago in VS 2012. MS suggests using C# for your WinForms code, and only use C++/CLI if you need to interop with native code.
And if you do end up using C++/CLI for interop, keep that layer as small as possible. It's a second-class citizen in the .NET world and isn't even mentioned in Microsoft's recent post on their language strategy.

Word (Office) Automation Visual Studio 2013 C++

I have to make a program which can operate with Word documents (edit, view, create) and use C++ with Visual Studio 2013.
I have searched the net and found out VSTO is only available for Visual Basic and C#.
On the Microsoft site there is "How to create an automation project using MFC and a type library" here but seems it is written for very old versions of Visual Studio (like 5.0 and 6.0). When I reach the ninth step "Select the Automation tab." it seems there is no such tab in ClassWizzard in my version of Visual Studio.
Is there any way to perform automation with C++ in newer versions of Visual Studio like 2013?
I found a way here. Actually I am using the "import" method and it worked for me in console mode(COM method also worked, but it seems to me more complicated), I haven`t tested it for GUI yet. There is not C++ documentation, but can be used Visual Basic API with a bit thinking here.

New ATL COM project in Visual C++ 2010 Express: Missing Template

I have a feeling that this is a pretty silly and basic question, but I've been struggling with this for a tad too long today. I am attempting to make a shell extension for Windows following this guide (as well as several others that I have stumbled upon, but that one is the most notable). The issue is that they all start off saying "Run the AppWizard and make a new ATL COM program." However, these are the only project wizards I have in my Visual C++ 2010 Express.
Where can I find this magic project template? Even Microsoft seems to think I should already have it.
AFAIK frameworks MFC, ATL possibly others are not part of the Express edition, to have them you need one of the non-free versions. but there are some interesting links

Any other extensions for Visual Studio C++ 2010 express like Visual Assist X?

Any Alternative extensions for Visual Studio C++ 2010 express like Visual Assist X ?
I am personally not aware of any. I don't think VS2010 Express supports VAX to begin with.
Since you only mention C++ - if you want a decent FREE IDE with good "intellisense", auto-complete, refactoring, snippets and code generation (the hallmarks of VAX) - I recommend Qt Creator. It is originally intended for using with the Qt framework, but can be used standalone with any compiler you want. It is smaller and faster than VS, plus it is portable and has the advantage of being a fully fledged product, where VS Express is a cut down version.
Last time I checked, Eclipse was also doing well in this regard, but it is a little clumsy and heavy, probably because it is written in Java.

What Visual Studio 2008 productivity features are missing from C++ Express edition?

I'm using Visual Studio C++ 2008 Express to learn a native API for a new project. What I'm wondering is: what productivity features present in the full version that you take for granted are missing from Visual Studio Express? I'm not referring to large "paid" features like MFC support - I'm thinking of small features (sometimes provided by Add Ins) like "Copy File to Output Dir"
Also, it doesn't have to be specific to C++ edition - that's just the exact release I happen to be using.
Note: I'm an experienced Java programmer and I most frequently use IntelliJ IDEA (disclaimer: that's just for reference - I'm not looking to compare VS vs. IDEA).
EDIT: Revised to include Add Ins that enhance the experience.
The ability to use addins are sorely missed, for example Visual Assist, which is the productivity booster.
I was all like "oh, let me google that for you", but Microsoft made life difficult indeed. Seems that Wikipedia is our best source at this moment:
http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_C.2B.2B_Express
If you plan to develop a C/C++ WIN32 GUI application then the major component that is missing is the resource editor (i.e. the GUI builder tool).
The express version will still compile resource files, but you will have to create the resource files by hand or use a third party resource editor.