Visual C++ Runtime Package to metro style - visual-c++

how can i add Visual C++ Runtime Package to metro style C# app in windows 8? Adding this shows error in project.

In the Add Reference dialog choose the Windows\Extensions view you will see Visual C++ Runtime Package

See this blog post for more details about C++ Runtime package:
http://blogs.msdn.com/b/vcblog/archive/2012/09/28/10354327.aspx

Related

CMake to create a Visual Studio Code project

Does any know if there are any efforts for cmake to generate a Visual Studio Code project (not to be confused with Visual Studio)? IE
cmake -G "Eclipse CDT4 - Unix Makefiles"
not for eclipse, but for Visual Studio Code? This would be awesome for linux projects.
As already mentioned, VS Code has the vscode-cmake-tools extension to integrate with CMake projects.
See here for documentation on what features it has to offer. You will see that building and debugging within the IDE are supported.
The design of VS Code is very much centered around being simple and extensible, whereas Visual Studio is more of a monolith and includes its own build system for C++. VS Code is not monolithic like that.

mfc110ud.dll required for Release version of MFC app

I have a very simple MFC application built in VS12. When I’m trying to install it on a Surface tablet (Win 8.1) I’m getting an error about mfc110ud.dll being missing. I looked up this dll and it says “MFCDLL Shared Library - Debug Version”. The problem is I’m building my app in Release mode. Why do I still depend on VS?
Use the linker /verbose Option to find the module or library that requires the DLL Version of the MFC.
See this particular post:
mfc110ud.dll is missing for vc++ project on visual Studio 2012
Potentially a duplicate (recompile with "Use of MFC" as "Use MFC in a static Library" when you compile)

Choose VC++ runtime version of an MFC project in Visual Studio

I created a MFC project with VS2013 and it works fine on my computer. But it won't run on a computer without VC++ Redistribution 2013 installed.
Can I specify a lower VC++ runtime version of an MFC project in Visual Studio?
I think even if it is lower vc++ runtime version, you may face similar problem.
If you can tolerate exe file is larger than before, just change the value of Use of MFC to Use MFC in a Static Library in project property page. By doing so, you don't need to distribute mfc modules related.
Otherwise, you have to distribute relative mfc modules such as mfc100.dll.
This link may help you.
You need to create installation package for your program. As Visual Studio user, you can create an installation with InstallShield Limited Edition. Installation package should contain correct C++ and MFC runtime version for your program.
See also:
InstallShield Limited Edition http://msdn.microsoft.com/en-us/library/dn531020.aspx\
Walkthrough: Deploying Your Program (C++) http://msdn.microsoft.com/en-us/library/bb384837.aspx
Specifically, to add VC++ Runtime: On the Redistributables tab in the editor window, select the Visual C++ 11.0 CRT check box. If you use MFC, check also MFC redistribution.

Profiling with CMake, C++, and Visual Studio 2012

I am using CMake 2.8.10.1 to generate project files for Visual Studio 2012 Ultimate (64-bit). The resulting solution contains a library, some tests, and some executables.
I would like to profile some of the applications. When I select "ANALYZE" -> "Start Performance Analysis," I encounter the error message "No launchable projects are available for profiling." How can I profile my solution generated by CMake?
It seems I've found a way to fix it. You need to add win32 configuration under your project. Then profiler will see your project as launchable.
For example, for the release configuration you should add the following
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
under
<ItemGroup Label="ProjectConfigurations">
Using the menu:
Build -> Configuration Manager
Goto row of the project to profile
In the platform column note that it will only have a x64 entry
Use dropdown <New...> and select Win32 for New platform:
-
That's a ridiculous bug in Visual Studio. QMake also suffers from this.
https://connect.microsoft.com/VisualStudio/feedback/details/823467/performance-wizard-doesnt-show-any-projects-to-profile-if-there-is-no-win32-configuration

WinSock Library for Visual C++ 2008 Express?

please how to add winsock library to Visual C++ 2008 Express? I tried including <windows.h> alone, than <windows.h> and <winsock.h>, but I get LINK error on WSAStartup().
I found somewhere that you need to add additional dependencies for your project, so I brought up linker for project properties, and in the select box for additional dependencies there was no ws_32.lib, So I tried to add it manually (write it) but still LINK Error....
Visual C++ Express don't install the full Windows SDK. You can download and install the full SDK from Microsoft.
After installing the SDK there is a tool (it will be on the start menu) to register the SDK directories with Visual Studio. After than you should be able to reference winsock.

Resources