visual-studio-2008

C#: comctl32.dll version 6 in debugger

I'm using the WindowsAPICodePack for TaskDialog. When I try to show the dialog it says that it needs to load version 6 of comctl32.dll. So I added version 6 to the app.manifest and tried running it. Still no luck. I went to the Debug folder and ran the program without Visual Studio and it works fine. I'm guessing that Visual Studio isn't...

Hyperactive Errors Window in VS 2008

My Errors window in VS 2008 keeps popping up out of dock, or stealing focus while I'm editing HTML/ASPX. Is there any remedy for this before I break something? ...

Revert exception specifications behavior under VC++ 9.0

Hello everyone, I'm working on old code that relies heavily on the exception specifications behavior described in the language standard. Namely, calls to std::unexpected() on exception specification violations of the form described below. foo() throw(T) { /*...*/ } Nothrow specifications are indeed guaranteed to not throw, but throw(...

Resetting Visual Studio c++ project's settings

I changed some parameters and now I don't remember how to "go back". I'd like to know if it's possible to reset the build settings. I don't mean the IDE settings(on tools->import/export). Thanks ...

How do optimization options work in VSC++ 2008?

I'd like to know which settings should I set so I can get my C++ programs code to be as optimized as possible for speed or size. How can I do that? Thanks ...

C# 2008 Express Edition Increasing the font size

Hello, I have just installed C# 2008 Express Edition 2008 and started writing code. My mom being too concerned about the time I spend programming is worried about the font size :-). Is there anyway, that I can increase the size of font so that I can do programming in a larger font size in C# 2008? ...

Memory and Register panels in Visual Studio 2008 missing

When I still had VS2005 there were a Memory and a Register panel available while debugging C/C++ projects. I think they could be activated from the Debug menu, I'm not sure anymore. The problem is that in VS2008 (Pro) I can't find them nowhere. I thought that it may be some corruption of the program files, but after installing Win7 and a...

Obfuscating Setup package content

I have a multi-project Visual Studio 2008 solution. I would like to obfuscate some of the project outputs before they are built into the Setup file using Dotfuscator. So I would like to be able to: Be able to select what to obfuscate Create a Setup package that contains the already obfuscated code Verify if the obfuscation was a succ...

How can I use MSBuild to export another project as a Visual Studio template project?

Here's what I'm trying to achieve. I have a number of projects in C# and VB which I wish to export as template projects as part of my automated build process. Exporting templates is easy to do interactively, but I need to do it as part of my automated build process. Further, the template projects must actually be built prior to exporting...

LINQ Query Returning No Value

Hi guys. I'm currently trying to run a LINQ query over a MS SQL database. This is what I have done. I can see the database, the table, and the data inside if i want to via the Server Explorer. I've created a new DataSet automatically from "Add new item..". I've then dragged the table from the server explorer into the designer view of...

WiX - Create MSI using msbuild

Hi I have a Wix (Voteva) Visual Studio project which creates an MSI from my WiX file. I want to integrate this into our continuous integration by putting into an msbuild script. Reading the project source file did not help and could not find any clear info from google. How do I create an MSI using a WiX (wsx) script from an MSBuild sc...

How to (visual studio 2008 / Resharper) refactor / automate mixin pattern

Hi, I have Visual Studio 2008 with Resharper, does anyone know if there is any refactorings available that let you say create a class and use a member variable as a mixin? As a basic example, alot of the time you might want to implement a particular interface and use 95% of the underlying code of an already existing object (such as a ...

using excel sheet as DB (datasource with connection string)

I have the following database defined in app.config now: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\table.mdb can I use excel instead as datasource there? are there any limits if I use excel file, the database is simple 300 rows, and it would be more handy to use excel file. does excel need to be readonly? ...

Don't stop debugger at THAT exception when it's thrown and caught

In tools/exceptions, I've set the option that the debugger stops when an exception is thrown. Whether it is caught or not . How do I exclude an exception of that rule? Somewhere in my code there is a caught exception that is part of the program logic. So I obviously don't want that exception to stop the debugger each time it is hit. E...

Not able to find "Use Custom Web Server"

I just installed Windows 7 on my development machine, along with Visual Studio 2008. Everything works fine, except for one thing - I have lost my "Use Custom Web Server" setting! What am I missing? :| Action shot: http://i28.tinypic.com/5l2re1.png ...

How to add exe of WPF app to Start->Programs

Hi, I have created an exe of the WPF UI application, using Setup project in the VS 2008 application. I have generated exe's and msi's in DEBUG and RELEASE mode. I am able to install the application too. But, how can I have the shortcut of it in Start-> Programs ?? Any option to be provided while creating exe in DEBUG r RELEASE mode? ...

Visual Studio Custom Project Template

Hi All, I have created a Custom C# Project Template for Visual Studio 2008. It works perfect. Only issue is that i have to place the zip file for the project template under the "C:\Documents and Settings\\My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#" Now as this folder is specific to each user on the machine, I wil...

Drnamics CRM - Add on - Checking if entity exists

Hi, I'm working on a project started by someone else, and trying to fix a few bugs. There is a custom entity that contains a list of entities to process. However it a custom entity is removed and the list is not updated there is an error thrown. I would like to add a check that ensures that each entity that is processed is checked to...

Accessing an array with a negative number!

I am converting an extremely large and very old (25 years!) program from C to C++. In it there are many (very very many) places where I access a global one dimensional UBYTE array using a variety of integer indexes. Occasionally this index may be negative. I sometimes, but not always, trapped this case and made sure nothing went wrong,...

Will deploying applications written in VS2005 break with applications in VS2008?

We have several applications written in Visual Studio 2005 that are deployed onto our servers. If we deploy applications written in Visual Studio 2008 on the same server will it cause DLL conflicts? We want to ensure that upgrading our version of Visual Studios will not break existing applications. Thank you. ...