visual-studio

How do I make Visual Studio Start Page display my checked out files?

We use Visual Source Safe. Is there a way to have the all-files-checked-out-to-me report display on the Start Page in Visual Studio? So that when I opened VS, I'd see a report of everything I have checked out from VSS, categorized by project. ...

how to find file with syntax error in Visual Studio?

Hey there! I guess many of you know this problem, when programming C++ with visual studio, there are cases which a simple syntax error can cause many hundreds of compiler errors. For example if you forget the ; in the end of a class definition, Visual studio will output many syntax errors in files which are actually completely fine. Is...

What is the best solution for suppressing warning from a MS include (C4201 in mmsystem.h)

I am tired of having to look at warnings during our compilations - warnings that come from MS include files. "C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\mmsystem.h(1840): warning C4201: nonstandard extension used : nameless struct/union" I have seen this thread that suggests changing the header itself (but then each of my te...

Weird C program

Check the following code snippet struct st { struct st { int a ; int b ; } st; int a1 ; } ; struct st obj ; struct st obj1 ; int main() { return obj.a1 + obj1.b ; } Microsoft's compiler Visual Studio 6.0 compiles the program succesfully. I am confused with the use of 'struct st'. What is the size of ob...

Visual Studio + Database Edition + CDC = Deploy Fail

Hi All, I've got a database using change data capture (CDC) that is created from a Visual Studio database project (GDR2). My problem is that I have a stored procedure that is analyzing the CDC information and then returning data. How is that a problem you ask? Well, the order of operation is as follows. Pre-deployment Script Tables...

Can I hex edit a file in Visual Studio?

I want to edit a binary file but I don't want to use another tool other than Visual Studio because it's a pain to switch back and forth. Is there perhaps a add-in or some built in functionality that can do that in Visual Studio? ...

Visual Studio 2008: how to use the color picker dialog to set color properties in the property editor?

This sounds like a trivial question, but it's proved quite hard to google anything about this. When editing Color-typed properties through the property editor (when designing WinForms), a little editor pops up with three tabs: Custom, Web and System. I want to set a custom color by using the standard color picker dialog because none of ...

Visual Studio Compilation Time Statistic

Anyone know an add-in or something that could give me the number of time spent on compiling during the day? I am interested to gather some data about the time I use Visual Studio to code and to compile. Any tips would be welcome too if no add-in exist. Edit: I would need to have in the time all DLL loaded too by the ASP.Net webserver, ...

Why does a web application project in VS2005 offer a 'Convert to Web Application' menu choice

I believe I understand fully the differences between Visual Studio 2005's web site model versus the web application project model that was fully delivered in VS2005 SP1 - but I have run into a confusing thing: I have a web application project I wrote (it has a bin folder with the compiled projectname.dll and referenced .dlls too, etc.)....

Using Intellisense in Visual C++ 2008 Express. Intellisense for one project not available when editing file in another project.

I have a multiple vcproj solution going and it seems that no other project's intellisense information is available when editing a file in another project. However when I'm within a file in a project, all intellisense information is available for that project. Any idea why? ...

save inline asm register value to C pointer, can get it on GCC but not VC

hi there, for the sake of simplicity ill just paste an example instead of my entire code which is a bit huge. while im porting my code to VC++ instead of using GCC i need to rewrite a few inline assembly functions that receive pointers and save values on those pointers. imagine cpuid for example: void cpuid( int* peax, int* pebx, int* ...

How do I get rid of "API restriction UnitTestFramework.dll already loaded" error?

The following error pops up every now and then: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamTest\Microsoft.TeamTest.targets(14,5): error : API restriction: The assembly 'file:///C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll' has already l...

Visual Studio 2008 .Net - Step Over Current Process

I try to debug several applications that communicates with each other - and want to have ability to step over without switching to another process/thread. So Visual Studio has command "Step Over Current Process (Ctrl-Alt-F10)" - which looks like what I want but it's disabled, why? I've found the same question but for C++: http://stackov...

dynamically populate identy in web.config

Is there a way i can dynamically populate the username and password of identity in web.config from my code behind... as i cannot hard code it. <identity impersonate="true" userName = "Admin" password= "xyz"> any help..???? Thanks This the first part the 2nd part i think i can solve if i get this.... 2nd part link text I got a link...

visual studio intellisense error

template <typename T> class Test { friend Test<T> & operator * (T lhs, const Test<T> & rhs) { Test<T> r(rhs); // return r *= lhs; } } 4 IntelliSense: identifier "T" is undefined why is T defined on line 3 but not line 4? i mean i guess its not a real error just an intellisense error... it works anyway but is t...

Is there a way to customize the tool tip of a custom object in the VS Debugger?

http://stackoverflow.com/questions/369192/is-there-a-way-to-customize-the-tool-tip-of-a-custom-object-in-the-vs-debugger/1725025#1725025 anyway to do same for unmanaged c++? thanks ...

Visual Studio fails to install amd64 OpenMP dlls to WinSXS

I've installed Visual Studio 2008 (and SP1) on a 64-bit copy of Windows 7. When I build and run a 64-bit project it complains that it can't start, and some digging indicates that the 64-bit OpenMP dlls haven't been copied into c:\windows\winsxs. The directories for the 32-bit OpenMP and DebugOpenMP dlls have been created in there correct...

Tips for debugging a made-for-linux application on windows?

I'm trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I'm having trouble finding the spot in the disassembly where the issue is. I have tried three different debuggers (WinDbg, OllyDbg, and VisualStudio) and each pretty much gives me th...

How does Visual Studio find Unity/P&P or Office assemblies in its Add References Dialog?

I have read other posts on SO regarding VS's Add References dialog and how it populates assemblies. However, even after looking in Reference Assemblies folder and using the AssemblyFolders registry key for 32-bit and 64-bit, I am still unable to locate some assemblies, such as Unity/P&P and Office assemblies, when searching for them prog...

Visual C# GUI stops responding when process.WaitForExit(); is used

I am creating a GUI application using Visual C# 2005 (net framework 2). I use the following code to start a process: Process process = new Process(); process.StartInfo = new ProcessStartInfo("app.exe"); process.StartInfo.WorkingDirectory = ""; process.StartInfo.Arguments = "some arguments"; process.Start(); process.WaitForExit(); I wa...