visual-studio-2008

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. ...

How to upload Only Excel file using RegularExpressionValidator?

i need to control Only ExcelFile uploading with RegularExpressionValidator How can i do that? i need to write a regex pattern in ValidationExpression... <h3>FileUpload Test</h3> <div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button id="UploadBtn" Text="Upload File" OnClick="UploadBtn_Click" runat="ser...

Avoid stepping into c++ std header files in Visual Studio 2008 Debugger

Possible Duplicate: Is there a way to automatically avoiding stepping into certain functions in Visual Studio? Good Morning, I'm looking for a way to tell the debugger to avoid stepping into some header files that are of no interest to me when debugging my code. Example: When I have a std::string as a parameter of a function...

Can I make the VS debugger print a log message when reaching a line?

Sometimes I don't want to break on reaching a line. I just want a message to be printed. Let's call it a logpoint by analogy with breakpoints. I want an output format similar to this: [Debugging] Foo.PerformCycle(): 15 [Debugging] Button.Repaint(): 1 Meaning that first I hit a logpoint on line 15 of method Foo.PerformCycle(), th...

win ver not define

I am using vc++ in windows 7. I want to change default version from #define 0x00600 to #define 0x00601. But again give message winver not define and cant open. ...

Jabber-Net release build fails to connect to XMPP Server

I downloaded jabber-net source from http://code.google.com/p/jabber-net/. Open the .sln file (2005-jabber-net.sln) in VS 2005/08, set "2005-Example" as active project, build it in Debug mode, connect to a XMPP Server, after connect() method is called, the callback jc_OnAuthenticate() gets called which means the application is connected t...

usb windriver API

sample code of reading data from usb port in C#.net by windriver API ...

windows 7, visual studio 2008, winforms program installer problems

windows 7, visual studio 2008, trying to install created windorms program (created on xp maxchine), but get installer problems when trying to install the program on any windows 7 machine 64-bit or 32-bit. when i try to install the packaged program it says that the install is incorrect and then crashes, so that i cant run the made progra...

Visual studio refactoring a property of a viewmodel does not reflect in the View?

I have a simple ViewModel class like public class TestViewModel { public String Information { get; set; } } My View inherits from it and I got Intellisense kicking in. So far so good. I have written these for tests in the View: <%= Html.Encode(Model.Information) %> -- <%= Html.Label("Information") %> -- <%= Html.LabelFor(m => m....

Converting VS2008 to VS2010 project "cannot find the file specified"

Hello, I am trying to upgrade a Visual C++ 2008 project to a Visual C++ 2010 project. However, when I attempt to do so, I receive the following error: The following error has occurred during XML parsing: File: C:\Documents and Settings\t-aruns\Documents\Visual Studio 2008\Projects\test\test\test.vcproj Line: 9 Column: 2 Error Message: ...

Cruise Control on windows with visual studio 2008 problem in compilation of assembly

I'm receving this error in Cruise Control: error xpto.cs(8,7): error CS0246: The type or namespace name 'xpto' could not be found (are you missing a using directive or an assembly reference?) After build my project. What I need to solve that? ...

How can I extract all classes into separate file?

I'm using the Resharper trial and VS2008. Is it possible to extract all classes from one file into a separate file? I'm able to do this using Resharper but it only seems to work for individual classes. This is to be used on a file that was auto-generated that is 65,000 lines long. ...

Visual Studio 2008 and 2010 for one ASP.NET-MVC-2 project?

I recently joined a team that is working on a ASP.NET MVC project.. they are all working on visual studio 2008 but i have VS 2010 on my machine... I am going to suggest we all upgrade to asp.net MVC 2 but my question is Will they have to also upgrade to VS 2010 or will a simple install of MVC 2 be enough for all of us to work on the sam...

Debugger stops working and stops showing active processes

I am trying to debug a web app, and am having some rather odd issues with VS. First thing I do is attach to the w3wp process and set break points in code that DOES execute. The thing is, none of the break points are hit. Thinking that I must have done something wrong, I stopped the debugger and when I went to reattach, only 6 of my 54...

Inline speed and compiler optimization

Hey guys, I'm doing a bit of hands on research surrounding the speed benefits of making a function inline. I don't have the book with me, but one text I was reading, was suggesting a fairly large overhead cost to making function calls; and when ever executable size is either negligible, or can be spared, a function should be declared inl...

How do I create an x64 platform solution in visual studio when the configuration manager does not list x64 as an option?

I am currently converting some visual studio solutions from Win32 to x64 and I am unable to find the x64 option in configuration manager for some solution files. Other solutions list x64 and work as expected. The output for each of these solutions is a windows dll files. Is there a reason why Visual Studio will provide x64 as an option ...

Confused about resources in a .NET project

I am trying to remove a massive amount of cruft from a .NET 3.5, VS2008 project and I am somewhat confused as to what gets compiled into an EXE and what isn't. So for instance, if I double click on my Resources.Resx file, i get the following: As you can see it states that this bitmap is "Linked at compile time". However, when I go t...

Target header and footer Content Controls in Word 2007

I'm trying to edit a .docx header through Word Automation. If the Content Controls are placed in the body of the text there is no problem, but if the content controls are in the header or footer I'm not able to target them. Is there any way of targetting Content Controls in the header or footer (using Visual Studio 2008 Express)? ...

Visual Studio 2008 Tweaks

Possible Duplicate: Hidden Features of Visual Studio (2005-2008)? Please share tweaks, tips and tricks that you know for Visual Studio 2008. ...

Debugging both .net and stored procedure in VS 2008 together

I know we can debug the stored procedures in Visual Studio but is it possible to debug the .NET code and Stored Procedures together? I mean if my .NET code calls a stored procedure, whether my debugger will still continue with the stored procedure step by step. ...