visual-studio

visual studio 2003 custom build of c++ header and subsequent build dependencies

I have a visual studio 2003 project that uses a custom build step to create a pair of .h and .cpp files. The .h and .cpp files are in the project as is a .proto file that has the custom build step. The problem is that although the .h and cpp files are generated whenever the .proto file is changed other cpp files that depend on the .h fil...

Numerical precision differences between VS6 and VS2008 using C++ ?

I've been working on porting a legacy project from Visual Studio 6 to 2008. After jumping a few hurdles I now have the new project building and executing. However, I've noticed that the output from the two versions of the program are very slightly different, as though the floating-point calculations are not equivalent, despite the fact...

Reference third party dll in Visual Studio 2010 gives original dll path?

I'd like to add a third party dll from Blend 4 to my source control, so taht I don't have to install Blend (or perhaps just til SDK) on my TFS Build server, in order to have a succesfull build. I've copied the dll (Microsoft.Expression.Interactions.dll) from C:\Program Files (x86)\Microsoft SDKs\Expression\Blend.NETFramework\v4.0\Librar...

Is there any way of create or altering VS Keyboard shortcuts

Hi, I have recently installed Reshaper....this is very good and helpful however it has changed all my keyboard shortcuts e.g. to comment out code it was ctrl+e then c, now it is ctrl+k then c.....this is a pain given that I have got myself into a natural swing of using all the shortcuts and now I have to think everytime I want to use th...

editing xml using GridView

I have the following xml <?xml version="1.0" ?> <Persons> <Person> <Id>1</Id> <Name>someone</Name> </Person> <Person> <Id>2</Id> <Name>someone2</Name> </Person> </Persons> and the following xsl file for it <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas...

VB.NET version of Silverlight Business Application template won't compile

I just installed the latest Silverlight 4 developer bits using the Web Platform Installer. I tried to start a new "Silverlight Business Application" project in VB.NET, but the project won't compile out of the box. For example, I get an error message to replace WebContext with WebClient. What might be the problem with the Silverlight B...

Developing in Visual Studio 2010 with the new IIS Express web server?

Although this question isn't directly about code it's related to programming and seems better put here than, say, serverfault or superuser. -- I'm a developer with Visual Studio 2010. Microsoft's newest web server offering for developers is IIS Express. ScottGu indicated this combination is workable: IIS Express will work with VS 2...

visual studio using old xap

I am debugging my silverlight application. This application reads an xml file to draw some stuff. Everytime I change my xml file, refreshing the page does not display the new results. I have to get back to visual studio and hit Ctrl+F5. I have added random query string in my xap url <param name="source" value="ClientBin/SilverlightOrg...

Custom Control and Application in Same Project

I want to create a custom control in C# which I will use multiple times in my application, but will not likely use in any other applications. I have seen several websites which explain how to create a custom control and add it to the Visual Studio toolbox. They instruct you to create a project with the custom control which compiles to ...

How can I restrict the file type in the file browse menu of an AsyncFileUpload in the ASP.NET AJAX Control Toolkit

I would like to restrict what they see in the file upload dialog, which is set to "All Files" by default. I understand how to validate that they only uploaded a certain file type, that is not the question here. I would just like to know how to default the file type in the file selection dialog. Is there any way to change this to "PNG on...

In a Microsoft Visual Studio solution is there a way to set up conditional start-up projects based on configuration?

Background: I have a set-up where I have two .csproj in a solution that use different reference .dlls. Both projects are directed toward the same source code. To avoid any segments of code where methods have changed, I created a custom configuration (in addition to the default Debug and Release configurations) and swapped between code ...

Automatically changing the toolbars and windows shown in different views in VS 2008

Is there a way to get Visual Studio 2008 to automatically change the the tool windows shown when changing from view to view? Say i'm in the Code view, i may want the Solution Explorer and the Class View windows, but not the properties window. When i switch to Design view, i don't want the Solution Explorer or the Class view, but i want ...

Generate Local Resource for all pages

Hi Is There Any Way or trick to generate local resource for all pages in visual studio 2010 automatically? I have about 500 pages and UserControls. its hard to generate resource for every page one by one. is there Any Add on or extension for this? shaahin. ...

How to include version number in VS Setup Project output filename

Is there a way to include the version number as part of the output.msi filename in a VS2008 Setup Project? I'd like for example an output file called: "myinstaller-1.0.13.msi" where the version part is automatically set based on the version number I have put in the deployment project properties. ...

Refactor namespace in Visual Studio

I have a class in a namespace that I've used extensively throughout my solution. As the number of classes in this namespace has grown I realize that it would've been a better design decision to place this class (and a few others) into a sub-namespace. Is there any easy way to do this in Visual Studio(C#)? I'm thinking something like th...

DLL loading with hardlink

I am trying to devise a method which helps to load DLL from a common location for various products. This helps the following directory structure to avoid file replication. INNSTALLDIR/Product1/bin INNSTALLDIR/Product2/bin .. INNSTALLDIR/ProductN/bin> Instead of replicating DLLs in each product's bin directory above, I can cre...

Error Message in Visual Studio

I am getting the following error message when i press on the Start Debugging button: "There were deployment errors. Continue ?" Any idea why this error message is showing ? ...

Visual C++: Difference between Start with/without debugging in Release mode

What is the difference between Start Debugging (F5) and Start without Debugging (Ctrl-F5) when the code is compiled in Release mode? I am seeing that Ctrl-F5 is 10x faster than F5 for some C++ code. If I am not wrong, the debugger is attached to the executing process for F5 and it is not for Ctrl-F5. Since this is Release mode, the comp...

Deployment project uninstall - deleting files?

Hello! I have a project and deployment project that installs it. The software installed generates several files on the target PC (while used by the user). I was wondering if there was a way to instruct the Deployment Project to delete those files when uninstalling? All the files are in the users Application Data folder. Can I instruct ...

error while executing Update query in the asp.net

I have used a class in which i have this update query for Payment Fees of a student whose Unique ID is UID and an Account ID is used for him i.e. AccId public string updatePays(string UID,int AccId,float hostel,float book,float exam,float reval,float studentDevelop,float misc,float reregistration,float late,float dues,float arrear,float...