Questions tagged [visual-studio-2010]

22047 questions
1

votes
0

answer
52

Views

c++ / Visual Studio 2010 / add just-constructed-element to list

I'm on a big C++/stl mystery with Visual Studio 2010 : I push back an object to a list, and when I access to it, I get partially un-initialized data. Here is a very minimalist sample of code that produce this behavior : #include #include #include using namespace std ; struct Foo { Foo ( int x , i...
Captain'Flam
1

votes
1

answer
54

Views

Invoking GetProcAddress resulting procedure reports ERROR_FILE_NOT_FOUND

I am accessing a c++ dll library (I don't have the source code) from c++ code. I use this library to mount a usb device so I can access the files on the device. This code worked well in VS2010 but since we updated to VS2013 it no longer works. Here is my question. What differences between VS2010...
Steve E
1

votes
1

answer
500

Views

Can't see a class in the same namespace in different file at compile time

My problem is as follows: I have a namespace, let's say 'Foo'. There are already two classes in it, let's say 'MyClass' and 'SomeOtherClass'. They are both in separate files. I need to add a third class to this namespace, let's say 'Data', in a third file. To begin with I implemented the logic of...
Balthius
1

votes
0

answer
28

Views

C# 2010 Child form not showing inside MDI

I'm trying to open child form inside MDI Form it's not working in visual studio 2010. I've written following code. private void dashboardToolStripMenuItem_Click(object sender, EventArgs e){ Dashboard dash = new Dashboard(); dash.MdiParent = this; dash.Show(); } it shows Error : F...
Akshay Kotecha
1

votes
1

answer
153

Views

breakpoints not hit once evaluation timed out

I quite often stumble about code that takes too much time for the debugger to evaluate yielding to the following annoying error: Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation. Usually we can ignore this by j...
HimBromBeere
1

votes
3

answer
364

Views

how to add a Run Button and Compile Button on the toolbar in visual studio

I want to add a 'Run' button and a 'Compile' button on the toolbar so that I may not have to Press CTRL + F5 or CTRL + Shift + D
Faizan Khan
1

votes
1

answer
672

Views

Use TLS 1.1 or 1.2 in WCF and DotNet 4.0?

I have a Server service and a Client service using WCF, both built in C# with DotNet version 4.0 and Visual Studio 2010. I created and installed self-signed SLL and CA certificates on the server. So far so good. Everything works ok. The Client is service is able to communicate with the Server servic...
Neil Weicher
1

votes
1

answer
120

Views

SSRS map layers not rendering but can be previewed in Visual Studio

I'm writing a map report using Visual Studio 2010 with SQL Server 2012. The report processes and displays fine in preview within Visual Studio, however, when deployed all the map layers do not display. The grey-blue box is visible as is the legend with the correct(expected) labels so data is coming...
LittleJohnD
1

votes
1

answer
396

Views

Microsoft Visual Studio Create temporary Tables

Good day, I am trying to create a data set in SSRS unfortunately I need to create a temporary table in order to create my report. My code is as follows create table #Tax_Admin (AWD varchar (255), Name varchar(255)) insert into #Tax_Admin values ('MDSTM','Agent 1'), ('MDSAK','Agent 2'), ('IT...
Flaniganga
1

votes
1

answer
35

Views
1

votes
0

answer
43

Views

VB.NET Webkit Javascript Alert Popup

I made a live html editor in Visual Studio using the WebKit Webbrowser. Javascript works, but i cant figure out how to get javascript alerts to work. https://gyazo.com/1962090a11f0b52e414171956156fb02 ^^ as you can see in the code, Im trying to get a javascript alert box to popup when you click the...
PrestonL
1

votes
0

answer
30

Views

Command Prompt Not receiving Input Command From VS 2010

Whilst bored, I had the idea to write a program (in VS 2010) to detect errors in my ipconfig (as my receiver's drivers are conked) so that I could reset it. I am attempting to use the following to do so: Imports System Imports System.IO Public Class Form1 Private Sub Form1_Load(sender As System.Obje...
David
1

votes
0

answer
174

Views

How to force the debugger to skip over a method and anything it calls after stepping into Application.Run()?

TL;DR - Is there a 'recursive' [DebuggerStepThrough]? Is there an attribute I can use on a method so that when using Debug > Break All on an idle WinForms form and then stepping into Application.Run(), such that no breakpoint will be triggered on that method or anything it calls, when an event calls...
Duke Nukem
1

votes
0

answer
133

Views

Build Boost.Python with specific conda environnment and MSVC on Windows

I'm trying to install Python.Boost, however, after downloading it, I fail to build the package. I'm doing so through the following .bat script on Windows 7. (I also do not have admin right on my computer and have several version of MSVC installed) For building it, I followed the instructions from he...
Nathan
1

votes
1

answer
47

Views

Get the date and time for specified timezone

I have a server in the UK (GMT+1), and I need to store a date for Canada (GMT-5). This is relatively simple. //gmt_operator, gmt_hr, gmt_min are all grabbed from a database //These are the data extracted from GTM+5:00 for example. //Get UTC+00:00 in seconds time_t ltime; time(<ime); //Add GMT offs...
Jake Schuurmans
1

votes
0

answer
13

Views

How to read a specific part of a line in a text document in VB 2010?

I'm trying to read a specific part of a text document which will allow me to allow the user into the program. The problem i'm having with the code is that it is able to complete the first if statement but no the second - it reads the username but not the password. Dim usernames() As String = File.Re...
R0SSI
1

votes
0

answer
49

Views

LibSSH: Interacting with a script/bash within a session

I am using libssh APIs for communicating with a device. I am able to login as 'root' and run basic commands like 'ls -l'. Problem statement: I want to run a script within the file directory of this device (which I can) and then run a command once this script runs (which has it's own interface). //cr...
Corleone
1

votes
1

answer
83

Views

Building C/C++ projects with ASM modules in Visual Studio 2010

I'm feeling like an eejit right now. I have been using Visual Studio 2010 Professional successfully for C/C++ projects for quite some time. But now I have a project that also includes a couple of ASM files (written for the Microsoft Assembler). I read a few articles about enabling MASM in Visual St...
Neil Weicher
1

votes
0

answer
40

Views

WCF Service not Working after Target Framework changed from 3.5 to 4.0

I have WCF Service Project which is in .NET version 3.5 (VS 2008) and the running pool is Classic .NET App pool, to Upgrade to .NET version 4.0, Project solution Migrated to VS 2010,Target Framework changed to 4.0 in properties. then in IIS Manager when Classic .NET App pool was selected there is an...
Manu Krishnan
1

votes
1

answer
38

Views

Visual Studio Build Solution

I had Simulink model and have generated C code from MATLAB. Basically Simulink Model has many function and one S-Function with file Extension .mexw32 (hex code). The process of C-code generation is working without any error. Now that I have C-code and header files of my application, I wanted to buil...
Luke
1

votes
2

answer
64

Views

SSIS Get Date from a File Name

My file is called ... File - 20170101.xlsx I have the following as a variable FilePath, data type string, File - 20170101 as a derived column I have (DT_I8)LEFT(RIGHT(@[User::FilePath],8),4) I Got this to work, but only gives me part of the values..(only 3 numbers, I need 8) gives me output of...
pete
1

votes
1

answer
36

Views

html element's attribute in c# web browser by using threading

i am making web browser in windows form by using c# where i can set values of loaded html's input fields automatically by clicking on button. when i simply put code in click event of button its work fine` private void button1_Click(object sender, EventArgs e) { webBrowser1.Document.GetElementById(...
roshi pandy
1

votes
0

answer
39

Views

LNK2022 when converting VS2010 project from 32-bit to 64-bit

I am converting a VS2010 project from 32-bit to 64-bit. Compiles fine, but when it attempts to link, I get the following errors: 1>MSVCURTD.lib(mstartup.obj) : error LNK2022: metadata operation failed (80131188) : Inconsistent field declarations in duplicated types (types: _GUID; fields: ): (0x0400...
DisDon
1

votes
0

answer
20

Views

Which checkboxes changed in a GridView

I have a GridView where one column is a checkbox, like this I want to know, of a group of n rows, which checkboxes changed, doesnt't matter if they were unchecked/checked. What I tried is to add a class to the checkbox like this: $('input[type=checkbox]').change(function () { $(this).addClass('Selec...
Nickso
1

votes
2

answer
40

Views

IsNumeric statement and a range

Hey everyone I am working on an assignment where i have to validate the user input data. When asking my instructors if i can use a IsNumeric to validate a range between two numbers he just said yes and did not show me how. Now I know you can validate using if statements , and i have several doing s...
Borgannihilatior
1

votes
0

answer
6

Views

Using Quantlib on Visual Studio for Mac

Can someone help me figure out how i'm supposed to use quantlib and boost using visual studio for mac. When I try to load the solution file for quantlib onto VS for mac , i just get yellow triangles for each one of the contents of the solution file. And I cant figure how to include the boost file in...
UDAY JAIN
1

votes
0

answer
22

Views

Set CopyingRowClipboardContent event dynamically for all DataGrids

I want to be able to copy a cell instead of a row when I hit Ctrl + C in a DataGrid, and I found that I can do this using the event CopyingRowClipboardContent and the handler : Private Sub DataGrid_CopyingRowClipboardContent(ByVal sender As Object, ByVal e As DataGridRowClipboardEventArgs) Dim curre...
Naucle
1

votes
0

answer
17

Views

Compress images of PDF using iTextSharpes causes Insufficient Memory

Im basing the code in this thread: PDF Compression with iTextSharp Im having an exception 'Insufficient Memory', the PDF Im handling have 47 images weighting different Kb each, making the pdf 16.5mb. The code is the same: public void ReduceResolution(PdfReader reader, long quality) { int n = reader....
Nickso
1

votes
0

answer
36

Views

How to make x axis depend on two columns in Visual Studio?

Problem: I have a chart - its X axis must contain 2 parameters (2 columns), a number and a date, which each date contains a few numbers. Here are my chart and what I want: My attempt: Chart1.Series('Series1').XValueMember = 'tgl' Chart1.Series('Series2').XValueMember = 'tgl' Chart1.Series('Series3')...
Adji Estu Pambudi
1

votes
0

answer
14

Views

Microsoft Visual Studio from English to French

I need to change my Visual Studio 2010 installation from English to French. However, I only have access to the English Version for Visual Studio 2010. How can I change it to French? Thanks in advance for any help
LordPE
1

votes
1

answer
770

Views

Solution Explorer Project Context Menu

Is there a way of adding other options (specifically Add Interface) to the projects right click context menu (Right Click a project > Add > [Class, new Item, new form,...])? I found one option in the customize dialog to place an 'Add Interface...' item in, but this is always disabled. I found that o...
Pondidum
1

votes
1

answer
318

Views

Can I suppress selected input before the application's main loop?

As part of my Visual Studio utilities add-in SamTools, I have a mouse input routine that catches Ctrl+MouseWheel and sends a pageup/pagedown command to the active text window. Visual Studio 2010 added a new 'feature' that uses that gesture for zoom in/out (barf). Currently, my add-in does send the s...
Sam Harwell
1

votes
1

answer
359

Views

Does Visual Studio Test Essentials/Test Runner run web & load tests?

Looking at Amit Chatterjee's Blog post on the upcoming Visual Studio Test Essentials product and in the image he has (below) he basically he says that all the blue blocks will be in Test Essentials, while all the green will be in Visual Studio Test Edition. (source: msdn.com) I see Test Runner is o...
Robert MacLean
1

votes
1

answer
174

Views

VSTS 2010 Debug Feature

I heard of a feature supposedly included in VSTS 2010, but now I can't find any mention of it. It was a tool that allowed a developer to attach a debugger that was on a flash/jump drive and start debugging a program. It did not require any installation. Note: I am not referring to the Historical De...
Vaccano
1

votes
1

answer
136

Views

How to change F# related colors in VS 2010

I know about Options->Fonts and Colors. But there is no option for F# strings(i want to change color to make them look exactly like c# strings)! And maybe someone know about Microsoft plans on F# editor (refactoring and etc)?
Ilya Khaprov
1

votes
1

answer
398

Views

Installing Azure SDK on Visual Studio 2010 Beta 2

I am currently setting up a development VPC to test some new technology. I have installed VS 2010 Beta 2. I now want to install the Azure development tools. The latest download that I have been able to find is the July CTP. This is suposed to work with Beta 1. I get the following error message: Visu...
Shiraz Bhaiji
1

votes
1

answer
2k

Views

visual studio 2010 system.management.automation assembly reference

Been having trouble with visual studio 2010 I've added reference to the project and double checked the when i type using System.Management.Automation; at the top of the file. when I go to compile / build it .. it says that the infamous are you missing an assembly reference. any ideas?
Aceth
1

votes
2

answer
407

Views

Why is there no Project Item when Deploying VSIX?

We have a VS2010 Beta 2 DSL Project , We can build, deploy and test on our Development machines and all is well i.e When we go to 'Add New Item' we can select our DSL When it comes to giving the VSIX to someone else to try the ONLY way that they can see the associated Project Item is if they build t...
Phill Duffy
1

votes
1

answer
2.2k

Views

Transition workflows of a work item's states

I am developing a windows app that performs some common TFS tasks using the 2010 Beta 2 API (like creating new team projects, new work items, selective build, etc. ). In the process of editing existing work items, I should be able to automatically set the 'Reason' field's values according to state c...
TS.
1

votes
2

answer
1.4k

Views

VS2010 Ultimate beta 2: Where is application verifier?

In VSTS2008 there used to be Debug -> Start With Application Verifier, which doesn't exist in VS2010 Ultimate beta 2. Where has it gone?
sold

View additional questions