visual-studio

OpenCV Visual Studio 2010 - RC6034 Error (DLL Hell?)

[ Add HTTP:// to the beginning of picture links to make them work for you. ] [ All Steps here were done with both Release and Debug versions. The pictures shown only display debug-related information. ] OpenCV 2.1.0 does not work properly with Visual Studio 2010 on my computer when it begins to load _Video files with the opencv_ffmpeg D...

Multi-line regular expressions in Visual Studio

Is there any way to get Visual Studio to perform a regex replace across multiple lines (let the match cross line boundaries)? I know there are many editors I can use for this, but it seems strange that this feature has been left out of Visual Studio. Am I missing something? ...

Using VS2010, is it possible to alter the size of the smart tags popup on a control?

I'm coding a control with SmartTags support. Works fine however the size of the popup is too small. Is there a way to increase it either programmatically or from the IDE itself? ...

Emulate Visual Studio Publish through code

I am trying to "publish" some of our web projects/WCF services through c# code and I want to use the same procedure that VS 2010 uses to publish these projects (ie. right-click project and select 'Publish...'). Is it possible to deploy in this way or do I have to build my own method that copies from bin folders? Here is a snippet of cod...

How to pass multiple parameters in thread in VB

I'm looking to pass two or more parameters to a thread in VB 2008. The following method (modified) works fine without parameters, and my status bar gets updated very cool-y. But I can't seem to make it work with one, two or more parameters. This is the pseudo code of what I'm thinking should happen when the button is pressed: Private ...

Project compiled against .NET Framework 3.5 allows C# 4.0 features

I currently have a project I'm working on that has a target of .NET Framework 3.5. I am using Visual Studio 2010; however my coworkers use Visual Studio 2008. I am able to use C# 4.0 features such as optional function parameters, but if they try to build the same code with the same target, they are unable to. It was my understanding that...

WPF Creation versus Visual Studio Creation

I created a form in WPF and it looked great. When I opened it in Visual Studio 2010, it look alot different than what I created. Any ideas why this would happen? Should I ignore how it shows up in VS? This makes me wonder if either is how the user will actually see it. Any suggestions? Thanks again! Eroc ...

How to parse through a C/C++/C# project and write all packages/classes/methods into a database?

Hi For my new application I would like to parse another C, C++ or C# project, so that i can later display the graphical representation of all the classes in this project. So I thought that its a good approach to use a database with the following tables to store the necessary information: TablePackages: id | name | parentID TableClass...

Communicating over telnet

I can't use Boost ASIO (reasons not related to programming) and I looked around and libcurl looks good. I'm building the binaries at the moment and decided to get some feedback from the community. Any comments regarding libcurl/alternatives? UPDATE: libcurl's not great for telnet. It's 2010! Shouldn't there be a simple way to do this?...

Adding non-advertised shortcuts to Visual Studio deployment project

Hi guys, I would like to create two shortcuts to my application during setup. The application is deployed as a Visual Studio 2008 deployment project. The shortcuts would basically point to the same executable, however I would like one to be advertised (i.e., checking if the installed files are the same as the files packaged by the orig...

Keyboard shortcut in Visual Studio to select the Current Block

In VB Classic, VBA and also in Visual Studio you can dbl click close to the left hand margin of a block of code and it will select the whole of the current block (sub, function etc). In Visual Studio this clickable area is adjacent to the line numbers on the left. Is there a keyboard shortcut that will do the same job? that is, select t...

Visual Studio Remote Debugging on XP Embedded - tried everything, please help!

I need to debug some C# code on a remote machine running XP Embedded. I did remote debugging on several occasions on different Windows operating systems and all worked well, but I think that the XP Embedded OS is missing something. I'm popping my brains out in the last couple of days, reading and trying stuff, but nothing seems to work...

How to test SSL switching using VS2010 on Win7

I developed a large web application with VS2008 installed on an old Win2k3 server. I now have Visual Studio 2010 installed on Win7 Pro and work on the application fine. Parts of my web application need to switch into and out of SSL which they did on the Win2k3 server using the IIS tool that creates a private SSL cert. However I now need...

Are Visual Studio Express products really only for "hobbyists, students and novices" ?

I have Visual Studio Professional 2008, and have been testing the free C# Express 2010 version. In general I'm amazed at how good it is for free, and how many of the full VS features it has. I'm thinking of using it for a commercial program and I know the license allows for that, it's just the description of it being for "non-professiona...

Can I collapse foreach, using and other c# code blocks in Visual Studio 2010?

Can I collapse foreach, using and other c# code blocks in Visual Studio 2010, the same way that I can collapse methods, properties, classes, namespaces, etc? It would be very helpful sometimes. ...

How to debug WCF Data Service?

Hi, I have created a WCF Data Service and using it in a web application which is the part of same solution. The WCF service holds the reference of another DLL(Utility.dll) which is also part of the same solution. I have added the service reference of the WCF service in the web application. So the structure is Solution | |-...

How do Microsoft reports (RDL) query the data?

I am not creating RDL from scratch so maybe this is a problem -- I work on already prepared files. MSDN states that CommandText in RDL file can contain T-SQL query. Ok, this I understand, but what else it can contains? I am asking because the phrasing clearly indicates you can put some other expression there So if I understand correct...

Web.config Transformations in VS2008

Someone had asked me if you can perform config transformations in Visual Studio 2008. I know you can as I do remember several articles on this. However, I can't seem to find any of the links as of now. Can anyone point to an article on Google/Bing/Search of the week and/or provide a quick sample so that I may pass it on? Everything I'm f...

Syntax Highlighting for Custom ASP.NET Control

I have built a simple custom ASP.NET control that expects it's body content to be javascript. Is there a way to tell Visual Studio that the content should be javascript, and therefore provide syntax highlighting / intellisense goodness? In case it helps, here's the framework of the control I'm working with. namespace MyNamespace { ...

Regular expression to replace all ../../ with / URLs to be used in visual studio

I've recently inherited a site created in Dreamweaver where all URLs use the 'up one level' notation e.g. "../products/" and I would like to do a global find and replace with root path e.g. "/products/". What's the regular expression I need to use in the Visual Studio Find & Replace Dialog to replace the following matches: "../../../pr...