visual-studio-2008

Visual Studio 2008 debugger not catching exceptions

I'm working in a new VS2008 installation with an ASP.NET web application project, and for some reason it's not catching exceptions at all. Where I used to get the helpful little green popup in the IDE notifying me of an unhandled exceptions and allowing me to examine the values of local variables etc., it now goes straight to the Yellow ...

Excel automation. How to copy more than one cell?

For instance: //omitted vector<_bstr_t> cellData; Excel::_WorksheetPtr pSheet = application->ActiveSheet; Excel::RangePtr pRange = application->Cells; _bstr_t cellValue = pRange->Item[1][1]; //single cell cellData.push_back(cellValue); //omitted Without: MFC ATL Question: How to copy, multiple cells, for instance A1:B1, ...

Odd problem unit testing internal classes with VS 2008

I'm starting a project which is broken up over multiple VS projects and I was planning on having separate testing projects for each of the projects, so I'd have a solution like this: Project1 Project1.Test Project2 Project2.Test There are some internal classes which I want to have tested. So I used Visual Studio 2008 (SP1) to generat...

Using new MS C++ compiler with old Visual Studio

I want to use a recent MS C++ compiler (I need TR1) with old IDE (Visual C 6.0). I heard that I can download free command line MS C++ compiler only. Is it possible? Can I use new compiler with old IDE? If so what additional problems may arise? I want to keep VS6 cause I'm familiar with it. I want to use MS implementation of TR1 cause I ...

Visual Studio 2008 Build Dependency Chain

I am having an issue with Visual Studio 2008 SP1. Basically, I have a .NET 3.5 solution with a client, shared and server component. While coding, all components run on the same box, but in production the server component is a standalone (remoting) service running on a separate server. I would expect that a change to the client component...

Cannot add App_Code folder to WebSite project

Using VS2008, I am trying to add an App_Code folder from add-->folder-->Add ASP_NET folder. The App_Code folder option is there as expected BUT ... it's disabled!? I am pretty sure I am working with a WebSite project (and not a Web Application) because I can add all the other ASP_NET folders (App_Data - App_themes etc) and also because...

Pass more than one argument to CreateThread

Question: How to pass specifically two arguments to CreateThread, when: Argument one, of type SOCKET Argument two, an interface pointer: _COM_SMARTPTR_TYPEDEF(Range, __uuidof(Range)); RangePtr pRange; //pass pRange Suggestions: For interface pointer, using CoMarshalInterThreadInterfaceInStream, accordingly, ...

How do you insert new entries into an Access db table through an ASP.net website?

I need to insert new records into an Access database. I'm using Visual Studio 2008 and firstly create a asp.net website. I can connect to the information in Access databse using dataview or gridview and can query a particular entry (ie. Proposal No. -brings up all details linking to that proposal). I can then edit the details of that pr...

WHY is - 'GENERATE INSERT UPDATE AND SELECT STATEMENT' greyed out?

Why in the ADVANCE section when I 'configure data source' is the 'GENERATE INSERT UPDATE AND SELECT STATEMENT' greyed out? On some tables it isn't greyed out and works fine. I know that a way around this can be achieved by changing the autogenerateeditbutton tag to true in properties and you can edit this way - but when this is done t...

Visual Studio setup and deployment: create package with optional components?

Let's say, for example, my application supports Epson printers and Canon printers. I would like to have an option during installation, maybe radio buttons or, better, checkboxes (to have an option to choose both) that would say 'Install Epson drivers' and 'Install Canon drivers'. Then, based on user selection, the setup package would ...

Need a good example of LinqDataSource in code, not markup

Anyone have a good example of setting up a LinqDataSource entirely in code? I don't need help writing the LINQ query. I just need help setting up the flow of the code. The reason I want to do it in code is because the complexity of the query I need goes beyond the capabilities of the LinqDataSource wizard. ...

How do I include System.Windows.Shapes?

Hi, I am using Visual Studio 2008 with the .NET Framework (v3.5). I cannot seem to use System.Windows.Shapes, or anything System.Windows.* besides Forms. Here is the link to the class description: System.Windows.Shapes (MSDN Library) Is there some special thing I need to do to use it? I checked in all of the framework folders, an...

How to change the title bar text of Visual Studio

We work on several different branches of the same code, and when working on two branches at once, it can become confusing and time wasting. Presently, the VS title bar has the text <solution-name> - Visual Studio. Is it possible for me to write an extension that will make that text <solution-name>: <branch-name> - <Visual Studio>? ...

Using Powershell to achive post build in VS based on assembly platform

I am trying to use Powershell to achive post build in Visual studio. I want to copy the appropriate dlls to the appropriate directories after the build based on the platform to which the assembly is targetted (i.e. x86 or x64). Does anyone know how to achieve this? ...

Update SINGLE field of a table in Access db.

How do you update a single field in an Access database using an asp.net website in VisualStudio08. Assuming that the connection has been established, give step to step instructions of what to do in the design view. ...

TFS won't allow folder rename, claims that there are locks

In visual studio 2008, I want to rename a folder due to a typo in the name. I rename it in the solution structure. The folder and .CSProj files are now checked out, and I check in. TFS comes back with "Microsoft Visual studio cannot perform the source control operation at this time because some of the files involved in the operation are...

send(), returns Winsock Error 10038

Problem: Call to send(), returns Winsock Error 10038 against socket handle Illustration: acceptedSocket = accept (server, (sockaddr *)&sin, &len); accept(), returns 0 A new thread, is created for each connection send(), (in thread function) returns 10038 Illustration: - in thread function //omitted SOCKET RemoteSocket = (SOC...

How can an add-in detect when a solution is loaded?

How can my add-in detect when a solution is loaded? I know there must be some event somewhere in the DTE model, but I can't find it. My add-in loads when Visual Studio loads, but it depends on a solution being open. I don't want to make it a solution add-in until MS loses their sick fixation on COM, as solution add-ins have to be COM ...

Error Compiling Program in Visual Studio 2008

So I have never seen this issue before and don't know where to begin troubleshooting the issue. Cannot register assembly "obj\Debug\MyProject.Vsto.dll". Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) Where do I start to troubleshoot this? I should mention this...

Nested Linq crashes intellisense

Currently I'm using Visual Studio 2008 (SP1) and developing some code that uses nested LINQ statements. How ever with every level of nesting the intellisense performance drops considerably to the point where it become unusable. Has anyone else experienced something similar or found a solution to this problem? Cheers for any help Tony ...