visual-studio

manually finding the size of a block of text (ASCII format)

Is there an easy way to manually (ie. not through code) find the size (in bytes, KB, etc) of a block of selected text? Currently I am taking the text, cutting/pasting into a new text document, saving it, then clicking "properties" to get an estimate of the size. I am developing mainly in visual studio 2008 but I need any sort of simple ...

Adding Visual Studio Project references to SVN

I checked in a project to SVN with about 15 references from one dev box then checked out the same project on a second dev box but most of the reference files are missing. Is it possible to checkin the reference files automatically? ...

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

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

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

Bug in Visual Studio C++ compiler?

This code behaves weird in MS Visual Studio: char *s = "hello"; s[0] = 'a'; printf(s); In release build with optimization turned on it ignores s[0] = 'a' and prints "hello". Without optimization or in debug build it crashes with access violation. Is this behavior is c++ standard compliant or no? In my opinion, compiler should only all...

Are things like "afx_msg" decorators still used by VS/MFC?

I'm working on an MFC program that started way back in the VC6 days. Back then there was a class wizard that used a bunch of decorators and markup in comments to parse class files. For example, it would insert afx_msg in front of message handlers that it maintained. It would mark a block of code with //{{AFX_MSG_MAP(TheApp) and /}}AFX_M...

Visual Studio: ContextSwitchDeadlock

I have been getting an error message that I can't resolve. It originates from Visual Studio or the debugger. I'm not sure whether the ultimate error condition is in VS, the debugger, my program, or the database. This is a Windows app. Not a web app. First message from VS is a popup box saying: "No symbols are loaded for any call stack...

Function Imports in Entity Model with a non-Entity Return Type

I have a stored procedure in my Entity Data Model and added it to the function imports. Problem is ... Visual Studio generates the function code in the model's code-behind if and only if I specify the return to be an entity type. Scalar and null return types do not work. Visual Studio does not generate the function code when I choose ...

Assign Mouse Buttons in Visual Studio 2008

Does anyone know how to bind extra mouse buttons to commands in visual studio 2008? There used to be a "powertoy" that let you do it for visual studio 2003, but I can't find an equivalent for 2008. ...

Tips and tricks for VS2005 specifically for C# developers

Hello, Let's get the duplication allegation out of the way. I saw couple of variations of this question, notably, link. However, it doesn't address issue specific to C# developers. I want to collect a list most used/powerful/cool tricks--tips in VS from people who are using C# under visual studio 2005 (it's ok to mention for 2008 as w...

Build Visual Studio Projects from Jamfiles?

Anyone know of a way to create Visual Studio Projects from a build based on Jamfiles? I'd settle for a jamfile -> XML-or-some-other-intermediate-format exporter tool, so I could write my own. ...

How might I determine the number of lines of code in a C++ project?

Is there a quick way, in Visual Studio, to know how many lines of code exist in a project? ...

Only OnConnection fires in Visual Studio add-in

I'm busy with a small, simple add-in, but the process seems massively complicated and badly documented. Right now, the only event that fires in the add-in is OnConnection. The other two I'm trying to handle just don't seem to exist. private DTE2 applicationObject; private SolutionEvents solutionEvents; public void OnConnecti...

Problem with Class wizard in VC++ express edition

I'm just getting started with Visual C++ but I've run into a brick wall. I'm trying to make a new class, so I right-click on my project, Add|Class, C++ class, and call it "piece". This creates "piece.h" and "piece.cpp". So far so good. When I try to include "piece.h" in my main.cpp file however, when I compile I get fatal error C1083: ...

POLL: What do you call your business layer base namespace?

I have a simple solution with the following projects as follows (base namespaces match the project name)... MyCompany.MyProduct.BusinessLayer MyCompany.MyProduct.Web.Service MyCompany.MyProduct.Web.Site I'm just trying to find a better name for BusinessLayer, I just don't really like it for some reason. So my question is what do you ca...

Graphically template a .NET winforms application

I created a pretty fancy winforms app for my company. We had a graphic designer create the GUI, which was a pain to implement, all graphical buttons, lots of layered backgrounds and logos, animations, etc. But now my company wants to resell it under different brands. But since I mostly coded it well, I told my higher ups I could have ...

Best unix/linux C++ debuger/IDE ?

All the work I've done in C++ have either been to small to require a good debugger or been on windows so I've used Visual Studio at work. Now I'm faced with a situation where I need to write some C++ while being on Ubuntu, so after looking over some of the alternatives I have when picking between the IDEs I can honestly say I don't have...

Is VS2008 Required to Generate a Bootstrapper

Am I required to install Visual Studio 2008 in order to build a bootstrapper for my msi installer? I don't have VS2008 installed on my build server, and I'd rather not install it just to generate this one bootstrapper, but it appears that the required bootstrapper files (setup.bin, the Microsoft SDKs folder, etc) are included in the VS ...

Where can I find some websites with VB.NET tutorials?

I am looking for a website similar to W3Schools that teaches the basics for VB.NET 2008. If none exist I would just like some good tutorials to get me started. I did some basic VB.NET a couple of years ago but I need to refresh myself, any ideas? ...