w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Read write privileges between Microsoft SQL Server Management Studio and Visual Studio
I ended up solving it on my own. The problem had to do with privileges. The database was on my local machine with limited rights. SSMS was using a different account to access the file than VS.I had to go to the MDF file and LDF and add rights to some users.

Categories : SQL

Microsoft.visual studio package did not loaded
Close Visual Studio. Backup and Delete following path: C:Users{your_username}AppDataRoamingMicrosoftVisualStudio11.0 Restart Visual Studio.

Categories : C#

Visual Studio crashes on Microsoft.Build.ni.dll
This won't help anyone else, but I figured I would put it out there, maybe someone else will come up with a better solution. Sadly, I wasn't able to make anything work. I ended up having to go back to a previous system image. Thank goodness for backups! We'll see what happens next time I have to add a VS plug-in.

Categories : C#

Microsoft Visual Studio 2010 IDE is not opening
Run your visual studio from command prompt with /safemode parameter. Then disable every extension you've installed before, then re-run visual studio. For example: "D:Program Files (x86)Microsoft Visual Studio 11.0Common7IDEdevenv.exe" /safemode It would be nice if you run you cmd as an admin. Good luck

Categories : Asp Net

aspx to mvc microsoft visual studio 2012
MVC is a completely different approach to building web applications. The biggest difference is the elimination of web controls in favor of more lighter weight HTML helpers. Since you're asking this question, I am assuming you may need a better understanding of MVC in order to understand how to take the business requirements of an existing Web Forms application, and apply them to an MVC application. I know your time is limited, but I would suggest going through this tutorial. Trying to rush your way into a solution without at least this level of understanding will only do yourself, and your customer, a disservice.

Categories : Asp Net Mvc

Validate username and password in Microsoft VIsual Studio
Can you run this in the debugger and verify that the query is returning a row? Some suggestions: Consider parameterizing your query like this: Dim conn As New SqlConnection(_connectionString) conn.Open() Dim s As String = "SELECT user_password FROM MyUsers WHERE user_logon_id = @user_login_id" Dim cmd As New SqlCommand(s) cmd.Parameters.Add("@user_login_id", Me.user_logon_id.Text) Dim reader As SqlDataReader = cmd.ExecuteReader() Hash the password in some way Consider selecting from the database table where the username and password match. If the result is one record the login succeeded. Dim s As String = "SELECT userid FROM MyUsers WHERE user_logon_id = @user_login_id and user_password=@user_password" Full code Protected Sub butSubmit_Click(ByVal sender As Object, ByV

Categories : Vb.Net

C++ #include not working in Microsoft Visual Studio 2010
More than likely, you forgot to add 'using namespace std' as pretty much nothing in iostream is really useful without it. If you are getting 'cant find ...', then you have a setup problem and should reinstall Visual Studio because the headers were not properly placed. Hope this helps, feel free to post your code and I can tell you for sure what the problem is, but that is the most likely of them.

Categories : C++

Microsoft Sync Framework Toolkit with Visual Studio 2012
a lot of changes, mainly around referencing the correct assembly due to the changes in .net 4.5 especially around XML and correcting the namespaces. but not much in terms of changing its behaviour

Categories : Sql Server

How do you add a folder to a project in Microsoft Visual Studio Express 2012 for Web?
Browse to the folder your javascript files are in, and drag that folder into your blank solution's Solution Explorer, or right click in the Solution Explorer on the right and hit "Add > Existing Website", then browse to the folder your javascript files are in.

Categories : Javascript

How can I use NASM to produce relocations in the style of Microsoft Visual Studio?
Note that __imp__GetModuleHandleA@4 is an import pointer, not the actual code location of the GetModuleHandleA function. Win32 PEs generally have an .idata section with all the import pointers collected which is somewhat similar to ELF's GOT table: SECTION .idata __imp__GetModuleHandleA@4 dd ? ; to be filled by system loader This section and all supporting metadata is usually generated by the linker using the import library but it's possible to generate it manually too. In your case, the following should be enough: EXTERN __imp__GetModuleHandleA@4 call [__imp__GetModuleHandleA@4] With some assemblers/macro packages it's possible to use something similar to: call GetModuleHandleA or invoke GetModuleHandleA, eax which would result in a call to the linker-generated stub: Get

Categories : Assembly

Is Microsoft dropping support for SDF database files in Visual Studio?
Ok so I can't get it to work in VS 2013 but it will allow me to open edit and Edit table schema in VS 2012 Express for Web. I can breathe now. Thanks to you all for helping me through this difficult time. :-)

Categories : Database

How can i add reference of Microsoft.ReportViewer.WebForms 8.0.0.0 in visual studio 2012?
You may add the reference manually in the Project File (.csproj). Add this line in the section. <Reference Include="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" />

Categories : Asp Net

Visual Studio not using Visual Studio Command Prompt for post-build events
The easiest way is probably just call out to the thing the normal VSXXXX command prompt uses: Ex: CALL ""%ProgramFiles(x86)%Microsoft Visual Studio 10.0VCvcvarsall.bat"" x86 (edit: updated as per Hans's comment)

Categories : C#

How to move windows forms from Visual Studio 2010 to Visual Studio 2012
You should be able to just copy the Form files (TheForm.cs and TheForm.designer.cs) to the new project, then add them to the project. Note that you will also need to move any files that form depends upon (if any) before it will work properly.

Categories : Forms

Import Z3 into Visual Studio 2010
I almost always use nmake for building Z3 because I use old-fashioned editors for my work. You can import Z3 into VS as well. It makes fixing build errors much easier and integration with debugging smoother, though you can still use the VS debugger and performance tools from VS with the executable from nmake. Following the command-line help, the option for building a vs project is called -v or --vsproj. C:z3>scriptsmk_make.py --help mk_make.py: Z3 Makefile generator This script generates the Makefile for the Z3 theorem prover. It must be executed from the Z3 root directory. Options: -h, --help display this message. -s, --silent do not print verbose messages. --parallel=num use cl option /MP with 'num' parallel processes -b

Categories : Visual Studio

Connect with Visual Studio 2012 and C sharp to microsoft cloud TFS server
Take a look at service credentials, or try enabling alternate credentials on your account which will then allow you to authenticate using http basic auth. You probably want service credentials for what it sounds like you are doing though.

Categories : Visual Studio 2012

Missing Reference when using the Excel Library with Microsoft visual studio 2012
I have sort out the problem :) A default project in Visual Studio 2010 should have references to Microsoft.CSharp and System.Core. In 2012, If they are not referenced in your project you need to add them, and the errors will go away. Thanks

Categories : Excel

Replace visual studio 2012 Diff tool with winmerge when using Microsoft Git Provider
Backed up by that DZone-article, the trick is to configure the diff-tool in git.config: Open the git bash in your repository Create a config section for WinMerge as a diff-tool: $ git config --local difftool.winmerge.cmd '"C:Program Files (x86)WinMergeWinMergeU.exe" "$LOCAL" "$REMOTE"' Configure git to switch to WinMerge as the diff-tool: $ git config --local diff.tool winmerge If you want to have this setting as a global setting, replace the --local switch with --global.

Categories : GIT

What is an assertion error in Microsoft Visual Studio? and unhandled exception access violation?
To answer the question: What are assertion errors? If a programmer believe that a condition is so vital that it must always be true, and should not continue execution if the condition is found to be false, he can make an assertion. Which you posted a fine example of, if the condition (pred_dir<=2) returns true, then execution is continued as normal, but if it returns false, then the execution is halted and some indication is shown as to which assertion returned false. Edit: Assertions can be used to debug your code or as stated simply used to halt execution if something VERY wrong happened.

Categories : C

Using static library from Visual Studio 2008 with Visual Studio 2010
If getting a VC2010 version of the library is out of the question, then you will need to build a DLL using VS2008 that offers the functionality in the VS2008 static library. You will probably not be able to use C++ linkage to this DLL and certainly will not be able to pass std::string directly between the DLL and your main application. This is because the memory layout/interface is different and you will end up with ODR violations and crashes etc (that's if you can even compile/link it that way without tons of errors). So, you'll need to craft a C style API that the DLL exposes for use by your main VS2010 application. Strings will need to be passed as c-style const char* or const wchar_t* strings, or some other struct/opaque pointer. If you can build the DLL in such a way that it is

Categories : C++

will visual studio 2012 projects open in visual studio 2010
Depends on what features you have in your 2012 projects. Some of the 2012 features will not open in 2010 and will therefore need upgrading. To quote Microsoft: "If you use both Visual Studio 2012 and Visual Studio 2010 SP1, you can create and modify projects and files in either version as long as you don't add features that require Visual Studio 2012." More details on the features that are not supported in 2010 can be found here.

Categories : Dotnet

nvcc.exe linking error Microsoft Visual Studio configuration file 'vcvars64.bat' could not found
From NVIDIA CUDA Compiler Driver document 1.2. Supported Host Compilers nvcc uses the following compilers for host code compilation: On Linux platforms The GNU compiler, gcc, and arm-linux-gnueabihf-g++ for cross compilation to the ARMv7 architecture On Windows platforms The Microsoft Visual Studio compiler, cl On both platforms, the compiler found on the current execution search path will be used, unless nvcc option -compiler-bindir is specified (see File and Path Specifications).

Categories : Visual Studio 2012

Import Excel data to DataGridView in Visual Studio 2010
you can add rows like below for(int i=0;i<rcount;i++) { dataGridView1.Rows.Add(orksheet.Cells[i + 1, 1].Value, worksheet.Cells[i + 1, 2].Value); } What you are doing is set the values of existing rows of gridview. if gridview not having rows given by index then you will get exception but without all these you can use Ado.net and get read the data from excel and bind it to gridview. check below sample code from this KB article // Create connection string variable. Modify the "Data Source" // parameter as appropriate for your environment. String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Server.MapPath("../ExcelData.xls") + ";" + "Extended Properties=Excel 8.0;"; // Create connection object by using the preceding connection string. OleDbC

Categories : C#

64 bit exe crashing outside visual studio but working inside visual studio
You can try comparing the environments between visual studio and the default environment. Dependency walker should identify any missing DLLs.

Categories : C++

Visual studio issues after installing visual studio 2013
In order to build windows 8 apps in visual studio 2013, you must be using windows 8.1. (defined here). This is possibly the issue. You also wouldn't see the windows sdk include path because the wdk would be uninstalled. I would recommend one of two things get visual studio 2012 again, and download the windows 8 sdk get windows 8.1, then install visual studio 2013, and use the windows 8.1 sdk I know, its quite silly.

Categories : Visual Studio

Microsoft.VisualStudio.Shell.Interop.ToolWindowPane Class gives error when compiling in Visual Studio 2013 preview
I had to do some changes so here is the code that finally worked: using System.Windows.Forms; using System.Runtime.InteropServices; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Data.Services; using System.Collections.Generic; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio; namespace My.VisualStudio.Package { public class MyClassWindowPane : ToolWindowPane, IVsWindowFrameNotify2 { public MyClassPanel MyClassPanelControl; public List<IVsDataExplorerConnection> Connections { get; set; } public string SelectedConnectionName { get; set; } public MyClassWindowPane() : base(null) { MyClassPanelControl = new MyClassPanel(); } public void InitializeMyClassPanel()

Categories : Misc

Can I import text from a pdf file to display in HTML with the same styles using visual studio 2010?
Here I found converter from PDF to HTML online, so you won't need to download anything. I didn't used it yet, but maybe It's working http://www.pdfonline.com/convert-pdf-to-html/ But you can also use <iframe href="pdf_file.pdf" width="500" height="200"></iframe> And PDF file will be shown in frame in your browser using Adobe PDF reader.

Categories : HTML

SQL Server Management Studio equivalent for CTR+L keyboard Shortcut from Visual Studio
Just hit ctrl+c with no text selected - this copies the current line; likewise ctrl+x with no text selected cuts the current line.

Categories : Visual Studio

Open a Visual Studio Solution with a Visual Studio Add-in
You should use the ExecuteCommand to execute the standard File.OpenProject command. Similar to using the File>Open>Solution. Something like this will do in C#: string path = @"C:UsersxyzDocumentsVisual Studio 2010ProjectsMyAddin1MyAddin1.sln"; path = """ + path + """; _applicationObject.ExecuteCommand("File.OpenProject", path); Which translates to VB.NET: Dim path As String path = """C:UsersxyzDocumentsVisual Studio 2010ProjectsMyAddin1MyAddin1.sln""" DTE.ExecuteCommand("File.OpenProject", path) If you would like to know whether the command has finished, you should create an eventhandler for the command.

Categories : Vb.Net

Microsoft Fakes & TFS 2012 Visual Studio Test Runner - unit test fail sporadically
I think I know where the issue lies, the TypeNotFoundException was correct, at least the corresponding types were not generated (as shown by Reflector), this made me thinking. More exactly there is only one generated fake-file generated per assembly lying under [buildName]Binaries- and as both of my Assemblies faked the same Assembly (backend.dll) - this resulted most probably in a race condition - the one assembly which was built later than the other had its final shims/stubs generated; this doesn't clarify all problems though. Anyway the reason why this doesn't show up on a regular VS build is because the assemblies are generated in their respective [assembly]FakeAssemblies directory, not influencing any other unit test (the way it is supposed to be). So my idea to circumvent this prob

Categories : Visual Studio 2012

allow to run javascript code right in visual studio
Its really simple to do so. IE provides debugger tools. There are many ways to do this. Here is a list of things I would possibly do Use Chrome by simply pressing F12 and clicking on console for REPL (The debugged and REPL have fantastic features) Use IE by simple pressing F12 too. It support breakpoints and the feel is very similar to Visual studio. Use visual studio immediate window. Hope this helps. Regards.

Categories : Javascript

Add GUI to Existing Code in Visual Studio
First, add a project reference to the System.Windows.Forms namespace. Then open up program.cs, reference the same namespace with a using statement, and change the code to read: static void Main() { Application.Run(new Form1()); } After you add your UI controls to Form1 and wire everything up to get the values you want from the user, you can tie it into the logic that was in the Main() method. How you do that is special to your case though. Try it first and reply if you get stuck. And see the comment by @sa_ddam213 too. Just right-click the project in VS and select "Properties".

Categories : C#

Visual Studio 2012 trying to indent a block of code changes the code
This was driving me crazy as I noticed it was adding a 'for loop' then I realised it was when I was selecting code with a comment after the last brace, e.g // code for(...) { // code block } // for <- culprit would become... for (int i = 0; i < length; i++) { // code block // original code for(...) { // for loop code block } // for <- culprit } // if I had } // switch it would delete the code block and enter the below switch (switch_on) { default: break; } Still haven't found the option to turn this off, but at least I understand what the editor is trying to do

Categories : C++

Visual studio selected code formatting
You're looking for Ctrl + K, Ctrl + F: Format Selection. You could have discovered that by selecting some text and typing Format into the Quick Launch bar (Ctrl + Q)

Categories : Visual Studio 2012

Visual Studio C++ does not update new code after building
The problem resided in the fact that I copied the code from the original project into a brand new project saved elsewhere. When I tried to build the project in the new location it would always build it in the old location (Strange since I copied code directly into brand new files). When I tried to run the files it would look for the built code in the new location. Therefore it would always get out of date code. Problem can be fixed by putting the new code back in the old location! Thanks everyone

Categories : C++

Sharing Visual Studio 2010 Code
I copy the form.designer.vb and the form.vb and paste them into notepad (plus) and save them as a text file, zip them and email them. The receiver can then copy and paste them into a new project and it will build as the same project. This is for simple for projects. Some people prefer to change the file extensions (the executable files usually won't pass email scans), I, personally don't like this. I also do this with all my code and email it to myself as an extra back up procedure.

Categories : Vb.Net

Visual Studio Source code checked out by someone else
If you are using TFS and the code is not checked in, then you can't access it. If the other person wants to share the changes with you without checking them in, the other person can "shelve" the changes which lets you access them.

Categories : Visual Studio 2010

What is meaning of exception in Visual Studio for C++ code
0xC0000005 is the access violation error code. Such illegal operations with pointers result in an access violation so this code will be seen. On the other hand 0x0041145e isn't a magic number, it's the location of the offending instruction in the executable, and will be different for other programs doing the same thing.

Categories : C++

Visual Studio code snippets and properties
Have you tried Snippet Designer tool by any chance? If not give it a shot. Their team knows alot about snippets. and they are fairly prompt with the answers to the questions you might throw at them. Sorry if it's not a direct answer but they helped me solve one of the issues which I was bugged in for a while.

Categories : Visual Studio 2012

Visual Studio - How to translate mex code from matlab to C++
To use mex code outside of a Matlab context you would have to rewrite all the mex-specific routines in the source or replace them with non-Matlab versions. For example, everywhere that "mexPrintf" appeared in the mex code you would have to replace it with "printf" and so on.

Categories : C++



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.