visual-studio-2012

Visual Studio 2012 “Syntax Error”

北慕城南 提交于 2019-12-13 01:26:48
问题 I'm getting the following errors when I attempt to compile my project in Visual Studio 2012: 1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------ 1> main.c 1>e:\main.c(28): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(290) : see declaration of 'scanf' 1>e

MsBuild with Visual Studio 2012 Package Project

天涯浪子 提交于 2019-12-13 01:25:26
问题 I have created .NET solution with Visual Studio 2012 Package Project (From VS2012 SDK ). With Visual Studio I successfully compile and run this project (along with entire solution) in " Debug " configuration mode, and for " Any CPU " platform. But when I try to build solution in command line using MsBuild , I get errors: Command: msbuild MySolution.sln /p:Configuration=Debug /p:Platform="Any CPU" Errors: error : Can not find the installation for VS SDK. error MSB4018: The

Adding a callback to a variadic template class - impossible?

大城市里の小女人 提交于 2019-12-13 01:05:29
问题 I'm trying to make a templated class, which has an Add method, that attaches a function callback to the class, so when I can then call it from there with the specified arguments list.It compiles fine, except for the part where I invoke the callback.It just doesn't accept the arguments, I've tried everything I can think of, but it still gives me the same "cannot expand parameter pack" error.Im using Visual Studio 2012 with the Microsoft Visual C++ Compiler Nov 2012 CTP (v120_CTP_Nov2012) Here

Using Entity Data Model in VS 2012

[亡魂溺海] 提交于 2019-12-13 00:40:50
问题 I have used Entity Data Model before with VS 2010, but now I am having trouble with VS 2012. First of all, now in 2012 Entity Data Model there are two new files with .tt extension. Also the Designer.cs file is empty and has a message how to enable the code generation, but when I do enable the code generation it says that the objects already exist. I am also missing the CreateObjectSet(); using (MyEntities entitiesContext = new MyEntities()) { var entitySet = entitiesContext.CreateObjectSet<T>

Visual Studio invokes wrong toolchain

馋奶兔 提交于 2019-12-13 00:34:43
问题 EDIT: I used process Monitor to check, which executable gets invoked. it Looks like it really invokes the vs2008 executables... https://skydrive.live.com/redir?resid=5062EFE7E0C8ECCC!2722&authkey=!AMdRW6t5aMB3u10&v=3&ithint=photo%2c.PNG msbuild.exe executes [(12.0)tracker.exe], but gives it [(9.0)cl.exe] as command line Argument... Any idea, how to solve this? original on my work computer, The VS Default templates for c++ produce build Errors. (VS2010, VS2012, VS2013) It Kind of Looks like it

Code crashes because of an uninitialized variable even if I don't actually use it

江枫思渺然 提交于 2019-12-13 00:18:12
问题 Why does the following code crashes at run-time in Visual Studio 2012? void foo(void* ptr) { } int main() { void* ptr; foo(ptr); } Run-Time Check Failure #3 - The variable 'ptr' is being used without being initialized. I know that this error can be disabled by setting the "Basic Runtime Checks" option to "Default" but I don't see any reason why I should have this error when I don't actually dereference the specified pointer. Is it an intented behavior? 回答1: Even just passing a pointer to a

Where can I find “microsoft.office.interop.excel” in the Assembly / COM browser window?

徘徊边缘 提交于 2019-12-12 23:35:44
问题 I wanted to add the reference microsoft.office.interop.excel to my project. I went to Project > Properties > References > and clicked the Add... button. In the Reference Manager dialog, I have the following options: Assemblies Frameworks Project folder COM Search There is a search window. I typed microsoft.office.interop.excel , but it is just not found. I had to browse for it to locate it manually on my drive. Why? 回答1: Project menu > Add Reference . On the COM tab, locate Microsoft Excel 15

Typescript sourcemaps not loaded in chrome

孤者浪人 提交于 2019-12-12 22:17:30
问题 I've tried debugging typescript code in chrome which has enabled source maps in chrome. But no sourcemap files are loaded as can be seen in the network tab. I'm using VS2012 and the latest web essentials package. Any ideas what to do next? 回答1: You will not see sourcemap files in the network tab. If you go to the Sources tab you will see your typescript files in the list of Sources along the left. From there you can set your breakpoints. 回答2: If you want to debug inside VS 2012 you only need

MSBuild & SQL Server Database Project: bind the deploy and publish desination to the build configuration

…衆ロ難τιáo~ 提交于 2019-12-12 22:13:32
问题 Visual Studio 2012. SQL Server Database Project. Four build configurations were created in solution: Debug, DevDb, TestDb, LocalDb. Three publish profiles were created in project: DevDb.publish.xml, TestDb.publish.xml, LocalDb.publish.xml Pushing F5 button (!) I want to: deploy project with connection string from project properties if build configuration is Debug . publish project with connection string from the corresponding publish profiles if build configuration is DevDb , TestDb or

vs2012: SQLite: Access violation reading location 0x0000000C

做~自己de王妃 提交于 2019-12-12 21:24:23
问题 I am implementing SQLite Prepare-Statement in vs2012 using C. I am using this link as a tutorial to capture the processes that are running in my machine every time I run my code. Everything is working fine except that the prepare-statement does not allow me to put it outside the do-while loop. if I put it inside the do-while loop then I am doing nothing actually because with every db-insertion the prepare-statement is again executed which is not practical. however, when I put the prepare