visual-studio

error C2027 and error C2227

I get error C2027: use of undefined type 'Bridge' and error C2227: left of '->receive' must point to class/struct/union/generic type on line *connection1->receive(newMessage,2); #include <stdio.h> #include <stdlib.h> #include <iostream> #define MAXHOST 10 #define MAXPORT 5 #define MAXLAN 8 #define MAXBRIDGE 5 #define MAXLANBRIDGECO...

List of open documents in VisualStudio (Plugin-Development)

Hello, I am currently trying to develop a simple plugin for visual studio 2008 using c#. I feel kind of stupid to ask, but after searching the doc for a few hours I can't find a way for a really simple task: Assume this open solution. I simply want a list of the documents open in the TABs on the right. I tried something, see below... ...

How to consume different proxyclass versions (production or test) of ASMX webservice

I've got an ASMX webservice as a separate project in Visual Studio 2005. In pursuit of "assembly separation" per a CODE Magazine tutorial, my proxy class is in a separate class library project containing no code of mine - just a web reference named ASMXproxy with the associated reference.cs, app.config, .disco and .wsdl files. Thus, when...

Is there a way to always have vs.net run as administrator?

Every time I want to open up a solution in vs.net, I have to first click on the vs.net icon, run as admin, and then open and search for the solution in the file system. i.e I can't just click on the solution file and fire things up because it won't open since I have to run as admin. is there any easier way? (vs.net 2008) ...

Python syntax highlighting / Intellisense?

I've started messing around with Google App Engine, writing Java. I love Visual Studio for many reasons, but currently my .py files just look like text. I've searched the web looking for a way to get it to highlight python files (intellisense would be a nice bonus, but not required) but turned up nothing. There are other questions on ...

Visual Studio won't recognize key combination

I'm not sure what could be causing this, but I installed GhostDoc and the default key combination of Ctrl+Shift+D worked as expected for quite some time. Recently it just plain stopped for no known reason (there were updates installed, but none related to .NET or Visual Studio that I'm aware of). Looking under Tools -> Options -> Envir...

Does having more projects in your visual studio increase compile time?

Which scenario below would compile faster? Two projects inside of a solution. Each project has 5 classes. One project inside of a solution. The project has 10 classes (the combination of the two projects in scenario a). Basically, I'm trying to see if having 2 projects would affect the compile time in a solution. ...

MSBuild AfterPublish Target

I want a particular file copied in with the published output of my web project. I tried changing the Build Action to Content and changing the Copy to Output Directory to Copy always. This works fine except that it buries it down in a sub folder the same way it is in the project. I do not want it buried down in a sub folder. I want it si...

Generate custom test result in Visual Studio 2008

Hi, I'm elaborating some unit tests and I'm not sure if what I want is possible with Visual Studio 2008. Basically, I'm scanning some classes and for each of them, I want to know if this class is serializable and if it has a default constructor. I would like to have in the Test Results View the list of ALL the classes that I had teste...

How to learn to like Visual Studio and heavy-duty IDEs

I've had some exposure to Visual Studio, but not a great deal, as well as Eclipse, and haven't gotten much out of the experience. What I tend to want out of an editor is line numbers, syntax highlighting, and if possible, a list of functions/subroutines. To me, Visual Studio is overkill. Particularly, I don't like the concept of drag-...

Set #include directory from C++ code file

In MSVC++ you can always do #pragma comment( lib, "libname.lib" ) TO link a library in from a code file, instead of fiddling with the project options dialog. I'm looking for a way to add "Additional Include Directories" from the code file instead of using Project Settings/Configuration Properties/C,C++/General/Additional Include Dir...

Why do I need nhibernate.dll referenced in my asp.net mvc project?

All my data logic is in another data layer project that I reference in my asp.net mvc project. Now if I call: CategoryDAO.GetById(1); Everything works fine. If I call: CategoryDAO.GetBlah(1); VS.NET complains saying "Error 102: The type 'NHibernate.Criterion.Order' is defined in an assembly that is not referenced. You must a...

What is the recommended way to manage a strong-name key pair for an open-source project?

I manage an open-source project and would like to sign the binaries that are released in the project's binary package. I use Visual Studio csproj and sln files to manage and build my project, and also distribute these files as part of the project's source packages. How can I sign the produced binaries of my build and not have to distri...

VS2005: How can I print a selected piece of code without the highlighting?

When I want just one piece of code printed, I can select it, and press the "print" menu command; what follows is a printout of the correct piece of code, but with a highlighted background. Any tip on how to get a selected piece of code printed as I would see it, unselected? ...

How structure whole applications in Visual Studio?

Example I work on project, which have 3 separate parts (ASP.NET MVC, WinForms, Silverlight) and 15 project (Common, Api, Services, Repository and WinForm's CABs). Resolutions 1) All this project in one solution 2) For each part have solution What is the best way to deal with Solutions and Projects in Visual Studio? First is great if...

How do I avoid popping up an error dialog when my MSVS C++ app crashes

When my Visual Studio 2008 C++ command-line application crashes, it sometimes produces this dialog. CommandProcessor.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on might be lost. For more informaiton about this error, clic...

Variable inspection in Visual Studio 2008 in asp.net IronPython inside a class

I need to inspect the value of a variable inside a class in asp.net IronPython in Visual Studio 2008. Visual Studio 2008 inspector doesnt work for IronPython (if the inspector works in VS 2008 for asp.net IronPython and it isnt working for me plz tell me) and you can't use Response.write - Response.end inside a class. What can I do to kn...

Visual Studio is not recognizing new classes

Hi, I'm using visual studio 2008 SP1, I'm working with a web project in VB.NET. the problem when I add new class file (of-course in App_Code) it doesn't recognize it. all the old class files are working fine, but the new ones aren't. I restarted my computer and still the same problem. Any Ideas ...

How to create full screen window with MFC?

Hi, I want to create full screen topmost (screen saver) window with MFC? How to create such full screen window in MFC? I tried to create win32 application and i am able to create fullscreen top most window but i want to create using MFC so later i can put different MFC controls on that window? Please help me. Thanks, Jim. ...

VS2008 Unit Test Project bugs...

Hi, I'm using VS 2008 Developer Edition and am finding some bugs with the Test Projects. I am getting one error that doesn't make sense - I have a class called 'Foo' which I need to test and created the blank test class automatically. Foo takes 3 paremeters in its constructor - IBar, IBaz, IBang. When I write a test case, I will Dim ...