visual-studio-2012

Visual Studio 2012 failed to create project

守給你的承諾、 提交于 2019-12-18 07:45:15
问题 I just upgraded to windows 8 from windows 7. Visual studio 2010 broke down completely. Oh well. I removed vs2012 and installed visual studio 2012, where the pain starts. I have been reinstalling vs 2012 a couple of times. However, the symptom remains the same. When I try to create a new project (FILE -> New -> Project or ctrl + N) . It pops up with an error message dialogbox saying "Failed to create a ImageSource from the text '..\Images\Medium.png'. " I am like @#*%&^@*#@# (. So can anyone

std::function not compiling in VS2012

人走茶凉 提交于 2019-12-18 07:39:36
问题 I am trying to compile the following code taken from here but I am getting a compile error. Does anyone have any ideas what might be wrong? The code #include <iostream> #include <functional> struct Foo { Foo(int num) : num_(num) {} void print_add(int i) const { std::cout << num_+i << '\n'; } int num_; }; int main() { // store a call to a member function std::function<void(const Foo&, int)> f_add_display = &Foo::print_add; Foo foo(314159); f_add_display(foo, 1); } The compile error : Error 1

How to disable /* autocomplete in Visual Studio 2012 (or Resharper)

三世轮回 提交于 2019-12-18 07:32:24
问题 I have Visual Studio 2012 with Resharper installed. When editing css files, when I type /* , I get autocompletion like so: /**/ I would like to disable that , but I cannot find it in the options menu. Where can I disable that? Thank you! 回答1: One way to avoid this annoyance is to add the closing comment symbols first. 回答2: Go to tools -> options -> text editor -> all languages(or chose one), and untick Automatic brace completion . You can also search for it in options menu. 来源: https:/

Committing a project commits to the solution, why?

痞子三分冷 提交于 2019-12-18 07:22:48
问题 Whenever I commit a project in a solution, if I go to a Git Bash and do some git log , none of the commits are present in the project folder, however they're all present on the solution folder. How is one supposed to do for having commits per project rather than for the solution ? Should I just do everything by myself on the Git Bash rather than using the IDE ? 回答1: Should I just do everything by myself on the Git Bash rather than using the IDE ? YES you should. And there are (IMO) good

Compiling a GTK3 program in Visual Studio 2012

拜拜、爱过 提交于 2019-12-18 07:18:32
问题 With the release of Gtk 3 for windows I thought of upgrading my Gtk 2 C application to take advantage of the new GtkGrid widget. The program compiles fine under linux or using MinGW (with codeblocks) under windows, however when I try the same set of files under Visual Studio 2012, giving me 50 or so compilation errors saying gutils.h, gtrashstack.h and gstring.h have a bunch of syntax errors (assuming I only use a basic program, with just a gtk_init and gtk_main). Visual Studio handled gtk2

Time Bookings Visual Display

隐身守侯 提交于 2019-12-18 06:58:04
问题 I have a system which manages Vehicles and Staff, when you click on their name based on a date you should be able to see the times that they are available on that day. It will only show 1 day based on the date chosen on the previous form! So I need 1 column but times could be 12:30-14:15 etc Something visual like this: Visual Time Visual Time Picture: I have looked in to creating a custom control or user control but my knowledge on the subject is low and I've spent a few hours running around

SSIS C# 2012 Script Task referring WinSCPnet.dll fails when run from SQL Server Agent with “Exception has been thrown by the target of an invocation”

醉酒当歌 提交于 2019-12-18 06:50:53
问题 I have an SSIS package (created in VS 2013) that contains a C# 2012 Script Task. The job of the script task is to download a file from an SFTP server using WinSCP .NET assembly and place it on my server (Windows Server 2012 R2 with SQL Server 2014) My package runs fine when I run it on my Dev machine, but when I deploy to the server my package fails at this task with the error message Exception has been thrown by the target of an invocation I've done some digging and it looks like it has

SSDT on Visual Studio 2012 broken then fixed, broken again also broken on VS2013

。_饼干妹妹 提交于 2019-12-18 06:48:36
问题 After installing Visual Studio 2012 Ultimate on Windows 8, SSDT via SQL Server Object Explorer did not work. The solution was to install the latest version of VS2012 from the MSDN website. All was well. I could see databases, no problem. It did not matter whether I used the EF defaultConnectionFactory or my own connectionString, either way, all of my code first databases showed up in the VS2012 SQL Server Object Explorer. Not long ago, I installed Visual Studio 2013 Ultimate. In VS2013

How to display PDF in web browser control instead of opening Acrobat Reader

半世苍凉 提交于 2019-12-18 06:31:10
问题 i am using Acrobat Reader 11.0.3 and window 7, Visual studio 2012 and already enabled Acrobat Reader in Manage Addon and follow WPF webbrowser opens PDF file in Adobe reader window still have error after trying two methods Navigation to the webpage was canceled even if using administrator account to open WPF program private void CheckAndFixWebBrowserRenderingEngine() { RegistryKey baseRegistryKey = Registry.LocalMachine; string renderingEngineSubKeyString = @"SOFTWARE"; // 64bit operationg

Running jQuery crashing on IE10/Win7

眉间皱痕 提交于 2019-12-18 05:55:57
问题 I am for the moment just including jQuery (1.9.1, but old 1.8.3 behaved the same way) in my ASP.net webpage (Site.Master file actually). Everything worked fine running under IE9/Win7-64 but ever since I upgraded to IE10 (still Win7-64), now when I run the webpage locally, selecting Internet Explorer and run from within Visual Studio, I hit an exception. The exception is on line 4224 of the jquery-1.9.1.js file. // Opera 10-12/IE8 - ^= $= *= and empty values // Should not select anything div