visual-studio

TortoiseSVN: how to set up projects on a existing directory structure of source code

I have an old pet project I want to revive (haven't had enough time for it last year - small kid - you know) - so restored old copy of my dev folder from archive, but since I have rebuilt my machine since when - I can't remember what needs to be done now. I installed the latest version of TortoiseSVN, and the existing directory structure...

Visual Studio create release file with all files embeded

I would lik to make 1 exe-file (win32) with all obj, idp, pdb... files embeded to make it easier to copy the program and use it on other computers, can anyone help me? ...

Can you change the base date for .net automatic versioning?

I've set the AssemblyVersion property of a project to 3.0.* to get automatic build numbers generated whenever I do a new build of my project. The build number generated is the number of days elapsed since January 1, 2000. This means that if I do a build today, it will be build 3703. I would like to start with lower build numbers. Is ther...

Best practice for backing up Visual Studio solutions on Dev Machine

I'm currently in the process of backing up my Dev machine so that I can upgrade to Windows 7. I'm super stressed about the possibility of losing something in the process. How do you developers create appropriate backups of all your Visual Studio solutions, controls/components, and other development materials to make sure that everythin...

How to disable the automatic asterisk in Visual Studio when adding a multi-line comment in C#?

Possible Duplicate: How do I stop visual studio from automatically inserting asterisk during a block comment? When adding a multi-line comment in Visual Studio, it automatically places an asterisk (*) at the beginning of a new line (on enter) inside the comment block. I personally find this a nuisance. Does anyone know how to ...

Which has been the most reliable, fastest Windows C++ profiler that you have used?

I need to profile a real time C++ app on Windows. Most of the available profilers are either terribly expensive, total overkill, or both. I don't need any .NET stuff. Since it is a real time app, I need the profiler to be as fast as possible. It would be excellent if it integrated in some way with Visual Studio 2005/2008, but that's not ...

Is there are way to step through every line of code in Visual Studio 2008 without setting a breakpoint?

I have downloaded a sample mvc application which has a fair bit of code and quite complex. in order to understand the code i want to step through all of the code line by line as i complete basic functions via the gui. problem is i am not always sure which line the code executes from so i cannot always set a breakpoint. is there a way to...

Is there a way to access Visual Studio's CodeSnippet framework to manipulate snippets programmatically?

I'm working on a project that is going to be heavily templated, but the templates I'm creating might also work well in future projects as CodeSnippets for Visual Studio. So, I was wondering, is there a way to access Visual Studio's system of loading, parsing, and displaying the CodeSnippets in any way, shape, or form? For example, it ...

pointers vs. references vs. a regular pass by value c++

Please read before answering. I dont want you to state the obvious for me. THANKS :D I am trying to differentiate between pointers and passing by value. And I think I understand them but one thing the source I was reading wasnt clear on is what is the difference between passing a pointer and passing by value. consider the following... ...

Hit Breakpoint When Caused by the Debugger

Is there a way to have breakpoints hit when the action is caused by the Visual Studio debugger? For example, let's say I have the following (I know you shouldn't do this, just using it for argument's sake): public class Test { int _X = -1; public int X { get { return ++_X; } //Breakpoint here set { _X = value; }...

Installing allegro c++

I am trying to setup allegro to work with visual stupid express 2008 but I can't find a set of instructions for the life of me. I just want to to recognize the allegro library. Is there anyone who is familuar with allegro who could possibly help me out cause all the tutorials do not cover installation process and their documentation is ...

can not find C/C++ in project properties

I am following a tutorial and one of the steps its asking is to go to my projects properties and click on c/c++ and add a path to "Additional Include Directories" property. I am using visual C++ Express Edition 2008. the tutorial is using the same thing. Is there away to get this or an alternative ?? This is my screen This is tutorial...

Visual Studio: Custom Build Rules - per solution?

Hi, I need to define a custom build rule for files in my projects. However the rule may be different for different solutions (more percisely, for the same solution in a parallel dev branch). I have two questions: Can a .rules file be specified in a location relative to the solution? That way I'd be able to create rules per developmen...

C# has abstract classes and interfaces, should it also have "mixins"?

Every so often, I run into a case where I want a collection of classes all to possess similar logic. For example, maybe I want both a Bird and an Airplane to be able to Fly(). If you're thinking "strategy pattern", I would agree, but even with strategy, it's sometimes impossible to avoid duplicating code. For example, let's say the foll...

Re-enabling stylecop

Hi, I think i may have accidently disabled stylecop in my Visual Studio 2008 enviroment. If i right click a project and click "Run Stylecop", or "Stylecop Settings" nothing happens. Its the same from the Tools menu. It runs fine from Visual Studio 2005. I have Microsoft StyleCop 4.3.3.0. I was playing about with making custom rules and...

How do I get the lowest level project from a solution for build purposes?

If I have a visual studio solution with a multiple projects, from the projects how do I figure out which one will have all the dlls once the solution is built? The reason is I need to copy those dll's for my custom written build app. I know in the Visual studio GUI, if I right click on the solution and go to Project Build Order, the low...

Need C# Source Code relational diagram

I recently took over a web application project written in Visual Studio 2008, C#. There was very little documentation from the previous guy. I know it uses master pages and the starting page is default.aspx. Although it may still be possible to trace the code manually (through LOTS of time and hard labor and still some more), I believe I...

: error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [40]'

Hey guys. I am reading a book and It told me to open a empty WIN32 project. create source file called main.cpp. Put it in the source folder (This is the only file i have in my project). In that file put the following code #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmd...

intellisense for empty Win32 projects

When I create a empty Win32 project. My intellisense stopped working. Is it possible to get it working for empty Win32 Projects with 1 source file ? Thanks ...

Is it possible to detect when building in the VS IDE?

I've added an additional after build step so that I can integrate mspec with teamcity. However I do not want to run this when I'm building in the IDE as it lengthens the time to build. Is there someway I can detect whether I'm building from the IDE and not execute this specific target? This is what I have so far. <Target Name="RunSpecs"...