visual-studio-2005

CMake - Issue with static library

Hello all, I'm using CMake-2.8 on winxp with Visual Studio 2005 generator. lets say I've a dll created (A.dll) from some cxx files and a static library static.lib So I call Link_Directories to specify the directory where the static library is located. Now A.dll is built fine. Now I want B.dll built from some cxx sources, A.lib (the im...

Remote debugging Windows 2000 with VS 2008

I'm using Visual Studio 2008 to target .NET 2 so a portion of our software can run on Windows 2000. I need to remote debug a process and the remote debugger in VS 2008 will not install on Windows 2000. I have installed the VS 2005 version of the debugger and can make a connection to it from VS 2008, but it gives an error "The remote de...

getting started with log4cpp in windows

I need to do logging in a c++ application. After googling for a while, I decided to use log4cpp. is that a safe option to go with, or is there something better out there? How do get started with installation and importing it to my application using windows xp, Visual Studio 2005? TIA ...

How to find name of currently opened MS Office document?

I want to find the name of office document(any like exel,word,access...etc) which is currently open on my operating system. It all is done through my C# code. If any one have any idea on that, so please share it. I created Shared add-in for that and also record the opening, closing time of that document and the time which the user spen...

How to free the application from the visual studio debugger?

I am having a windows application developed in C# language,Its a simple one form one button application with no logic running in Visual studio 2005 in debug mode.What i want to know is,whether there is a way to free the process from visual studio debug mode and make it run as though launched from exe (double click).This is not any requir...

Adding an assembly reference in a website project (VS2005) and storing it in subversion

I have an assembly I need to reference in a website project in Visual Studio 2005. I have in the solution a folder called Assemblies in which all third-party assemblies reside. I can right click the website project in the Solution Explorer and select "Add Reference..." and navigate to the assemblies folder to get the assembly. Once I do ...

Aspnet_merge error has no detail

I have been attempting to add a Deployment Project to my web app. When I build it, I get a message "An error occurred when merging assemblies: Exception from HRESULT: 0x806D0004". There is no other detail, like ILMerge error, or Duplicate Name. I have "verbosity" set to "Diagnostic", and this is the output: Command: C:\Program Files\MS...

tfs2005 shows pending edit

Hi All, I'm in Source Control Explorer 2005 and it shows I have some files in Pending edit status but I don't have any peding checkouts? Any ideas? thanks, rodchar ...

Accessing protected method from derived class in a different project (C++) generates linker error

I'm developing in native C++, using visual studio. I have one project which contains infrastructures - base classes which I want to derive classes from in other projects in the same solution. Say I have a base class in the infrastructres project: file base.h: class Base { public: void Foo(); protected: ...

AssemblyInfo.cs for WebSite in Visual Studio 2005

I am using WebSite project in Visual Studio 2005. I don't see any AssemblyInfo.cs created for a WebSite project. Can I manually create AssemblyInfo.cs in a Properties folder there or is there any better way? Its an existing project so I can't change it now. I am maintaining this WebSite project and want to add log4Net using PostSharp. ...

remove directory in c++

how to remove a entire directory in c++ ...

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

Anyone know how to stop Visual Studio 2005 editor formatting inserted text on a paste operation?

I grow tired of carefully hand indented multi-line function arguments or logic statements being reformatted on cut/copy - paste operations. i.e. code that started out like LPCTSTR FoldersToIgnore[] = { _T("_Disk"), _T("_Storage Card"), _T(".Production-Archive"), ...

Determine Assembly Version during a Post Build Event?

Let's say I wanted to create a static text file which ships with each release. I want the file to be updated with the version number of the release (as specified in AssemblyInfo.cs), but I don't want to have to do this manually. I was hoping I could use a post-build event and feed the version number to a batch file like this: call foo....

BindingSource / BindingNavigator: How to prevent editing of bound DataSource?

I created a Data Source with VB.NET and Visual Studio 2005. I dragged the data source onto my dialog, and VS created the text boxes with the members of my linked Object, a System.Windows.Forms.BindingSource and a System.Windows.Forms.BindingNavigator. I populate the List (called myList), set myList as the DataSource in the BindingSourc...

C# copy, paste a form in a Visual Studio project

I want to create a new form that is almost a duplicate of a dialog I already have in my project. I don't want to waste time recreate most of the form scratch if I don't have to. I copy, then paste it into my project, and rename it from Copy of Original.cs to NewItem.cs. When I goto rebuild my solution, I get an error. The item "obj\D...

Why won't my VS 2005 hit the break points?

I'm going crazy and wasting a lot of time. I am running in DEBUG, checked the web.config to ensure debug=true is there, checked the code to ensure I am reaching it, cleared all temp files and pdb's. The only thing that works is to continually kill the solution, create a new solution and add all the projects again. I shouldn't have to do ...

C# Templates for Visual Studio 2005

I'm looking for some template examples, such as a C# windows dialog. Do many hackers take advantage of template files? There are times when I'm creating dialog forms that are very similar. I want to make all my forms look and behave consistently, without doing a lot of coping and pasting. Add New Item -> My Templates ...

Sending mail within intranet from VB.net 2005

I was using the following code in order to send e-mails to my company's intranet accounts from a VB.NET 2003 aplication. However this code was marked as no longer valid when I migrated the application after installing Visual Studio 2005. Could you help me modifying this code in order for my application to compile succesfully? Dim emai...

Features of Visual Studio 2005 that is not in Visual Studio 2008

Currently I have both Visual Studio 2005 and 2008 on my machine. If I uninstall Visual Studio 2005, would I be missing something? If there is, what are they? Let's assume that I did a complete (not default) installation for both releases. Thanks in advance for your time and expertise. ...