visual-studio-2012

Which XP version does Visual Studio 2012 supports [As Target OS]

馋奶兔 提交于 2019-12-20 04:54:22
问题 Which version of windows XP does Visual Studio 2012 supports. [Edit: Which version does VS12 supports compiling to] I found this article: http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx That states that it supports XP SP3. But I didn't find any information for VS12 update 4. Also, If the code I compile using VS12 doesn't crush on XP SP2 and seems to work. Is it safe to use it? why not? Thanks 回答1: It's correct, Visual Studio 2012 can

Why can i declare an array with a predestined size on gcc but not on visual studio c++?

元气小坏坏 提交于 2019-12-20 04:47:58
问题 i was wondering why i can do this code in linux but not on visual studio? (File -> main.c) int size; printf("Size:"); scanf("%d",&size); int vec[size]; Does it have anything to do with c89 or c99 standard? Cause i tried to change the flags on gcc and still worked out. 回答1: Variable length arrays( VLA ) is a C99 addition to the standard and until recently Visual Studio did not support C99 and as far as I know does not support VLA. If you build this in gcc outside of C99 mode let's say in c90

how to fix “not recognized as an internal or external command” issue

一笑奈何 提交于 2019-12-20 04:35:11
问题 when i write a simple code like #include <iostream> using namespace std; int main() { cout << "Hello World"; return 0; } and start it without debugging it gives me this message '"C:\Users\Acer\Documents\Visual Studio 2012\Projects\ConsoleApplication6\Debug\ ConsoleApplication6.exe"' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . < can any one help? note:I locked for it and the problem is not the "path" 回答1: CTRL+F7 only

Own double-tab templates in Visual Studio 2012

折月煮酒 提交于 2019-12-20 04:25:14
问题 So there's a trick in Visual Studio, that when you type, for example 'for', and double-press the Tab key, Visual Studio will create for (int i = 0; i < length; i++) { } Is there any way to create my own templates? As I don't use LINQ I'd like to, when 'db.A_' is typed, to make db.A_TableName.Where(k => k.Field == Value).Select(k => new { Name = k.Field }); 回答1: You are probably referring to code snippets. The docs explain how to create new snippets and how to add them. It might be easiest to

Security error when calling external web service in visual studio

亡梦爱人 提交于 2019-12-20 04:14:24
问题 I am trying to call an external webservice in visual studio but I am getting the error. System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. System.Security.SecurityException: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System

Could not load file or assembly 'WebDriver, Version=2.35.0.0 …'

江枫思渺然 提交于 2019-12-20 04:07:21
问题 I followed steps of "Selenium components for Coded UI Cross Browser Testing". But I had download the lastest version of: WebDriver.ChromeDriver.win32 2.4.0 http://www.nuget.org/packages/WebDriver.ChromeDriver.win32/ selenium-dotnet-strongnamed-2.37.0 https://code.google.com/p/selenium/downloads/list then I installed those in my machine of 64bits but the Visual Studio 2013 present the next problem when I try to run automated test: System.IO.FileNotFoundException: Could not load file or

Visual studio 2012 slow compile time

假装没事ソ 提交于 2019-12-20 04:04:31
问题 I have an extremely small project in visual studio 2012 (only 50 lines of code). I only have one source file ( main.cpp ). But yet it takes about 20 seconds or more to compile! How am I supposed to speed it up? When I use C# the compile times are fast but when it comes to C++ it's super slow. As for my minimal computer specs, I have an i5 processor, 4gb of ram and it is a quad core. It shouldn't be taking this long to compile something that is only 50 lines long. What should I do? My Code:

Integrating NUnitTesting GUI to Visual studio 2012 and debugging Test Cases

為{幸葍}努か 提交于 2019-12-20 03:50:58
问题 I am using NUnit 2.5 as my unit testing framework for visual studio 2012 professional. I configured NUnit.exe to open NUnit GUI for testing my dlls. I am testing a dll called "BookStore.dll" which i generated by compiling my current class library project "BookStore" To configure nunit as my testing framework i set the following values in the BookStore library project properties window: Start External program: C:\Nunit\Nunit.exe Command line arguments : BookStore.dll working directory as : C:

GsmCommMain - No Phone Connected Error in C# (Sending SMS using broadband stick)

戏子无情 提交于 2019-12-20 03:43:35
问题 I want to use a broadband stick and create a C# application in VB.net 2012 that can send SMS message to single / multiple mobile phones. I'm currently connected to a COM Port, but I could not send any message. Here is my whole code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using GsmComm.GsmCommunication; using GsmComm

LLVM compilation errors on VS 2012

寵の児 提交于 2019-12-20 03:13:54
问题 I have built the LLVM using CMake using VS 2012 in keeping with documentation. I am trying to build a toy compiler with flex, bison and LLVM. The final stage of my compiler my main class looks like this: #include <iostream> #include "codegen.h" #include "node.h" #include "llvm/Target/Targetmachine.h" using namespace std; extern int yyparse(); extern NBlock* programBlock; void createCoreFunctions(CodeGenContext& context); int main(int argc, char **argv) { yyparse(); std::cout << programBlock <