visual-studio-2008

Visual Studios Team System 2008 Code Coverage Window Closes

Trying to run the code coverage tool in Visual Studios for a set of unit tests. Adam from Think First, Code Later has had the same problem: I wanted to get the code coverage metrics for the project. Naturally, I fire up the solution in Visual Studio 2008, go to the Test menu, click Edit Test Run Configurations, and click L...

Code crashing compiler: main() returning a struct instead of an int

Hi! I'm experimenting with a piece of C code. Can anyone tell me why is VC 9.0 with SP1 crashing for me? Oh, and the code is meant to be an example used in a discussion why something like void main (void) is evil. struct foo { int i; double d; } main (double argc, struct foo argv) { struct foo a; a.d=0; a.i=0; re...

What's the difference between "Stop Debugging" and "Terminate All" in Visual Studio?

As the title asks, what's the difference between "Stop Debugging" and "Terminate All" in Visual Studio (I know those options are available in 2008, but not sure if it's called the same or something different in 2005 or 2010) ? ...

VB.NET Dock problem

Whenever I am adding New TableLayoutPanel programmatically in a Panel by setting DockStyle.Top, the last added TableLayoutPanel goes at the top most position of the Panel and the TableLayoutPanel added first comes down. Example: If I add like 1 2 3 4 5 It adds as 5 4 3 2 1 Please help me to fix the problem. The TableLayoutPanels sho...

Dubugging a program not run within the debugger and without a crash

I left a program running last night, it worked fine for about 5 hours and then one of its built-in self-diagnostic tests detected a problem and brought up a dialog box telling me the issue. The program was built with debug information (/Zi). Is it possible to somehow get the debugger started so I can examine the value of some variables w...

VS2008 is very slow on a specific large C++ solution

I have a solution with 21 C++ projects and 1 VB.NET project. The IDE responds very slowly when I simply move the carret in a file or try to open the menu. The process seems to take 50% of CPU for each movement. It only happens with this solution and only on my machine. The solution has total of 2380 source and header files, of which 128...

How can I locally debug file permission issues in Visual Studio?

I want to debug an ASP.Net website as it attempts to write a file to a directory. When actually deployed this file would possibly not be writeable by the worker process so an error would be thrown, this is not a problem as I just want to catch the error, inform the user and move on. Of course, if I'm debugging on my local machine then ...

sql stored procedure in visual studio 2008

I want to write stored procedure in visual studio that as a parameter recieves the name of project and runs in database TT and copies data from TT.dbo.LCTemp (where the LC is the name of the project recieved as a parameter) table to "TT.dbo.Points" table. both tables have 3 columns: PT_ID, Projectname and DateCreated I think I have writ...

Visual Studio - how to create two projects using the same sources

My solution consists of 2 executable projects and a couple dlls. Project1 is a Smart Device Project, Project2 is a Windows Forms Project. Both projects use the same libraries, the reason of that is I want to test my libraries on PC before I deploy it on the device. The problem is that the DLL project type can be Smart Device Class Libr...

.NET Build Error After Converting to VS 2008

After converting a VS 2005 project to VS 2008 I started encountering the following error: Task failed because "LC.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_L...

VS2008 Post Build Event Not Raising Errors

I have some post build events in my project that copy files. The file copies are vital to my project working properly. I want those post build events to raise build errors if anything goes wrong. While testing a failure scenario, I found that failed copy commands are not raising errors. I do see warnings in the output window but no...

What is the Windows equivalent of the GNU ld flag --whole-archive?

I have a static library A and a dynamic library B that links to A (on Linux A/libA.a and B/libB.so, on Windows A/A.lib and B/B.dll). On Linux I can cause B to contain all the symbols in A by using this link line: g++ -shared -o libB.so B_init.o ... -Wl,--whole-archive -L../A -lA -Wl,--no-whole-archive How would I do the equivalent on...

Internal "Tee" setup

I have inherited some really old VC6.0 code that I am upgrading to VS2008 for building a 64-bit app. One required feature that was implemented long, long ago is overriding std::cout so its output goes simultaneously to a console window and to a file. The implementation depended on the then-current VC98 library implementation of ostream...

Make Visual Studio to show All Compile Errors!

Visual studio does not show all the compile errors at once. for example one time it says I have two errors and when I fix them then 102 more compile errors are showing up and these new errors are not dependent on those two previous errors. How can we tell it to go through all the code and show all compile errors at once ...

Setting SQL database Permissions for Visual Studio Data Config Wizard

Hello, Stackoverflow! I'm new to SQL. I have created a new database in SQL Server Management Studio, and am now trying to attach it to a windows forms project in Visual Studio via the built in Data Configuration Wizard. Currently, whenever I try to attach the database file, I get a permissions error: "You don't have permission to open...

Opening Office Documents in Visual Studio Solution Folders

Is it possible to directly open an Office document that's in a Visual Studio solution folder? Double-clicking the file does nothing. In VS Team System 2008 Development Edition, you can right-click on the solution folder and select the 'Open Folder in Windows Explorer' option. Then the file can be opended by double-clicking it, but that ...

Change the Skin of the Designer for Windows Mobile In VS

Is there a way to change the skin you see in Visual Studio from the standard form? I have a skin I use for my emulator. I would like to see that skin in my Visual Studio designers. Anyone know a way to do that? ...

Is there a 2003 compatibility setting in Visual Studio 2008 (compiler compatibility, not project / solution files)

Hello, I have a Visual Studio 2003 solution that I've opened with VS2008, and it converted successfully. However, it won't build because the code contains some things that were acceptable under Visual Studio 2003, but simply don't fly under Visual Studio 2008. Changing the code would be really difficult in my particular situation. Is th...

Visual Studio 2008 - App_webreferences and dynamic urls

When you add a web service reference in VS 2008 Web site project, you get a new folder in App_webreferences. This contains a disco,wsdl and discomap file. Additionally, you get a key/value pair in the web.config which contains the endpoint URL. Within the disco,wsdl and discomap files, the URL is strewn about leaving many places to chan...

Creating a masterpage in Visual Studio .NET

Simple question, ok a contentplaceholder is implemented for Page-specific content. What about header region, advertisment, recommended books, footer etc 1- What do you insert this as? 2- how do you adjust the size the way you want it? ...