visual-studio-2010

Unable to debug MVC source code in Visual Studio 2010

ぐ巨炮叔叔 提交于 2020-01-14 18:51:21
问题 I'm trying to debug MVC source code in Visual Studio 2010 using the Microsoft Symbols Server. I've configured Debugging options as seen below: and my project is targeting .NET Framework 4.0. (as said in Debug .NET Framework's source code only shows disassembly in Visual Studio 2010) When I try to load the symbols of System.Web.MVC.dll, some window pops up saying that they're being loaded. But in the end, the Modules window says they couldn't be found, call stack lines are still grayed out and

Install Visual Studio 2010 Beta 2 beside VS2008

拜拜、爱过 提交于 2020-01-14 16:36:14
问题 I am too paranoid to install VS2010 Beta 2 on my production machine beside VS2008 without hearing from people who have already took the plunge. I know MS says it's OK, but that does not necessarily mean it will work. Has anyone successfully installed VS2010 Beta 2 (preferably Ultimate edition) on their production machine with no negative consequences? 回答1: I have installed VS2010 beta 2 in my machine, together with VS2008, and it seems to work fine. There were two compelling reasons for me to

Memory Map File Offset Low

笑着哭i 提交于 2020-01-14 14:34:33
问题 I'm writing windows program with C and Visual Studio. I have to map a file than access it from it's 750th byte. I tried pFile = (char *) MapViewOfFile(hMMap,FILE_MAP_ALL_ACCESS,0,(DWORD) 750,0) open file with this but it returns error 1132. ERROR_MAPPED_ALIGNMENT 1132 (0x46C) The base address or the file offset specified does not have the proper alignment. How can resolve this? 回答1: The documentation of MapViewOfFile is pretty clear that the offset has to be a multiple of the allocation

How to get even or odd numbers

人盡茶涼 提交于 2020-01-14 13:25:07
问题 I don't know why this program doesn't works. I get a random number and the computer select what type it is even or odd ? Dim a As New Random() Dim b As Integer Dim ca As Integer b = a.Next(0, 10) Debug.Print(b) ca = b / 2 If ca = 0 Then Debug.Print("Even") Else Debug.Print("Odd") End If 回答1: You are messing up your operators. You use division / , but you want to use the modulo operator Mod . Please note: in C# it is % . In VB.Net it is Mod Reference: http://msdn.microsoft.com/en-us/library

How to get even or odd numbers

☆樱花仙子☆ 提交于 2020-01-14 13:24:50
问题 I don't know why this program doesn't works. I get a random number and the computer select what type it is even or odd ? Dim a As New Random() Dim b As Integer Dim ca As Integer b = a.Next(0, 10) Debug.Print(b) ca = b / 2 If ca = 0 Then Debug.Print("Even") Else Debug.Print("Odd") End If 回答1: You are messing up your operators. You use division / , but you want to use the modulo operator Mod . Please note: in C# it is % . In VB.Net it is Mod Reference: http://msdn.microsoft.com/en-us/library

VS2010 Assembly Load Error

僤鯓⒐⒋嵵緔 提交于 2020-01-14 12:48:08
问题 I am getting the following error when I try to build an ASP.NET 4 project in Visual Studio 2010: "Could not load file or assembly 'file:///C:\Dev\project\trunk\bin\Elmah.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)". I have verified that the dll does, in fact, exist, and is getting copied to the bin folder correctly. I have also tried removing and then re-adding the reference to the project. The build only fails when I switch the Solution

How does CMake find the cxx compiler?

只愿长相守 提交于 2020-01-14 12:33:42
问题 I am calling cmake -G "NMake Makefiles" from a Microsoft Visual C++ 2010 x64 command prompt. The C compiler identification is correct, but the CXX compiler identification not. I am really confused, because it has worked before, but I could not determine what changed (Windows update?) and raised this issue. So I am searching for the root for this problem. How does CMake find the cxx compiler (on Windows: cl.exe ) and maybe how do I change this behavior? (Setting CMAKE_CXX_COMPILER seems not to

How does CMake find the cxx compiler?

血红的双手。 提交于 2020-01-14 12:27:26
问题 I am calling cmake -G "NMake Makefiles" from a Microsoft Visual C++ 2010 x64 command prompt. The C compiler identification is correct, but the CXX compiler identification not. I am really confused, because it has worked before, but I could not determine what changed (Windows update?) and raised this issue. So I am searching for the root for this problem. How does CMake find the cxx compiler (on Windows: cl.exe ) and maybe how do I change this behavior? (Setting CMAKE_CXX_COMPILER seems not to

Build problem in Visual Studio 2010

老子叫甜甜 提交于 2020-01-14 10:38:07
问题 I use CS106 library in the university.After changing Visual Studio 2008 with Visual Studio 2010, I have problems with building new projects or the old ones.I think that new Visual studio is not compatible with CS106 library.Can anyone tell how to fix this problem? This is the output: 1>------ Build started: Project: Blank, Configuration: Debug Win32 ------ 1>Build started 3/15/2011 2:03:21 PM. 1>InitializeBuildStatus: 1> Touching "Debug\Blank.unsuccessfulbuild". 1>ClCompile: 1> All outputs

one project with multiple build configurations in VS2010?

若如初见. 提交于 2020-01-14 10:34:08
问题 I have a c# windows application project. I want to build two .exe files, one is run as 64bit on 64 bit OS (by platform targeting 'Any CPU'), the other is run as 32 bit on 64 bit OS (by platform targeting x86). Currently, I should change my build configuration whenever i need the other configuration, and rename the compiled file to distinguish between 32 and 64. Is there an easier way to manage multiple configurations? 回答1: Create a 32 bit build and 64 bit build. This will allow you to have