visual-studio-2008

Namespace loop or code leak in boost::function ?

I'm really baffled by this. Have I managed to do something to cause this, or is it an unclosed namespace block in boost, or some bug in VS c++ 2008? I'm definitely sure I've closed all my own namespaces properly, all includes are outside of and above them, and all my header files got include guards. The boost/function.hpp is only incl...

jQuery UI intellisense?

I have been using (and loving) the jQuery intellisense for Visual Studio 2008 (blogged about by Scott Guthrie here) but has any one ever come across an intellisense script for the UI components of jQuery? Thanks! ...

Strange exception handling practice

I have seen code like this (actually seeing another person type it up): catch (Exception ex) { string exception = ex.ToString(); } Is this code bad? If so, why? There is an appropriate "chain of catch handlers (eg more specific one above, filtering down to general catch all Exception, but in the string conversion of the Exception,...

Event for Text Selection in VS2008

I am writing an addin for Visual Studio 2008. I need to know when some text (code) is selected in Text Editor. I have not been able to find any events for that. For example, when somebody selects some code using mouse or keyboard in the class file, how can I get notified that some text/code has been selected? Thanks in advance for your ...

Precompiling asp.net solutions for deployment

I'm using aspnet_compiler.exe to precompile my application for deployment. However, I don't think it's working, for two reasons: I see my applications assemblies under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, even if i manually clear out this directory & restart the app. The performance hit to JIT the app...

Crystal Reports Merge Module for Visual Studio 2008

Visual Studio 2008 did not include Merge Modules for Crystal Reports. This means that if you upgraded your Windows Forms application from 2005 to 2008 the reporting application would no longer work on client machines. There are a number of conflicting reports over the web about the status of this - whether a merge module will be or has ...

Creating several files at once in Visual Studio 2008

In Microsoft Visual Studio 6.0, you could create several files at once by spacing them with double quotes in the "Add files to project" dialog: "Class1.h" "Class1.cpp" "Class2.h" "Class2.cpp" It seems they have removed that functionality since 2003. Now, for every file I want to create, I have to select the file type I want, then name...

How would you store tabular constant Data in your C# project?

I am currently writing a plugin to a CAD style software. The plugin does calculations based on data read from the CAD model and a lot of table lookups (think printed tables in a calculation guide). I inherited this plugin and the current solution defines a class Constant which has a bunch of static struct members and two-dimensional arra...

Watch windows not updating correctly when debugging C++/CLI 2D arrays

I'm debugging a C++/CLI assembly. In the assembly, I have a 2D managed array declared like this: array<char, 2> ^classifications; I have four variables I'm using to access positions in the array: int x, y, dx, dy; In the Watch window, this expression works: classifications[y, x] However, this expression does not update when the...

How to disable visual basic errors in the error list in visual studio

I have a large solution which contains a mixture of C# and VB.Net projects. If I get compilation errors because a project which several other projects depend upon fails to build, it is very hard to see the actual error(s) because of the number of VB errors in the error list window in Visual Studio. C# errors found in the projects I comp...

How to debug a referenced dll

My question concerns with Visual Studio 2008, although I suppose it should be that same in VS2005 I have two solutions in my workspace, say A and B. Solution A is an older project which I finished coding some time ago. In solution B, I need to use some classes from Solution A. To do so, I add a reference to the dll of one of the proje...

Why does Visual Studio copy system assemblies to output folder?

I'm using Visual Studio 2008 SP1 and have an interesting problem. When I build my project System.Trasactions.dll gets copied into output folder (/web/bin). I have actually two questions. First is Why does Visual Studio copy the file into output folder even when it's not referenced from my project? My project has references to other as...

Error while using Boost with Visual Studio 2008

I am using Boost with Visual Studio 2008 and I have put the path to boost directory in configuration for the project in C++/General/"Additional Include Directories" and in Linker/General/"Additional Library Directories". (as it says here: http://www.boost.org/doc/libs/1_36_0/more/getting_started/windows.html#build-from-the-visual-studio-...

Converting Solution from Visual Studio 2005 to 2008

We're considering converting a large solution from 2005 to 2008, but want to make sure that we don't hit any unforeseen issues. What are the things that we should be looking out for? Are we going to need to retest the entire project? Thanks! ...

Connecting To SQL Server DB Using VS2008

I am using VS2008, and usually I'll develop my sites from the App_Data folder and then just upload the whole site to the server. Now I have a site and the SQL DB is running on the server already (Not in the App_Data folder , I use SQL Studio Mgement to connect to it and edit), so instead making the changes to the local DB and then again...

inserting c# generated image on excel sheet

hi, i have a bitmap generated from c# code (not a file!) which i want to insert on an excel worksheet... plz can you show me how is it possible ...

Using ILDASM with Visual Studio 2008

I just installed Visual Studio 2008, and am looking to use the Microsoft Intermediate Language Disassembler (ILDASM.exe) to look at some DLLs. Problem is, "ildasm" is not recognized on the command line, and I cannot find ildasm.exe anywhere in my VS 2008 install directory (e.g. c:\programs\Visual_Studio_9.0\). Any ideas? UPDATE: Found...

Adding resources to a Visual C++/CLI mixed DLL

I'm writing a mixed C++/CLI DLL with both managed and unmanaged classes. Both need access to string and other types of resources, like Direct3D textures. How best to embed them within the DLL? It seems like there are several ways to do this; .resx (new style, managed), .rc (old style) which can be used to generate .resources files and (...

Change the default templates for a project?

I believe I've seen a demonstration of this somewhere but I can't remember where. I'd like to change a couple of the "Add New Item" templates for the project I'm working on. Also I'd like to include these changes in source control alongside the project so that anyone else who works on the project gets the same templates. Anyone know how...

.mdf created in Visual Studio

Hi, my colleague created .mdf and .ldf files from Visual Studio. Now, I'm trying to access the file in SQL Server. There seems to be a problem with this. Can anybody tell me what edition of SQL Server must I have on my Windows Vista 32-bit, so I can access this database. Thanks in advance. :) ...