How to change Plattform in Visual C# 2010 - visual-c#-express-2010

if I create a new project in visual c# 2010 express there is selected "Any CPU".
Because I've a external dll that's compiled as amd64, I've to change the plattform from "Any CPU" to "x64" ... but the field is gray
How can I do that?
Btw. Yes, ist's a x64 computer and win 7.
Thank you in advance,
craCH

Do you have admin access on the machine? If yes, try to vs2010 as admin then change the platform cpu. See if this works!

Related

WDK + Windows 8 + MSVC 2010

ALL,
I would like to build a dokan library. According to dokan instruction I need the WDK which can be downloaded from the Microsoft website.
Problem is - I have MSVC 2010 and it looks like WDK is for MSVC 2013 and I don't know what to do.
Could someone explain to me where can I get WDK for MSVC 2010?
Thank you.
The Windows 8.x SDK generally works with Visual Studio 2010--with the exception of a few places in the include\winrt headers where they used C++11 constructs not supported prior to VS 2012, specifically strongly-typed enumerations. The issue is there is no automatic integration for the VS 2010 toolset.
The recommended solution is to use .props files. See the Visual C++ Team Blog for details, and I have the fully authored .props files for both x86 and x64 hosted on my blog. These are also used in my open-source projects (DirectX Tool Kit, DirectXTex, DirectXMesh, UVAtlas, DXUT, Effects 11) which support VS 2010 + the Windows 8.1 SDK.
I believe the situation is basically the same with the Windows Driver Kit 8.x as it actually integrates into the existing Windows 8.x SDK. You will just need to add include\km and lib\km folders to the .props for the kernel mode projects.
That said, with VS 2013 Community edition being freely available full-featured version of Visual Studio under generous license terms, I'm not sure why you are sticking with VS 2010...

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.

Packaging DLL file with my application

When I moved my C++/CLI application to another Win 7 machine, it said that MSVCR100.dll is missing although that was a release version of the application. What is the file MSVCR100.dll ? Is it possible to combine it with my application,if how? Any other suggestions?
MSVCR100.dll is part of the VC++ 2010 runtime; it's a dedicated downloadable from Microsoft and required for most programs compiled with VC++ 2010.
Due to the newish side-by-side (SxS) deployment of DLLs, it's not so simple to extract the handful of files and deploy them manually.
http://www.microsoft.com/download/en/details.aspx?id=8328
Apparently, SxS is so 2008. Visual C++ 2010 just uses all different filenames for everything.
You need to ensure that the .NET Framework and the Microsoft Visual C++ 2010 Redistributable
are both installed on the new machine, either that, or package the necessary dlls with your deployment.

How to enable Profiling under Microsoft Visual C++ 6.0

I use Microsoft Visual C++ 6.0 For a particular project which I have, under the the "Project" tab, i see there is one menu - "Profile", but when I click on it, it says - Enable the profiling in project settings. So to "Enable Profiling", when I check under under Project Settings-->Link-->Category General-->Enable profiling seems to be disabled. I cannot check the check box there.
I have seen this profiling working under Microsoft Visual C++ 6.0 earlier where it gives CPU cycles consumed while running a program at end of its completiong.
How can i enable this profiling?
Does it need any extra file/dll to be copied in the installation folder of the tool or something?
thank you.
-AD
Have you got the Standard edition of Visual C++? Profiling is only supported in the Professional and Enterprise editions.

Visual C++ 2008: omp.h not found? /openMP is set

I've enabled openMP using the project settings, but when I do #include I get an error the file doesn't exist. I'm using Visual Studio stadnard edition, not Express... what else is missing? Every page I find simply says to turn it on in project settings and it will work.
omp.h and vcomp.lib is only available in VS Pro editions.
Did you add the directory containing the file omp.h to the list of directory search paths? Go to "tools - options - projects and solutions - VC++ Directories", then "show directories for" "include files". Add the path in here.
The solution for Visual Studio 2008 Express to develop OpenMP on Windows also works with the Standard Edition.
Basically you need to install the Windows SDK for OpenMP to get the libraries and headers. In my case I had to install the patch KB974479 too, but that may not be the case if one enables Microsoft Update for VS2008 (which I forgot to enable for all Microsoft products right after installing Windows).

Resources