visual-studio-2012

How to generate a MAP file in visual Studio

不想你离开。 提交于 2019-12-13 11:21:45
问题 Generaly IDEs has option to generate MAP file which shows the locations of the functions and the variables across the memory and the STACK and RAM usages. Where in Visual Studio Projects we can generate a MAP file and get this information.Especially the Stack and RAM statistics. 回答1: Maybe you want to take a look at the documentation. The linker directive which will create a .map file is just, /MAP[:filename] and.. filename: A user-specified name for the mapfile. It replaces the default name.

Which Visual Studio project types support Shift+Alt+D to open the Data Sources window?

家住魔仙堡 提交于 2019-12-13 10:46:46
问题 In Visual Studio 2012, it appears that only maybe a third of the 20 or so C# project types support using Shift+Alt+D to open the "Data Sources" window (and none that I've found ever display the mythical "Data" menu bar option). Is there any sort of guide as to which project types will allow you to work with data sources? Also, is there any way to "adjust" the features of a project after it's been created? Update: See my answer below for how to add the Data Sources function to an existing

How to Parse the txt file in c# [closed]

做~自己de王妃 提交于 2019-12-13 09:54:56
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Hello I am new to C# and I have to parse the text file formatted which has the data like following. H1|57535 |65644474| 243.34 D1|671690160540 |FedEx Gnd |Ground |Parcel |06082016 D2|FCREADHCU3 | 10|||||| 23.01 H1|57521 |65642336| 923.31 D1|671690161010 |FedEx Gnd |Ground |Parcel

Crytal Report not showing arabic when exported to PDF

[亡魂溺海] 提交于 2019-12-13 09:48:07
问题 I have a web application (ASP.NET with C#.NET as back end). Developed in VS2012 with Crystal Report V13.0.5. Reports are working fine with data in english language. When I have executed reported and converted them to PDF for Arabic language data then it didn't showed me arabic but english or numeric data was on shown on reports. Or when i converted them to to excel file Arabic is shown there as well. I have searched on google but find post which recomend to install arabic font if in linux

c# console application unassigned local variable [duplicate]

霸气de小男生 提交于 2019-12-13 09:18:21
问题 This question already has answers here : What does “Use of unassigned local variable” mean? (10 answers) Closed 4 years ago . int ValueOne, ValueTwo, Numchar, Total; Console.WriteLine("This Is A Program For doing any Of the four mathematical Proccesses"); Console.WriteLine("You can Add , substract , Divide And Multiply"); Console.WriteLine("When Asked Please Type The Values Or The Proccesses You Want."); Console.WriteLine("Please Type The First Value"); ValueOne = Convert.ToInt32((Console

Updating UsageTime in SQL Server via Visual Studio

前提是你 提交于 2019-12-13 09:10:18
问题 I want to update the UsageTime when the time ticks per minute, couldn't get the right code. Private Sub LBLTime_TextChanged(sender As Object, e As EventArgs) Handles LBLTime.TextChanged con.ConnectionString = My.Settings.Finals_DBConnectionString cmd.Connection = con con.Close() con.Open() cmd.CommandText = "update tbl_transaction set usagetime = @ut, remainingtime = @rt" cmd.Parameters.Clear() cmd.Parameters.AddWithValue("ut", +1) cmd.Parameters.AddWithValue("rt", -1) cmd.Parameters cmd

Reading more than one integer on a line in a listbox

纵然是瞬间 提交于 2019-12-13 08:54:55
问题 So I have a button which reads a file, and puts the contents of that file into a list box. When I press the button this is what is shows: Jim 6 8 9 Tim 7 5 6 Bill 4 10 8 What I want to do is make a separate button which adds each of the person's scores and then finds the average of them. Once it has calculated the average of the person then I want the average to be in the place of the 3 scores. The code that I have at the moment only takes the first score of each person and then adds all of

Removing TextBoxes created Dynamically on Button click

陌路散爱 提交于 2019-12-13 08:47:01
问题 I have tried creating textboxes dynamically using lists. All i need now is, how can i reset all text boxes that i have created by hitting a reset button. The following is my code: public void button2_Click_1(object sender, EventArgs e) { int number = Convert.ToInt32(textBox2.Text); List<TextBox> inputTextBoxes; inputTextBoxes = new List<TextBox>(); for (int i = 1; i <= number; i++) { Label labelInput = new Label(); TextBox textBoxNewInput = new TextBox(); labelInput.Text = "Activity No: " + i

My DateTime.Now function returns #. Is something wrong with my visual studio or something wrong in the declaration

て烟熏妆下的殇ゞ 提交于 2019-12-13 08:46:02
问题 Is something wrong with my visual studio or am i missing something. When ever i convert something into datetime these # add up. And i cannot send strings to the database to get data 回答1: This is just VB's visual representation of DateTime literal. Never mind it, it's has a DateTime value - use it as such. 回答2: If you're sending strings to a database, my guess is you're not using parameters. Try using a parameter and assigning the datetime to it. 回答3: If you need it without the VB.NET date

How can I use C++11 features like delegating constructors in Visual C++ November 2012 CTP?

梦想与她 提交于 2019-12-13 08:33:54
问题 I installed visual c++ November 2012 CTP but it seems i do something wrong because i still can't use delegating constructors I set the Platform Toolset to : Microsoft Visual C++ Compiler Nov 2012 CTP (v120_CTP_Nov2012) This is my code: #pragma once #include<string> class Hero { private: long id; std::string name; int level; static long currentId; Hero(const Hero &hero); //disable copy constructor Hero& operator =(const Hero &hero); //disable assign operator public: Hero(); Hero(std::string