visual-studio

How to list all attached USB devices in Visual C++

In Short: I need to detect hotplug events of my USB CDC device by PID/VID and get the corresponding virtual COM port which was created by Windows in Visual C++ and in the end create a dll. I have a USB CDC device which I need to be notified of when connected/disconnected on Windows. My approach is to use RegisterDeviceNotification and a...

Programmatically generate Visual Studio Solution

I want to write a wizard in .net which programmatically generates Visual Studio Solution with some projects. I will have a XML file with details of files need to be included in the project with their respective paths to fetch them and a list of project names. Is there any way I can achieve this ...

SQL Server (Not Express) + Visual Studio Express (vb.net) - Connection possible?

Hi, I couldn't find a quick answer on the official pages, is it possible to write VB projects in the express edition of Visual Studio that connect to a SQL Server that is not the included 'Express' server ? Any hints appreciated :-) ...

How to stop Visual Studio from returning duplicates answers?

In my team, we put all our projects (only 7 large ones) in the same solution. And since some code is common between project we tend to have the same file included in each project. This is fine and compiles/runs well. But when I do a global search in my solution, VS does a "stupid" search and goes through all the files in each project, wi...

Add Data to DataRepeater Control in winform

hi. Visual Studio 2008 service pack 1 comes with Visual Basic Powerpack and has DataRepeatr control. i want to know that how I can add data in this control. i have in memory data. the examples i found on net are about binding DataSet to DataRepeater by fetching data from database. i want to bind in memory data. how to do this. ...

Is it possible to run Visual Studio Database Edition schema migrations from the command line?

Visual Studio 2008 Database Edition (Data Dude) has the ability to perform schema comparisons between databases and generate a script which migrates from one database to the other. Is it possible to perform this comparison and generate the migration script from the command line? If so, what are the command line tools, and are the same to...

Release build in MVS 2010 professional v/s express for C

Hi, recently I discovered that "executing" a C program as a release build instead of a debug build optimizes the code and makes it run much faster. This is accessed through project properties > configuration manager menu. I would like to know if this feature is the same in the professional version and in the express edition of MVS 2010 i...

how do i know that the Type for Visual Studio instance is VisualStudio.DTE.9.0

using System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE.9.0"); i can get hold of the type for an instance of Visual Studio. My question is where was it specified that the type of Visual Studio 2008 instance is "VisualStudio.DTE.9.0". Can any one direct me how to find it using Ole/Com viewer. I believe the ProgId can ...

What is timestamp in VS modules debug window?

What is timestamp in VS modules debug window? Is it Created timestamp? Modified ? Or signed timestamp I changed the timestamps of a dll and still its showing something else not able to figure it out what exactly is it? ...

Re-generate Code Gen Files in Visual Studio

I'm using Visual Studio 2008. I've added a control on a page but can't reference it in code-behind file. When I looked at the Code-Gen file, I didn't find my new control. It looks like Visual Studio didn't update Code Gen file to include my control. Is there a way to manually re-generate that Code Gen file? ...

Silverlight preview XAML file exception

I have upgraded my Silverlight project from 2 to 3 and uses VS 2008. When I open the XAML-file preview in VS 2008 an exception occured: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at MS.Internal.XcpImports.RenderTargetBitmapRenderNative(IntPtr nativePtr, IntPtr element, Int3...

Can I enable/disable breaking on Exceptions programatically?

I want to be able to break on Exceptions when debugging... like in Visual Studio 2008's Menu Debug/Exception Dialog, except my program has many valid exceptions before I get to the bit I wish to debug. So instead of manually enabling and disabling it using the dialog every time is it possible to do it automatically with a #pragma or som...

Problem with connecting to a java web service running on WebSphere 6.1

Hello! I have one machine running a java web service on IBM WebSphere. It is using port 9081. I also have a client to this web service written in c#.NET. The funny thing is that I can easily reference the web service in Visual Studio 2005 (I get the wsdl definition) by http://ip_address:9081/ProjectName/services/MyService?wsdl but I can...

MS Build Server 2010 - Buffer Overflow // append: how to exclude directory from source safe

Hey everybody, I try to build an solution in MS Build Server (MS Visual Studio 2010 ver 10.0.30319.1) about ServerTasks -> Builds -> Server Task Builder -> Queue new Built and go, 47 seconds later I get an error output: CSC: Unexpected error creating debug information file 'c:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdP...

VC++ Debugger expression

In debug | Immediate window, why do i get this error: szTemp is a local variable at {,,Util.dll}MySock.Write("%s",szTemp) CXX0017: Error: symbol "szTemp" not found int SomeFunction( ..) { char* szTemp = new char[1024]; . . ---> Breakpoint.. Trying to run the expression here.. . . } ...

looking for hosted vcs for visual studio

I travel a bit and I'm looking for a hosted vcs with good support for Visual Studio. My projects aren't open source so I need security as well. Any recommendations or suggestions? Thanks ...

Matching tag in HTML keyboard shortcut

Is there a shortcut in Visual Studio (2008) that will allow me to jump to matching HTML tag... as CTRL+] does for matching braces when you are in code view? Example: <table> <tr> <td> </td> </tr> </table|> Cursor is on closing table tag and I would like to press something like CTRL+] to jump to opening table tag. Any id...

How to create refresh statements for TableAdapter objects in Visual Studio?

I am working on developing an ADO.NET data provider and an associated DDEX provider. I am unable to convince the Visual Studio TableAdapater Configuration Wizard to generate SQL statements to refresh the data table after inserts and updates. It generates the insert and delete statements but will not produce the select statements to do t...

Light and simple bugtracker for a small team

I'm looking for a simple and light tool for tracking ideas and bugs for small physics lab team (4 members). Bugzilla and Trac have too much fields and other stuff for us. I don’t think that we need more than issue descriptions and simple categorization. But we are not happy with text and excel files suggested here. Could you please advis...

Invalid cast exception was unhandled when saving gridview to a file

okay I am totally stuck. I have been getting some help off and on throughout this project and am anxious to get this problem solved so I can continue on with the rest of this project. I have a gridview that is set to save to a file, and has the option to import into excel. I keep getting an error of this: Invalid cast exception was un...