visual-studio

access exchange 2003 calendars with vs2005+

I'm looking for a way to access Exchange 2003 calendars to add appointments. I'm hoping to use an admin account and impersonate each user to add appointments which i'm pulling from an oracle database. I've seen lots of examples for Exchange 2000 using cdox.dll which are exactly what I'm looking for but not an equivalent for 2003. I ha...

How to auto switch the rererence between different Oracle versions

I'm using a C# project that is linked to the OracleDataAccess.dll - V9 or V10, but only one of them at a time. My development machine has both installations. On the deployment machines only one of them is available. For this reason, I have to switch the reference betwenn V9 and V10 in my project dependent on the deployment machine. Is ...

Progress of Build in Visual Studio

I was thinking about writing a plugin for Visual Studio and I want to know whether it is possible to know the time left (May not be prefect but atleast approximate) for the build process to complete? ...

Instantiating VisualStudio 2008

I'm trying to get a list of all projects within a specified VS2008 solution. (this is a stand-alone console app, it is not a Visual Studio add-in) My code works with VS2005 solutions, but I get all sorts of ugly COM errors trying to use the VS2008 object. What I mean is: This: Type _visualStudioType = Type.GetTypeFromProgID("VisualStu...

How can I copy the embedded resource into output directory as well ?

I have a rules file for workflow within my solution and its properties are Build Action = Embedded Resource, Copy to Output Directory = Copy always I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. I...

Debugging Framework Code in Visual Studio

Is this post (http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx) still the preferred method for debugging framework code from visual studio? Or has anything changed? ...

Can a Visual Studio Installer remove a program installed by a non Visual Studio Installer?

I released a beta version of a dll driver a while ago that used a script based installer called Inno Setup, which did three things. 1) copied the dll file to a specific directory on the target file system 2) performed COM registration 3) executed a custom registration method that is contained in the dll For the next release of this s...

VisualStudio 2005 C++: Make it tell me what is out of date

I have a 100+ source file C++ project in visual studio 2005. A lot of those files have custom build steps. There is something that is not updated when I build. Every time I hit the start debug button it prompts me with a "This project is out of date:" dialog and asks if I want to build it. I choose yes, but nothing compiles. I suppo...

Visual Studio 2008 - Toolbar missing 'Release' / 'Debug' dropdown build configuration

Hi Folks, how to enable the dropdown that shows build mode 'release/debug' ? I have set the 'show advanced build configuration' option. I added the 'configuration manager' to the build toolbar but in previous versions we could do this by using the drop-down control. TIA ...

Visual Studio Add-in: How to use the Refactor > Rename using a custom code?

In visual studio, there is a feature that lets you do the following: Right-click on your method/class/property Refactor > Rename Doing this will make the change consistent across all the projects in the current solution. I was wondering if there is any API method on the DTE or such classes that one can use to perform this action us...

VS2008 attaching a debugger (C++) to handle assert(...)

This is related to regular assert(...) There are two scenarios that I'm interested to improve in my code. 1) a debug build app is started regularly, if there is an assertion I'm getting "Debug assertion failed" dialog box with "Abort", "Retry", "Ignore". Abort and Ignore answers are working fine. The problem with Retry. If I hit retry I'...

Any way to force local variables to the stack in 64bit VC application

When a 64 bit VC 2005 application is compiled with optimization turned on, it is not possible to see all local variables in a crash dump file. In many cases, the local variables or parameters are stored in registers instead of on the stack. Subsequent calls to other functions, such as error handling functions, will sometimes overwrite th...

Refresh Page C# Asp.net

Is there a Page.Refresh type of Command to refresh a page? I don't want to redirect to the page or refresh in javascript. Any help on this is greatly appreciated. Thanks in advance. ...

Virtual inheritance bug in MSVC

It seems that my problem is a bug in MSVC. I'm using the Visual Studio 2008 with Service Pack 1, and my code works with GCC (as tested on codepad.org). Any official info on this bug? Any ideas how to work around it? Is the bug fixed in VS2010? All insights would be greatly appreciated. The code: struct Base { Base(int i = 0) : i(i...

C#: Does Visual Studio 2008 have a tool to show which Exceptions could be raised by a piece of code?

For example, if I'm opening a file, I know a FileNotFoundException might happen, or if I'm converting a String to double, a FormatException may happen. Obviously, if a method does both, both can be raised. Is there a way to quickly see all possible exceptions raised by a method though? Keeping track of it myself seems error prone. ...

How to compile Allegro 4.9.14 using CMake 2.8

I have never compiled programs using CMake. I have downloaded the latest SVN of Allegro and tried compiling it multiple times, but no luck. I have looked allover the internet and have not found anything helpful. I have chosen to compile it for Visual Studio 9 2008. I don't really know where I have to link the source and the build. The Al...

How can I track the version of each project in a Visual Studio Solution using a single SVN repository?

I've been using subversion to store my Visual Studio Solutions. Up until now I've always stored the entire solution in a single trunk folder, with a single tags folder to store revisions of the entire solution. \trunk\ \tags\1.0\ \tags\1.0\ \tags\3.0\ My VS solutions so far have usually only contained one project, and if they contain...

Is there a refactoring tool that works across solutions files?

All the refactoring tools for C# and VB.Net that I have seen only consider the source code in a single visual studio solution. For better or worse, our large (many related programs) system is spread over many solution files, however: All the code is below a single windows folder. Our nAnt based build system, builds all files in a win...

Visual Studio 2008 > Application debugging disabled

Hi, today my VS2008 started to have a strange behaviour... I usually work wit web sites (not web project) and when I need to debug I attach the debugger to the w3wc.exe process. But today when I attach the process I get a kind of toolbox on the solution explorer, as you can see from this screenshot http://i45.tinypic.com/a0ggmw.jpg (s...

F# and Visual Studio 2010 Express Edition?

Is there any way to work with F# on Visual Studio 2010 Expression Edition. I am having Visual Studio 2010 Express Edition Beta 2. ...