visual-studio-2005

Where can I find visual studio macro examples?

When I look up anything about macros for Visual studio 2005, everyone is referencing the samples that ship with it. However, Visual studio was installed for me (IT department) and I do not have these sample macros. Is there another place I can find(or download) them? ...

How to use /NODEFAULTLIBS option in compilation ?

Hi i hav solution explorer contains 2 proj.for one project i enable /clr with /mdd. for parent project i hav /mtd and no clr support.when i compiling this i am getting two linker errors including the below one Link warning link 4098:Default lib can conflict with other lib use /NODEFAULTLIBS library so my question how to use /NOD...

Using MSBuild for C++ with VS2005

Is it possible to use the latest MSBuild (.NET4/VS2010) with the VS2005 toolchain? I have a C++ project which compiles against VS2005. I'm not ready to upgrade to VS2010 while the compiler is still in beta. But I'd like to use the new version of MSBuild because it builds C++ natively and provides extension points and flexibility which t...

How do I find the stack trace in Visual Studio?

I ask because I couldn't find the stack trace in Visual Studio, while debugging an exception that occurred, after 30 seconds and didn't know to initially google for "Call Stack Window". And now via the magic of StackOverflow and Google, I won't ever have to remember again. Though through the act of writing this, I will never forget. Is...

How to retrieve a text file from the resource file in C# VS.2005

I have a html template that I want to retrieve from the resources file in a VS 2005 C# windows form application. I've created a folder called /html/ within the project, which has one file in it called template.html. I've added the file to my resources. I see its name just as template, and it's filepath is the fully qualified filename (...

How can i debug in visual studio as command line?

hi, I hav my execuatable produced by command line building. I want to debug it in command line itself as like as gdb does in linux. Also i want run my program in Visual studio GUI from command line options.. How can i do that? ...

how to avoid lnk2005 error in visual studio.

Hi any body plzzzzzz help me to remove linker error 2005. I am vexed with these errors libcmtd.dll msvmrtd.dll some element(ex: _mkdir ) alredy defined like error.. ur support wil greatly help for me. "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo...

Run Time Error

hi Experts, Can anyone pls throw light on this error ? An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in STUB_CREATOR.exe Additional information: Exception from HRESULT: 0x800A0036 (CTL_E_BADFILEMODE) This is the line that creates the error Dim f As New Scripting.FileSystemObject starter = f.O...

F12 no longer works in Visual Studio

this is driving me crazy, ever since I installed ReSharper 4, F12 no longer seems to work. If you look at the all the ReSharper short cuts in the Goto sub menu Declaration doesn't have any assigned! The only way I can go to declaration is by using ALT and ` and then selecting Declaration. I have tried un-installing and re-installing R...

Can I order the enum values in intellisense?

I have an eum type with 5 members. Is it possible to tell intellisense to order them the way I want? public enum numbers { zero, one, two, three, four } Intelisense shows (in alpha): four one three two zero ...

How do I update version number of dll generated by VS2005 web deployment project using NAnt

Hi I have a NAnt script that compiles our web application, but would like to programatically update the version number of the assembly it generates. I have sourced the version numbers already and you can assume they have been stored in some NAnt variables. Can figure out how to do this for standard projects, but not for web deployment ...

Do I need to run devenv.exe /setup twice? [VS 2005 and 2008]

I am writing a VS Integration Package and setup using Visual Studio Setup Package. I have a custom action that runs "devenv.exe /setup" when the package is installed. If the user has VS 2005 and 2008 installed, do I need to run devenv.exe /setup from both directories? Like so: "C:\Program Files\Microsoft\Visual Studio 8\Common7\IDE\dev...

How do I deploy a folder using Visual Studio Deployment Product

I have a reporting tool written in VB. I have added a deployment project to my solution. One of the things I wish to deploy is a folder full of sub folders and files. How can I deploy this using the project please. I seem to be able to add files, project output and assembly. Any help would be appreciated. ...

Manage ASP.NET Web Service Source Code

I'm working on building a set of ASP.NET (2.0) web-services to be deployed into a single web application under IIS7. The services will be added incrementally (over a period of a year or more) by multiple programmers. How should I organize my source in VS2005. Should I use one project or several? Should I use a Web-Application or Web-Si...

has anybody been able to debug asp classic code with visual studio 2005 or later?

I've been stuck with visual studio 2003 for ages because of my need to debug asp classic code... A few years ago I tried to debug classic asp with vs 2005 with no luck, I think there was some dirty hack that was supposed to achieve that "magic", but I couldn't make it work... I wonder if anybody has been luckier than me... Haven't tri...

Mercurial integration into Visual Studio 2005?

Is there a way of integrating Mercurial into Visual Studio 2005? We'd like to be able to do checkin's, see history, etc. directly from the IDE. ...

How to resolve linking error??

Hi I hav a project.it shows error only with linking only. it displays __getch alresdy defined evnthough i hav ignored specific library MSVCR80D.dll it shows error. Plz Help me in this regard..... after using /verbose: Processed /DEFAULTLIB:msvcprtd Processed /DEFAULTLIB:MSVCRTD Processed /DEFAULTLIB:OLDNAMES Processed /DEFAULTLIB:M...

Program Deployment Failing

The project my team has been working on has reached a point where we need to deploy it to computers without the development environment (Visual Studio 2005) installed on them. We fixed the dependency issues we had at first, but we're still having issues. Now, once the installer is finished, our project gets stuck somewhere before enteri...

Debugging Web Apps in Visual Studio 2005 with Internet Explorer 8

First of all, everything was working fine for several months: When I tried to debug a web app with Visual Studio 2005 and Internet Explorer 7, I just click "Start Debugging", a IE window opened and the process was attached to the debugger. But after I installed IE 8, the process was not attached automatically. I had to attach manually...

Deserialization does not seem to work with strongly named objects in the IDE

Situation: I have a bunch of business objects sitting behind a web service. All the objects are encapsulated in a BusObjects.DLL, which is strongly named and sits in the GAC on the server (because other apps on the server access it as well). I have a click-once client app, which calls the said web service. The click-once app also s...