FAQ Database Discussion Community

## How do I get Visual Studio 2012 to generate code from a windows form design?

vb.net,winforms,visual-studio-2012
I am trying to add a simple windows form to my VB.Net project. I have used the designer to design the form how I want it with buttons, a text box and a Timer. The problem is when I try to view the code, there is only an empty class...

## Visual Studio 2012 - Fill message test result

c#,asp.net,unit-testing,visual-studio-2012,testing
When a test end its running i have a list like this Result1 Name: 01- AutoGenerateRequest (requestgenerationtest) Result1 Outcome: Passed Result1 Duration: 0:00:26,2924949 Result1 Message: Result1 StackTrace: how can i write something in the result message or stacktrace?...

## c++ store special characters (“ç”, “á”,..etc) on SQLite db

c++,qt,sqlite,visual-studio-2012,sqlite3
My program uses SQLite3 lib to open and execute some querys to a local DB. This is the function I use to execute a query (with error displaying): void exec(string query, string place_error){ if( sqlite3_exec(sqldb,query.c_str(),0,0,&db_err) != SQLITE_OK) sql_error(place_error+" - "+(string)db_err); } Now, if I try to execute something like: exec("INSERT...

## Webforms asp:Panel children not showing fully in VS 2012

asp.net,visual-studio-2012,webforms
I'm wrestling with design time rendering of my custom WebForms components where I have defined a control derived from Panel and a second control derived from WebControl. I place the WebControl inside the Panel by dragging and dropping from the Toolbox. The problem I have is that at design time...

## Named pipes error 40, connecting to Xampp through visual studio

c#,php,visual-studio-2012
I have set up Xampp as a server to host my database. I am trying to connect to the database, filter results and output them to the datagridview based on the text in txtSearch private void btnTest_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=epas;Persist Security Info=True;uID=root;Password=Password");...

Using VS2012 C/C++: I created and linked a static lib called "libtools" to my project. Calls to functions in the libtools lib worked as expected. I created and linked a second static lib called "shunt" to my project. But when I incorporate a call to a function in shunt, I...

## Where to specify preprocessor directives in visual studio?

c#,visual-studio-2012
Trying to define a preprocessor directives in the Visual studio 2012. #define FLAG .... #endif But not sure, where to include this FLAG in visual studio - C#. I remember specifying something like this in C++ projects. Any thoughts ?...

## Spaces displayed as dots and tabs displayed as arrows

visual-studio-2012
In my Visual studio 2012 editor I erroneously pressed some obscure key combination (Ctrl-Alt-something or so) and now spaces are displayed as little dots and tabs are displayed as arrows. I'd like to get rid of this, but I haven't found the corresponding option in TOOLS-Options-Text editor....

## Share project between Visual Studio 2013 and Visual Studio 2012

c++,visual-studio-2012,visual-studio-2013
I am using Visual Studio 2013 community and created C++ project. I want to share the project with a colleague working with Visual Studio 2012 professional. Once he took the project he had to change the toolset to v110 and it worked just fine for him. When he shared it...

## How to determine Team Project Uri from project folder

c#,c++,winforms,visual-studio-2012,tfs
I'm making a c# application where the user provides a c++ project directory that is under source control on TFS 2012. I need to determine the Team Project Uri so that I can use the TFS API to modify labels on that c++ project. The only thing I've found is...

## Autocomplete in package manager console exist?

visual-studio-2012
I saw some video about Entity Framework Code First and it seems that they use some autocomplete function when type command in Package Manager Console. Does it really exist because i cannot find something like that ? I tried Ctrl + J and Ctrl + Space(like Intellisense in visual studio...

## Using an iPad as the networked Mac for Xamarin.iOS for Visual Studio

This guide explains how to use Xamarin.iOS for Visual Studio and a network available Mac as the host for Apple's complier: http://developer.xamarin.com/guides/ios/getting_started/installation/windows/introduction_to_xamarin_ios_for_visual_studio/ It is possible to use an iPad as the networked Apple compliler?...

## Visual Studio C++ access violation when modifying a pointer passed into a function

c++,pointers,visual-studio-2012
I want to implement a simple function that gets a string as a char pointer and modifies the string in a function. The requested function must be void then I have to modify the primary string passed into my function. I got an access violation error and googled it but...

## Mixed Dev Environment: Automate Visual Studio .csproj updates from Git/TFS?

git,visual-studio,visual-studio-2012,tfs,csproj
I'm hoping you can help me solve this development workflow annoyance. I'm a front-end dev working on a project where most of the other developers use MS Visual Studio, and I don't. We've got TFS set up, and I'm able to check out code and make edits locally. After making...

## Label change when button click [closed]

html,css,visual-studio-2012
I'm trying to make a label change when I click a button, but for some reason it is not working. It was working until I made a little change, and i do not know what to do anymore. Can some one help? Here is the code: private void btnColorChange_Click(object sender,...

## Visual Studio 2013 Build Error: Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer

sql-server,visual-studio-2012,visual-studio-2013,ssdt
I have Visual Studio 2012 and Visual Studio 2013 installed on my development machine. My SQL projects were created with VS2013 and they compile fine from Visual Studio, but they fail with the following message when I use MSBuild from the command line: Build Error: Incompatible versions of SQL Server...

## How to add a resource file in visual studio

visual-studio-2012,resx
I want to add a resource file to my project in Visual Studio. But I am not able to find from where I can create the resource file. Can anyone help me out in this

## How to create a Simple Build Script for Visual Studio from the Command Line?

batch-file,visual-studio-2012,cmd,build-script
I have a lot of Visual Studio Project Solutions in multiple directories (all with the extension .sln) and I want to write a simple batch script that will automatically build all solutions listed in the batch file. I am able to manually build a solution by starting up the Visual...

## OpenGL GLFW build errors OR linking errors

c++,opengl,visual-studio-2012,glfw,cmake-gui
Can someone help me get GLFW working in Visual Studio 2012? I can't get past initial compilation. I keep getting unresolved externals for the GLFW functions. The problem is, I don't know what I'm doing wrong. I could be: Improperly making the source files with CMake. Improperly building the library....

## Uninstall web essentials

visual-studio-2012,web-essentials
I have downloaded a .vslx file and installed which cuases web essentials to be part of VS 2012. This may be a silly question. But How can I remove the webessentials from vs.I cannot find such an option in VS 2012. I found it total messy...

## Forbid linking against a c++ method

c++,c++11,visual-studio-2012,dependency-walker
I try to forbid the use of a method, to have a compile error if some piece of code use it. This is a proprietary legacy module, that I know that some methods are problematic. We have headers files, and dlls. I can't figure out all the use of this...

## Angular Structure Incorrect Somewhere

c#,angularjs,visual-studio-2012,angularjs-controller,angularjs-controlleras

## Class Logic Not Returning Value

c#,class,visual-studio-2012
I have some code written in C#. My class is as follows. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DrivetimeFileDump { public class DriveTimeObject { public decimal? _Parts; public decimal? Parts { get { return _Parts; } set { if (value != null) { _Parts =...

## VS 2012: Konfiguration Combo too Small

visual-studio-2012
Is it possible to change the size of this combo? Thank you!...

## Cant find File System, Registry icon in WIX setup project in Visual Studio

visual-studio-2012,wix
I installed WIX in my machine. I followed the video of https://www.youtube.com/watch?v=CoFPyIbcqN8enter link description here I can not find any way to add File Systems, no icon for it, no context menu entry on project. I am using Visual Studio 2012....

## VS 2012 Publish Website dialog box

asp.net,visual-studio-2012,web-site-project
I am attempting to publish a website using VS 2012 within the company, however, when I select "Publish Website" from the solution explorer, I get this dialog box What I am looking for, is this dialog box: Any ideas how to go about retrieving the desired dialog box?...

## How do I create a new txt file every time I click on this button?

vb.net,visual-studio-2010,visual-studio-2012
Private Sub cmdsummary_Click(sender As Object, e As EventArgs) Handles cmdsummary.Click Dim writer As New System.IO.StreamWriter("C:\Users\salman\Desktop\Text.txt") writer.WriteLine(Me.customer.Text + Me.txtcustomer.Text) writer.WriteLine(Me.todaystotal.Text + Me.txtsummarytotal.Text) writer.WriteLine(Me.average.Text + Me.txtaveragetotal.Text) writer.Close() End Sub Every time I click on cmdsummary it edits the notepad file (txt) and updates it but I want to create a new txt...

## Error: 'The system cannot find the file specified.' when trying to access certificate

c#,visual-studio-2012
I am using the Google API for BigQuery and it requires that I use a .p12 certificate. The issue is that no matter how I try to import my certificate resource I keep getting the same error: The system cannot find the file specified. I've added the file as follows:...

## How do I avoid the loss of data after I rerun (debug) my program in Visual Studio?

visual-studio,ms-access,visual-studio-2012,ms-access-2013
I want to add a new record into an Access database which is already populated with data. When I initially run (debug in Visual Studio) and add the record, it is saved into that specific table. Then when I close the program and run it again, the record is nowhere...

## Partial specialization of nested template types produces “internal error” in VC++ 2012 compiler

c++,templates,visual-studio-2012,nested
In the following example, I have an object class which defines a reference class. Both accept mutability as a template argument. In the case that 'obj' is 'Const', I want to disallow a reference of type 'Non_Const'. The example produces the ambiguous message, "An internal error has occurred in the...

## Visual Studio native unit testing: Debug/console output?

c++,unit-testing,visual-studio-2012
Can anyone tell me how to enable or get debug or console text output when running unit tests in a native (C++) test project in Visual Studio 2012? Answer should not include the phrase, "use Google Test"....

## Reporting Services - DateDiff function

visual-studio-2012,reporting-services
I am trying to find a way to obtain the last day of the previous month in an SSRS report that I am building (it will be in the report header), but I am running into errors that I have been unable to get around. Normally in SQL I would...

## Dynamic loose source routing in IP networks

c++,visual-studio-2012,boost,routing,ip
Okay guys, I have this idea to recreate a program wich could find the best rout in IP networks. I found one guy on the internet who did it, and he shared some code..but whatever I'm doing with it, I can't make it work. I'm using Visual Studio 2012 with...

## What do I need to get Microsoft.TeamFoundation.Framework.Client.dll?

visual-studio,visual-studio-2012,tfs,tfs2013
I am using visual studio 2012 and tfs 2013. The problem i am facing is Microsoft.TeamFoundation.Framework.Client.dll is missing. But i have other dlls such as Microsoft.TeamFoundation.Client,Microsoft.TeamFoundation.WorkitemTracking.Client. Can anyone tell why the dll is missing? Is there any way to resolve the issue. Thanks in advance.

## Move from visual studio online to github

git,visual-studio-2012
I've created a project with visual studio online source control, however I've never actually synced with the server, i'm just committing locally. Now I need to add this project to a github repository, so in the windows github client I've located the project and added it, I can see all...

## Cannot find InvalidCastException in C# Application

c#,winforms,visual-studio,visual-studio-2012,webforms
I'm getting a strange error in Visual Studio, and of course this great software is unable to tell me where the error is, just that I'm getting an error. I guess the best I can do is paste my code. using (SQLiteCommand cmd = new SQLiteCommand(query, con)) { using (SQLiteDataReader...

## Best Alternative to the infinity for integers

c#,visual-studio-2012,infinity
I am developing weight matrix for a directed weighted graph. and I have to insert infinity as well according to the rules of weight matrix. So far i am sticking with with int.MaxValuebuiltin function of C#... After this I am using this weight matrix for FloydWarshall algorithm, but due to...

## Team Foundation 2012 not recognising changes in vb6 app

visual-studio-2012,tfs,vb6,tfs2012
I'm using Team Foundation 2012 to provide source control for a VB6 (yes, I know) project. On a newly set up machine (installed Team Explorer 2012 and TFS Power Tools 2012), TFS does not seem to be properly noticing the changes. The local Team Explorer says it is connected to...

## Dapper, MS Access, Integers and “no value given for one or more required parameters”

c#,ms-access,visual-studio-2012,oledb,dapper
I keep getting the error "no value given for one or more required parameters" on the third attempt to insert in the code below. The first two attempts work fine. I'm running in .NET 4.0, against MS Access in VS 2012. And this problem appears to be consistent whether I'm...