visual-studio-2012

Intellisense doesn't work for JavaScript in Visual Studio 2012

别说谁变了你拦得住时间么 提交于 2019-12-17 05:25:09
问题 I have a clean, out-of-the-box installation of Visual Studio 2012 Web Developer Express and for some reason the support for JavaScript (both jQuery, jQuery UI and other libraries) has disappeared. I believe it worked before and then for "no reason" it stopped. I've browsed the web as supposed to and discovered four discrepancies. I don't have the key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\JavaScriptLanguageService\ImplicitReferences in my registry. In fact, I don't even have

Intellisense doesn't work for JavaScript in Visual Studio 2012

人走茶凉 提交于 2019-12-17 05:25:08
问题 I have a clean, out-of-the-box installation of Visual Studio 2012 Web Developer Express and for some reason the support for JavaScript (both jQuery, jQuery UI and other libraries) has disappeared. I believe it worked before and then for "no reason" it stopped. I've browsed the web as supposed to and discovered four discrepancies. I don't have the key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\JavaScriptLanguageService\ImplicitReferences in my registry. In fact, I don't even have

error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)

佐手、 提交于 2019-12-17 05:07:43
问题 Here's my code, how do I fix this error? #include "stdafx.h" #include <iostream> using namespace std; int main() { string title = "THE WORLD OF PIRATES"; cout << title << endl; cout << " Welcome to the world of pirates"; cin.get(); return 0; } The error is binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) 回答1: You forgot to #include <string> using std::string without including it's header works on some compilers that

How to reference Microsoft.Office.Interop.Excel dll?

☆樱花仙子☆ 提交于 2019-12-17 04:59:21
问题 I had developed a system that deals with excel sheets in 2006 using MS VS 2005. Now, I can not use the same reference with MS VS 2012. var app = new Microsoft.Office.Interop.Excel.Application(); Workbooks wbs = app.Workbooks; 回答1: Use NuGet (VS 2013+): The easiest way in any recent version of Visual Studio is to just use the NuGet package manager. (Even VS2013, with the NuGet Package Manager for Visual Studio 2013 extension.) Right-click on "References" and choose "Manage NuGet Packages..." ,

Best way to deploy Visual Studio application that can run without installing

假装没事ソ 提交于 2019-12-17 03:23:26
问题 I wrote a fairly simple application with C#/.NET and can't figure out a good way to publish it. It's a sort of a "tool" that users would only run once, or run every few months. Because of this, I'm hoping that there is a way I could deploy it where it wouldn't need installing to run (it could just be run by double clicking an EXE file straight after downloading). However, it still needs (somehow) to include the correct version of .NET, libraries, etc. so it will run correctly. I know this is

How to run a test many times with data read from .csv file (data driving)

给你一囗甜甜゛ 提交于 2019-12-17 02:32:15
问题 I am trying to automate some testing for one of our web applications and I need to know how I can make my Coded UI project read data from a CSV file. Lets say I want to test a log in screen. My CSV file will contain a few user names and passwords. I want my Coded UI test to read these log in details and loop through them to run the test on each set of data. 回答1: The web has many tutorials on data driving Coded UI tests. The basic steps for data driving with a CSV file are as follows. Create

C compilation errors on using stdprn

好久不见. 提交于 2019-12-14 04:23:54
问题 My OS is: Windows 8 IDE: VS 2012 Here is my C program. (from book) /* print_it.c—This program prints a listing with line numbers! */ #include <stdlib.h> #include <stdio.h> void do_heading(char *filename); int line = 0, page = 0; int main( int argv, char *argc[] ) { char buffer[256]; FILE *fp; if( argv < 2 ) { fprintf(stderr, "\nProper Usage is: " ); fprintf(stderr, "\n\nprint_it filename.ext\n" ); return(1); } if (( fp = fopen( argc[1], "r" )) == NULL ) { fprintf( stderr, "Error opening file,

Using VCProjectEngine and COM

不想你离开。 提交于 2019-12-14 04:08:08
问题 I am trying to use the COM system for VCProjectEngine. It is pretty simple to use in C# but I am hitting a wall in native C++. I am using the COM system and so far I was able to get a pointer to the VCProjectEngine interface using the CoCreateInstance function. But now what should I do with this interface? I would like to access the VCProject interface to be able to add files to the project. I tried to go with LoadProject or CreateProject but it takes a IDispatch parameter not a VCProject one

Insert variable into middle of url

こ雲淡風輕ζ 提交于 2019-12-14 03:58:08
问题 how could I insert a variable into the middle of a URL using vb.net? e.g. Dim ver As String = "variable" http://testurl.co.uk/folder/next_folder/" & ver & "/test.exe (not sure if this is correct above) Note: I know how to set a variable but not sure how to insert into the middle of a URL 回答1: Almost, I think you want this: Dim ver As String = "variable" Dim url As String = "http://testurl.co.uk/folder/next_folder/" & ver & "/test.exe" To browse the url in the form do something like this: Dim

I want to install Expression blend for Visual studio 2012 on my Win7 machine. how to get it

落花浮王杯 提交于 2019-12-14 03:58:07
问题 I have Expression blend 4 on my computer. I found some guys talking about Expression blend for Visual studio 2012. Can I got it on my Windows 7 machine. I don't thing for WP8,7 or store apps. I only want do Silverlight development. if Expression blend for visual studio 2012 available then how I can got it. I search a lot on google but thing make me confused. one more thing is how I can got it. I don't want to have VS pro or above on my PC. I have express VS 12. 回答1: Expression Blend for