visual-studio

Move C++ app with Boost from Linux to Windows with Visual Studio 6

I made a small program with Boost in Linux 2 yrs ago. Now I want to make it work in Windows. I found there are few .a files in my libs folder. I am wondering how to make it works in Windows? do I need to build Boost in Windows to get library or I can download somewhere? I am using Visual Studio 6. ...

VS 2008, is there a way to search properties like the old vb6/EVB? CTRL+SHIFT?

I really miss the CTRL+SHIFT+CHAR searching of a property in VS 2008 that older IDE's had... typing CTRL+SHIFT+T got you to "tabindex" then Tag when pressed again. They dropped it in VS 2002 I believe, and the closest I could find to restoring any functionality like it was acorn's property window filter, which isn't exactly functional. ...

Visual Studio - External Tools not visible

I have a co worker who is trying to add WCF Test Client to the Tools Menu in Visual Studio. She adds the tools in just fine (exactly the same as mine that are working) but the tools listed in external tools are not visible in the Tools Menu. I seem to remember there is an option to make these show up in this list, but I don't know wher...

What should COMSPEC and PATH environmental variables be to locate the command-interpreter, using system()?

Are the OS (XP) environmental variables the same used in a process running from visual studio .NET C++? It seems the command interpreter is not found: When using NULL as the command, system() returns 0 and with command - ENOENT Command interpreter cannot be found. In windows (System->Environmental Variables), COMSPEC contains the pa...

Software To Help Me Reuse Code

I often find myself writing small (5-20 lines) files for things like input validation, reading a URL and so on. In fact, I probably write nearly the same files over and over because I either forget that I've already implemented such functionality in another project or I don't want to have to go searching for that file. I want to know i...

How to rollback in Visual Studio TFS?

I'm working on one sub-module of a large project for which is use VSTS 2008. I have a need to rollback the module to an earlier version (about 4 check-ins previous). I tried to do this in the Visual Studio UI, and finally realized there is no option to rollback. After some research, I determined there is a power tools download that pu...

How to determine the folder where extension is executed from?

I'm writing some extension and I need to pull out data from the file that is included into vsix. But if I'll use Environment.CurrentDirectory I will not have this file because this folder points to VS folder not on the extension's one. How can I define it in a run-time? ...

[VS - C++] Linker Errors - Unresolved external symbol

Howdy. I am working on a C++ assignment for my class. I am almost done but can't seem to figure out these errors: error LNK2001: unresolved external symbol "public: virtual void __thiscall HasQuarterState::dispense(void)const " (?dispense@HasQuarterState@@UBEXXZ) gumball.obj Gumball error LNK2001: unresolved external symbol "public: vir...

How to solve '...is a 'type', which is not valid in the given context'? (C#)

i want to call this class from my Winform.But if i write this codes. Compiler send me error. What is solution. Please help me Error : 'CERas.CERAS' is a 'type', which is not valid in the given context using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WinApp_WMI2 { public partial clas...

visual studio : short cut Key : Duplicate Line

Hi , after a lot of search , I really want to fix this.. "Is there a Short Cut Key for Duplicate Line exists in Visual Studio 2008 "? Duplicate Line i.e. like Ctrl+j in Edit Plus or Crtl+D in Notepad++ ...

Visual Studio 2008 Reporting Services backward compability issue

I know there is an Issue using SQL Server 2000 Reporting Services and Visual Studio 2005, but does this error still exsist with Visual Studio 2008 and 2010? If so, is there any work-aground to get this working? ...

How do I add to the MESSAGES list in the Visual Studio Error List window?

#error shows in errors, #warning in warnings. How can I make a line of text appear in the messages filter of the Error List window? To clarify: If I place the following line within a C# code file, it will generate an error on build, and that error will appear in the Error List window if I switch the errors on (like tabs above the list,...

Signed Assembly Key - "Object already exists"

Hey, I have a project that produces a signed assembly. In the past it worked without a flaw. Now my windows user account has been deleted a new one (with the same name) was created. When I try to open the project, VS 2008 asks me again for the password for the keyfile. After entering the correct PW, VS tells me the error "Object already...

WPF How can I apply global configuration file for solution with couple projetcs

Hi, I want put all configuration data from WPF projects to one file for whole solution. E.g. service references, etc. How can I read this data in every single project instead default app.config file? Thanks for any help. Kamilos ...

Flatten inherited members in Visual Studio's Watch window?

Is there some way to make the Watch window display all inherited properties and fields in one long flat list, rather than hidden behind a nested "base" node? I'm debugging some C# code that makes massive use of inheritance - some of the properties I want to watch are behind three levels of "base" in the Watch window. This would be more ...

How to avoid publishing ASP.NET applications in debug mode from Visual Studio?

We all know that we should only be publishing our ASP.NET Web Applications with release build type, so why do I not get a warning when I trigger the "Publish" command in Visual Studio 2008, for a project configured to build in debug mode? Sure, there might be cases where I need to publish a debug build to a development or test environme...

Unit Testing - Lame Error Message - "Failed to queue test run" "Invalid syntax"

I am trying to run my units test and it is failing. Not much info is supplied by Visual Studio. When I click on the "Test Run Error" link I get this screen. This is spectacularly unhelpful. Does anyone know where I can get a call stack on what is really happening? The solution builds just fine so I don't see how it can be "Invalid...

VS2008 auto-generated files versus source control read-only checkout: Best practices?

We have a codebase built using Visual Studio 2008 that contains resource files (SR.resx). Some tool will create a file named "SR.Designer.cs" from SR.resx and VS2008 adds it to source control. All is well when first created. Things go badly when a second developer checks out the sources on his machine. We use Perforce, which checks...

How to add a mouse-over summary.

I'm almost certain this is going to be a very simple answer but I can't seem to find it anywhere. We all know when you hover your mouse over something (like a string) a little summary pops up (if its enabled). For a string, it says: class System.String Represents text as a series of Unicode characters. When I mouse over one ...

Portable /Virtual / Zero-impact installation and usage of Visual Studio 2008

Hi all, I want to give a C#/.NET course (for just one or two days) at a local computer club. I want to use all free tools to do so (read VS Express Editions). They have mid-class machines, all with properly licensed XP, but no Visual Studio installed on them. I would like not to install Visual Studio on all those machines (about a doze...