How to automate Outlook with C++ in VS 2012 Express? - c++

I'm developing a C++ app in Visual Studio 2012 Express, and one of the tasks it will need to perform is creating a new Outlook message and populating it with some template text.
This MSDN page and this one both give instructions for using MFC to do it, but VS 2012 C++ Express doesn't support MFC.
I have to use C++ for this app because it calls a C-based API and making these API calls directly from C# without a C++ wrapper has proven impractical.
I know I can do this by exporting the C++ code as a DLL and then importing that into a C# .NET app that uses Interop to control Outlook, but I was thinking it would be simpler if I just did it all in C++. Is that possible?

Well, so far I've found this:
http://support.microsoft.com/kb/200174

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.

C++ UI alternatives in visual studio 2013

C# is my primary language, I want to learn C++ but with windows form or any GUI, just not console. I read that they took windows form out of visual studio 2013 for C++. Are there any alternatives or workarounds? How are people making UI based C++ programs in vs 2013 now? I found this but it feels like a jerry rigged approach http://www.bogotobogo.com/cplusplus/application_visual_studio_2013.php. I would like to use VS 2013 and UI forms somehow.
There answer is there is no native solution. You'll need to use an open source framework like Qt, wxWidgets, etc. I would recommend Qt, as it does have an LGPL license option and their form builder integrates within Visual Studio.
You can use Code to gui which is easy to setup and use with Visual Studio and c++. Although it doesn't gives too many gui features like qt as of now but seems like a great option for learning c++ with basic form builder gui.
PS: It internally uses wxwidgets so you can also re-program it's internally generated files to make complex guis.

Visual c++ no intellisense, how do i see what is inside a class/namespace/library?

Im new to c++ and i dont have anyidea what functions/variables are in the System namespace and so on. I know that there is no intellisense in CLR projects at least in 2010. What im asking is were is the documentation? or a good place to get it? is there one build into visual c++ or do i have to constantly google it?
Here is a link to the .NET Framework class library: http://msdn.microsoft.com/en-us/library/vstudio/gg145045.aspx
However, you state you are looking to develop in C++. C++ does not target the .NET Framework unless you are using C++/CLI to develop managed applications.

Rich gui in MFC/C++ application

we have once application build using MFC/C++. We want make the bit rich UI like VS 2010 or outlook etc... at last we want give new look to our app like Microsoft does on every release of their products.
Please suggest me to topic that i need to look into or suggest me the option for the same.
If you're using Visual Studio 2010 or higher, the MFC application wizard itself will generate UI like VS 2010 with tabs and docking windows. In fact you can create an application that looks like VS 2010 without writing a single line of code. There is also support for the ribbon control which has replaced the menus in the new office applications.
As I am assuming you are going to use C++/native code, MFC is still the way to go or you can choose the WTL also. If you are ready yo go to a totally different direction then QT is one of the most advanced and modern cross platform library. MFC feels old compared to QT. AFAIK you can not use ribbon control in QT without microsoft license.
Another option is to go to managed way, you can use WPF with C#.
As already mentioned, you can use the new classes in the MFC feature pack, which came with Visual Studio 2008 Service Pack 1.
MSDN provided a tutorial how to migrate an old MFC application to the new MFC feature pack classes here: http://msdn.microsoft.com/en-us/library/bb983935%28v=vs.90%29.aspx

How to create interface for C++ application with XAML?

How to create interface for C++ application with XAML? (I SEARCH FOR SOME APP LIKE EXPRESSION BLEND (OR even beter a plug in for it))
Visual Studio Pro 2008 does support C++ .Net and XAML interface designer so it should do what you are looking for.
PS : Visual Studio 2010 is going to be released soon. I never tried XAML with this one but it should have a better support.