visual-studio

undeclared identifier SO_EXCLUSIVEADDRUSE when building Apache Axis2/C

I'm attempting to build Apache Axis2/C (actually I'm building the WSO2 WSF/C++ wrapper for it) and it keeps giving me an error when it comes across the symbol SO_EXCLUSIVEADDRUSE. It's a socket option, and MSDN says it should be available. I'm using MSVC++ 6.0 on Win Server 2k3. I don't have a choice about the compiler or the OS... if...

Setting the manufacturer in a VS 2008 Setup Project

I have a windows setup project that installs a service. All works well except for one thing: The default directory offered to the user during install is of the form "C:\Program Files\Microsoft\ProgramName". I am trying to modify this so that instead of "Microsoft" we would have our company's name. I found the application folder property...

CMFCToolTipCtrl or CTooltipManager examples?

Has anyone tried using these new VS2008 MFC classes yet? I can't seem to find any examples anywhere. Even the VS2008 samples(1) don't mention these classes. (They use CToolTip.) (1) Update: My mistake. I had downloaded the non-SP1 samples. I see that the SP1 samples have samples specifically for the 2008 Feature Pack, including the DlgT...

Is the Visual Studio 2008 Object Test Bench useful for anything?

Is the Visual Studio 2008 Object Test Bench useful for anything? Maybe I'm missing something but aside from a flashy version of the immediate window, it doesn't seem like a developer would actually use it for anything. (And how many people knew it existed in the first place?!) In case you're wondering, the 'Object Test Bench' is loc...

How does MbUnit work with VS 2008

I set up MbUnit and have been trying to get it to work with VS 2008 using the MbUnit GUI but every time I run a test it closes and I get a this program needs to close error. I had a similar problem with Gallio where I got a runner exception every time I ran a test. Do I need an addin for VS like testDriven.Net to get this to work? ...

Visual Studio's wsdl.exe can't find some info in my schema. Not sure if this is an error.

When I use wsdl.exe to create a client from my wsdl, it finishes O.K., but inserts the following comment in the file: // CODEGEN: Parameter 'VerificationData' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'. I can't figu...

Plug-in for Visual Studio for quick-searching files in solution

I want to write an Add-In for Visual Studio that provides instant search for the solution explorer. So you press a key combination and while you are typing a list first containing all files of the solution explorer gets narrowed down. But how can I get access to the solution explorer using C#? Does anyone have some good resources? Ed...

Vsssc and Vssscc files - usefull for SVN?

After a repository is imported from VSS to SVN, there are some files which I guess might be VSS specific - .vsssc and .vssscc files for the solution and .vspscc for projects. They seem to be related to VSS project binding. Are they needed (or useful) for SVN as well? ...

Top-level .mak file for Visual Studio?

I've inherited a body of Visual C++ source that consists of about a dozen sub-projects. One of these is an empty "MakeAll" project that depends on all the others, so I can build the entire project by setting the MakeAll project active and selecting "Build All." I'd like to automate this process, and coming from a linux environment, my ...

Can Visual Studio Automatically Expand Text with a Code Snippet?

In Delphi if I type "if" and space it automatically inserts the code snippet with an if statement block defined. I know in Visual Studio I can insert a snippet, but I have to either right-click and select "insert snippet", or hit CTRL-K followed by CTRL-X. Is there a way to configure Visual Studio to automatically insert the snippet li...

Pausing after debugging command line application in Visual Studio

Is there a way short of writing a seperate batch file or adding a system call to pause or getch or a breakpoint right before the end of the main function to keep a command window open after a command line application has finished running? Put differently, is there a way in the project properties to run another command after running the ...

How to stop VS2008 trying to compile .ASP pages as Visual Basic?

I have a website with a mix of ASP (classic) and ASP.NET pages. For some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages. How do I prevent it from trying to compile the .asp pages? Reason: I'm getting a ton of errors on a specific .asp file that includes a Class. I believe it's trying to comp...

Framework goto definition shows comments, are these generated from xml comments?

I was mildly surprised recently to discover that my carefully crafted xml comments weren't showing up in intellisense for my colleagues. Having always used the associated assemblies with project references, I hadn't realised that you had to export the .xml document as well to access this information. This led me to wondering how the .Ne...

team system unit testing and configuration

In vs team system 2008 unit test, how can i load an application configuration file in the test itself? i have an app.config in the test project, referenced System.Configuration but when running the test, it doesn't see the app.config ...

Visual Studio: How to store an image resource as an Embedded Resource?

By default when you add an image (icon, bitmap, etc) as a resource to your project, the image's Build Action is set to None. This is done because the image is magically stored inside a .resources file. I want the resource to be stored as an embedded resource (my reasons are irrelevant, but let's just pretend it's so that I can see them ...

Problem Displaying XML in Grid View-newbie

I am trying to do something in VisualWebDev 2008 Express that I thought would be simple, but it is not working. I want to display data from an XML file so I added the XMLDataSource to my page, pointed it to the XML file, and then added the GridView and connected it to the datasource. I am getting the following error: GridView - GridView1...

Does Visual Studio have anything like Borland's CodeGuard?

Is there anything in Visual Studio that will report memory leaks like Codeguard? eg: Error 00001. 0x300010 (Thread 0x0FA4): Resource leak: The object (0xC65D84) was never deleted The object (0x00C65D84) [size: 4 bytes] was created with new | element2.cpp line 3: | #include "element2.h" | |>CS225::Element2::Element2(int _val) : p_val(...

Customizing dockable windows in Visual Studio

When developing on a system with dual monitors, I like to make the most of the extra space by stretching Visual Studio across both. It is fantastic to be able to see the Output, Breakpoints, Error List, Object Browser, and ReSharper windows at the same time without having to make them tiny and dock them in the main window, which leaves ...

TFS SourceControl Branching Merge From Trunk

Hello All, I'm having trouble with branching in Visual Studio TFS. This may be due to the method in which I am developing, but if this is the case, please let me know what the best practice is with branching and I will change our procedure. About a month ago, I branched a project so that I could begin developing a new version of the w...

Visual Studio Website Reference Paths

In Visual Studio website projects (in Visual Studio 2005 or later, not web application projects where there is still a .csproj file) how is the reference information stored, and is it possible to source control it without storing compiled binaries in source control? If you right-click on a website project and select Property Pages, the ...