visual-studio-2008

How do I enable the SSE3/SSE4.1 instruction set in Visual Studio 2008?

I tried to follow: Project > Properties > Configuration Properties > C/C++ > Code Generation > Enable Enhanced Instruction Set But the only options I got were - SSE or SSE2. Thanks. ...

VS2008 project with Entity Framework model results in "always dirty" compile

In VS 2008, I have a simple .csproj that contains an Entity Framework .edmx (V1) file. Every time I build the project, the output DLL is updated, even though nothing has changed. I have reproduced this in the simplest-possible project (containing one ordinary .cs file and one edmx model). If I remove the edmx model and build repeatedl...

DBNull values on an ASP.NET MVC view

I am writing a simple ASP.NET MVC web app. At this point, I am just trying to display a strongly typed DataSet on the automatically generated view. However, some of the values in the DataSet are null and cause exceptions. I am wondering how this simple scenario is handled by others. It seems excessive to sanitize all the values in the ...

What is the difference between Visual Studio and Expression Studio?

I have visual Studio 2008. I have noticed that I cam make WPF applications with Visual Studio. Does this mean that it can do the work that Expression Studio does? I am going to install Visual Studio 2010. Does this do away with the necessity of Expression Studio? ...

Are Visio-Like WPF GUI's possible?

I want to create buttons and displays in WPF that look something like the Visio Flow Chart displays. Are there classes for that? ...

Visual Studio 2008 Unit test does not pick up code changes unless I build the entire solution

Here's the scenario: Change my code: Change my unit test for that code With the cursor inside the unit test class/method, invoke VS2008's "Run tests in current context" command The visual studio "Output" window indicates that the code dll and the test dll both successfully build (in that order) The problem is however, that the unit t...

VS2008 C++ MFC Access Violation ONLY when stepping through debug mode

Hi. This is crazy. It started happening in my main project, so I created a tiny sample brand-new project to reproduce it in and sure enough.. It does NOT happen in a sample project I created that is only a Win32 console app. I'm running this on Win7x64, if that matters. VS2008 SP1. Here goes. I create a small dialog app with a button...

Is there a programmatic way to determine whether the file is being used?

Case and point: I need to open an Excel file via Interop and it would help a lot to avoid ugly COM errors if I knew that the file was in use. Other than trying to open the file and catching the exception, is there a programmatic way to determine whether the file is in use? ...

C#: standard Windows menu bars in Windows Forms

I noticed that adding a MenuStrip (from the VS Toolbox) to my form design doesn't yield a menu bar like many native Windows applications. Instead I get a menu bar like VS's own. None of the style settings for MenuStrip appear to mimic the much more common native menu bar. Is there a way to add a menu bar to my Windows Forms application ...

Visual Studio Web Development - General Question?

Hi, I like using Visual Basic for C++. I'm a student I noticed the web development feature in it, and I was wondering if it is any good for web design, maybe if someone has used it or does use it if they can give a few words on weather or not it's worth learning? I have been using Dreamweaver as my platform for web design. So pretty...

How to write own DLL in Visual Studio, C language (not C++)

Dear all, I'm trying to create my own DLL... I used wizzard in VS2008 to create template for DLL. This works fine and the dll builds successfully (Test.dll is created). BUT, when I rename the file from Test.cpp to Test.c (which I guess causes compilation in C-mode), solution rebuilds also successfully, but no .dll is created. The list ...

How to get the MSI Product version Programatically in C#

Is the MSI Product Version available to the application? I have tried, Assembly.GetExecutingAssembly().GetName().Version, but it gives me the assembly version which is a different from what I want. I can edit this value in the appropriate place, but it would be convenient if I could just show the Version Number from MSI installer. Ano...

What is the best way to bookmark positions in code in Visual Studio 2008/2010?

I find myself going to about five or six main places in my code 80% of the time and would like a way to go to them fast even if all files are closed. I would like to be able to open up a solution in visual studio and with no file open, see a list of self-labeled bookmarks like this: LoadNext Settings page refresh app.config connection...

Screen Resolution Question? VS2008 - C++/CLI?

Hi, I have a program that has a SIZE of 800x600. I want to make this program expand if it is maximized, so that all the elements(buttons, picturebox's) change size to fit the new ratio depending on the users windows screen resolution. The way I am thinking to approach this is to take the users screen resolution and manual change the ...

Editing code in Visual Studio 2008 in debug mode

I am curious to know if there is a way to edit code in C# VS 2008 right when it has hit a breakpoint and I am walking thru the code... can I modify the code (such as the value in a variable or if my stepthrough line is about to hit an if statement ... can I modify the if statement....etc)? So far, I have to stop running VS, modify the co...

Missing Status Bar in Visual Studio?

Note: This question and answer is a full copy from Kelly Brownsbergers Blog. I do post it as a convenience to others. From time to time, my status bar disappears. I used to believe this was due to a botched install or add-in. I recently upgraded to Team System Test Edition, and my status bar again disappeared. For the last few weeks ...

Schema compare with MS Data Tools in VS2008

When performing a schema compare having db_owner rights on the target database results in the following error: The user does not have permission to perform this action. Using the SQL Server Profiler I figured out this error occurs executing a query targeting the master db view: [sys].[dm_database_encryption_keys] While specificall...

Calendar control not properly passing date as input parm to stored procedure needed by Crystal Reports

I am trying to display an existing Crystal Report in my ASP webpage. Report uses a SQL Server stored procedure which expects an input parameter that's a date. I'm using C# with Visual Studio 2008. The code below works but has a problem. When the report first appears it has a default date selected which is fine. I select May 28, 2010 an...

allowDefinition='MachineToApplication'

Hi, I was working on a Silverlight + WCF application. One fine day when I opened the website in Visual Studio 2008, it gave me an error: "Error 99 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an ...

Cannot attach to a service in VS 2008

I have created a service in VS 2008 called EmailReader. I have compiled, installed and started the service. Its timer loop is writing records to a log file, so I can see that it is running. I am trying to attach to it in VS 2008, but the process name is greyed out in the list of available processes, and the name is "EmailReader.vshost.ex...