visual-studio

Trying to create my own Toolbar inside Mainframe class VS 6.0

I am having issues with creating my own Toolbar inside the Mainframe. I have bitmaps of buttons which I want to use for my own Toolbar but the problem is that the Toolbar displays inside the View of my SDI application. Here is a pic of the incorrectly displayed Toolbar. http://www.flickr.com/photos/14402427@N02/3409050475/ Here is the ...

Referencing a COM assembly in Visual Studio vs converting a COM assembly via tlbimp.exe

When I import a COM assembly (dll) in to a Visual Studio project by adding it as a reference I can use the generated equivalent common language runtime assembly without issue. However if I try and convert the same COM assembly into a common language runtime assembly using tlbimp I run in to all kinds of problems. Is there a way to repl...

Help me get started with unit testing in Visual Studio 2008

After spending some hours reading about Unit Testing and test driven development here on StackOverflow and on other sites posts pointed me to, I know two things: I want to use it I don't know where to start There are lots of good posts here about details, best practices etc, but what I am looking for is a beginners tutorial/introduct...

Unit testing and mocking small, value-like classes in C++

Hi, I am trying to set up some unit tests for an existing c++ project. Here's the setup: I have chosen Google Mock, which includes Google Test. I have added another project (called Tests) to the Visual Studio Solution. The units to test are in another project called Main. The plan is to add each cpp file that I want to test to the Tes...

Why does Nant driven MsBuild compile to different directory on different machines?

I wrote a Nant script that executes MSBUILD.exe to compile a project on my dev machine. On my dev machine, the projects builds its output to bin\x86\Release and my Nant script zips up the contents of that directory. I then commit everything to SVN and let TeamCity run the Nant script that executes MSBUILD.exe to compile the project and z...

How do I stop Visual Studio from launching a new browser window every single time I hit the Start Debugging button?

Hi, I'm frustrated. I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug. Is there a way to stop this behavior? Thank you. ...

How do I stop Visual Studio from inserting "object" when I type "new {"

When editing a C# source file, I type new { Visual Studio auto-corrects it to new object{ Is there a way to stop this behavior? ...

Make VisualStudio C# have files/folders outside of the project directory.

I'm trying to come up with a setup where I can generate a visual studio solution + projectfile, that references files and folders "outside" of the folder where the .sln and .csproj's are stored. and (the catch :) ), I need new files that get created with you rightclick a folder and say "new code file" to be generated in the folder that ...

How to bring Visual Studio features to Eclipse?

Hello, Visual Studio refugee here. I've had to switch to Eclipse to write a couple of Java apps and I am really missing all the VS2008 goodness I've come to rely upon. I am new to Eclipse, so I simply might not be finding what I need. With that in mind, how do I replicate the following in Eclipse. Right click on a source code tab, a...

dll copied to output path from wrong folder

all of the projects in my solution have an output path of "..\Release" for Release builds and "..\Debug" for Debug builds. All of the projects works fine except for one. Whenever I build the problematic project in Release the dll that gets copied to "..\Release" comes from "obj\Debug" instead of "obj\Release". This happens both in VS ...

What's the point of viEmu plugin for Visual Studio?

This may sound a bit provocative but it actually is a real question. Feel free to edit if you don't like the tone. Now, as much as I understand vi from my short experience with it like 10 years ago, it's a primitive text editor with one editable line at the bottom of the screen created before the scrollbars were invented, with some craz...

Why is -o a candidate for deletion from the Microsoft compiler and linker?

I came across the following and I am wondering what implications it is going to have on my cygwin/gnu environment should I be using something other than -o to name the output from a compile? Has there been some new standard adopted and do other compilers adhere to it? What would be the motivation for removing -o? DOS PROMPT>type c...

How do you get server blocks <% %> to format well in Visual Studio?

I'm using ASP.NET MVC a lot recently which means using server blocks a bunch. Visual Studio does this strange thing when I type: <% } %> and hit enter, I get this: <% } %> Which is unsightly and generally the most horrible thing I've ever seen. I've customized the Ctrl+K+D behavior pretty heavily and when I do this I ge...

VS2008, Add New Item, "Web Content Form" option is missing

Today I realized that I no longer have a ”Web Content Form” option (where you select a MasterPage) when I add new items to my ASP.NET web application. I know how to manually add a MasterPage to a web form, it’s just such a pain – and I really don’t understand why Web Content Forms suddenly are missing. Visual Studio Team System 2008, SP...

Visual Studio - 'Browse UDDI Servers' -> 404 ?

Hi - I have a ASP.Net application which implements a web service. Within the ASP.Net application there's a test script which consumes the web service and it all works etc. I have built a .NET console application and want to 'Add a Web Reference' so that the console app can consume the web service provided by the ASP.NET application. Whe...

Visual C++ error C2143: syntax error: missing ')' before 'constant'

I'm getting an error in Visual C++ that is giving me a really hard time. The error is error c2143 reading: syntax error: missing ')' before 'constant' My code line is: coefficient[i] = (1 - (2 * depth)) + ((t - floor( t + 0.5 ) + 1 ) 2 * depth); I have #include at the beginning of the file which should define the floor(double) func...

Visual Studio 2008 - Where is the modifiers property of a control?

I need to change the scope of a control from friend to public in my user control - what happened to the Modifiers property of a control? I don't see it in the property sheet. How am I supposed to change the scope of my controls now (besides going into the designer file and changing it in the auto-generated code)? ...

log4net only logs when running in the Visual Studio debugger.

I'm running Visual Studio 2008 - and have a problem with log4net logging (v1.2.10). I have a small console test program with a single log statement. I have log4net configured for RollingLogFileAppender and ConsoleAppender. When I run the compiled exe from the command line, I see the correct creation of the log file in my runtime direct...

Can implementation classes "inherit" XML comments from their implemented interfaces?

Curious question. I'm using Microsoft's Sandcastle to generate documentation from the XML comments in my C# code. Several of my classes are implementing interfaces which already have commented methods. I'd rather not duplicate the documentation in both the interface method and the public implemented method. Is there some kind of tag ...

AJAX Toolkit controls showing errors in designer

Is there something I need to install to get Ajax Toolkit control support in "design" mode in VS2008? Also, I seem to be having a problem when adding controls within Ajax controls. They don't update the designer.cs file. ...