visual-studio

What are .rc2 files used for in Visual Studio

I am new to Windows environment of development. I see a lot of .rc2 files used where a mapping is performed against some MACRO type constants to strings. Q1. Why are these .rc2 files used? Can someone give me a start on these. ...

Intellisense with single source file in multiple projects

In a single solution, if I have the same source file present in multiple projects (with different project settings, e.g. different #defines), Intellisense and all the features depending on it seems to arbitrary pick one of the project settings when I edit the source file. How do I get Intellisense to switch which project settings it use...

use VS.NET to debug application

I am using VS.NET to attach to a process, the process has a lot of DLL loaded, I built one of the DLL and try to set a breakpoint inside my DLL. I click "New Breakpoint" and type my function name Func_A and checked the "Use Intellisense to verify" box. Then I click OK but the VS.net complains that it can't find the function. When the pr...

VS2005 SP1 on Win XP crashes after loading solution with 362 projects without any error, log or trace

Hello, I am running Visual Studio 2005 on Windows XP. It crashes without any error, log or trace when I try to load the solution for our product that contains 362 projects. I don't think the size of solution (362) is a problem, because it works on my colleagues computers. There is no entry of this in Event Viewer. Any help to locate ro...

WinDbg stacktrace shows wrong values for function arguments (KP command)

I am debugging a minidump in WinDbg and the Visual Studio 2005 debugger and they produce different results. WinDbg gets it wrong When doing KP in WinDbg, the relevant part of the stacktrace is: 0bb6ef30 0a4a25b8 MyModule!SomeClass::methodB( void * buffer = 0x05d8d800, int bufferLen = 1797233953, ...

Avoid Microsoft Office SDK installation as part of my app

Hi All, I have created a VSTO visual studio application in Visual Studio 2008. It's working fine and I wanted to create a installer for the same using Publish option. Now, I see that it creates the installer with Microsoft office SDK (194 MB) part of the installer. i don't want the client or my customer to install such a large componen...

How do you give an .exe an ico image in Visual Studio?

I have the application using an .ico image for the taskbar and window, but how do you set up the .exe to use an icon? While on this subject does anyone have any resources on how to work with ico images? As in what size does the start bar use, and so forth? From what I can find there are tools out there to assign .exe's icon images but ...

What Visual Studio 2008 version to download for x86 .NET development?

What version should I download? I only see VS 2008 x86 and some "WOW64" stuff on MSDN. Will "Visual Studio 2008 Professional Edition (x86)" work? ...

Registering dll's in the GAC using Visual Studio Installer

I want to register/unregister my project's assemblies in the GAC using Visual Studio's Setup installer project. I am thinking of using a custom installer to utilise the Install() and Uninstall() methods to write commmandline (in code) commands via the gacutil.exe. Is there an easier way - or is this the way you would do this? Please k...

Visual Studio 2010 Debugger over-running IE

I recently got the beta IDE from Microsoft (Visual Studio 2010) but only got it for Visual Basic, but the Debugger keeps blocking me from downloading things like Adobe Flash Player, and won't allow me to run ActiveX add-ons (on Internet Explorer 8)... is there a way to turn off the debugger from running in IE8, or just all-together shut...

C# Creating a assembly for future reference

Hello all, I'm trying to rebuild zlib.net and create an assembly I can reference in future projects in Visual Studio. However, after building from the supplied source code and moving the resulting zlib.net.dll to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies, while I can indeed add the zlib.net reference to ...

Why is visual studio catching key events before autohotkey?

I recently switched to the dvorak keyboard layout as a bit of an experiment. One of the most difficult parts of the transition has been dealing with hot-keys. Most hot-keys are designed with qwerty in mind and, to make matters worse, hot-keys seem to be extremely muscle memory bound. Rather than relearn all the hot-keys, I've written a...

The operation could not be completed. ClassFactory cannot supply requested class

In Visual Studio 2008, all of a sudden, when I try to Add Existing Item to a project, I'm getting this error: The operation could not be completed. ClassFactory cannot supply requested class Since I installed VS 2010 Beta 2 yesterday, I just now did a system restore to before that point to see if that was the cause. It wasn't. I ...

Easy way to add multiple existing .csproj to a Visual Studio Solution?

I've checked out a branch of C# code from source control. It contains maybe 50 projects in various folders. There's no existing .sln file to be found. I intended to create a blank solution to add existing solutions. The UI only lets me do this one project at a time. Is there something I'm missing? I'd like to specify a list of *.cspr...

ASP.NET in Visual Studio 2008 code re-arranging

I recently started development in ASP.NET, and coming from a PHP background I sprinkle code into the aspx pages using <% %> to control logic. I'm not debating the best practices of only using code behind, but one strong point in that directions favor is a problem I am experiencing. Whenever I go into Design view of a page that has code...

Obtain Listing of all Fields in a Project

I have a relatively large solution that I compile to DLL. I would like to print out or list all the fields in every class in this project. I'm looking for a Visual Studio feature, Visual Studio add-on, external tool, script, or code snippet (something involving reflection, perhaps?) that will allow me to simply print out all these fie...

Linux multithreading would involve the pthreads library(in most cases) . What is the equivalent library used by MSVC ?

I need to know which are the APIs/library used for multithreading by MSVC . If there are more than one , please let me know which is the most widely used. If my question sounds too naive , its because I've never done threading before , and from my past experience , I know there are people here who can get me started/point me at the righ...

Setup and Deployment

hi What's the easy way to make a setup of multiple project in a single solution. I have dll most of the project references . when I create a setup it make multiple interop in it. waiting for your valuable thought. Thanks ...

Connecting to a Web Service running on Visual Studio Development Server from another machine

Hi, I have a web service running on machine A on Visual Studio's build-in Development Server. For testing purposes, I'd like to test the service by connecting to it from machine B, which is in the same subnet. Is this possible? Or is VSDS restricted to localhost calls only? -pom- ...

How to remove user control entries from toolbox in Visual studio?

There are dozens of user control in our project. All these controls loads in Toolbox. I think this slows down the system when we work in designer. Is it true? if so the how to remove these controls from tollbox? Thanks. ...