visual-studio-2008

How can I stop Visual Studio running all my web services

安稳与你 提交于 2019-12-21 06:50:59
问题 How to stop Visual Studio 2008 from automatically running my web services. I have a large Visual Studio 2008 solution that contains a number of web app projects and also several wcf web services. I have set the solution to have only one startup project, yet when I right-click on the web app project and select "Debug" > "Start New Instance" there appear multiple WebDev.WebServer icons in the system tray. There is one for every web service in the project. Note : My web app project does have one

Calling C++ unmanaged member functions from C# when member functions were not exported?

对着背影说爱祢 提交于 2019-12-21 06:16:40
问题 So I have an unmanaged DLL that exports only a C style factory method that returns a new instance of a class (simplified here to look simple). hello.h #if defined(HWLIBRARY_EXPORT) // inside DLL # define HWAPI __declspec(dllexport) #else // outside DLL # define HWAPI __declspec(dllimport) #endif struct HelloWorld{ public: virtual void sayHello() = 0; virtual void release() = 0; }; extern "C" HWAPI HelloWorld* GetHW(); hello.cpp #include "hello.h" struct HelloWorldImpl : HelloWorld { void

Calling C++ unmanaged member functions from C# when member functions were not exported?

折月煮酒 提交于 2019-12-21 06:16:09
问题 So I have an unmanaged DLL that exports only a C style factory method that returns a new instance of a class (simplified here to look simple). hello.h #if defined(HWLIBRARY_EXPORT) // inside DLL # define HWAPI __declspec(dllexport) #else // outside DLL # define HWAPI __declspec(dllimport) #endif struct HelloWorld{ public: virtual void sayHello() = 0; virtual void release() = 0; }; extern "C" HWAPI HelloWorld* GetHW(); hello.cpp #include "hello.h" struct HelloWorldImpl : HelloWorld { void

Disable design view on code-behind page

淺唱寂寞╮ 提交于 2019-12-21 06:08:02
问题 I often hit F7 when viewing the .aspx page I am working on to get to the code-beind, but sometimes just out of natural habit I hit F7 again (not sure why, but it happens often enough to be frsutrating). Hitting F7 on the code-behind switches to design view for the .aspx which often times takes a while to render. I already have 'source view' as the default open, but I would like F7 when in the code-behind to swap back to the .aspx source instead of design... is this possible? 回答1: http://www

How do I get intellisense for WCF Ajax Services?

怎甘沉沦 提交于 2019-12-21 05:32:35
问题 I've finally got Intellisense working for JQuery by applying patch KB958502 to Visual Studio 2008 and including this line: /// <reference path="JQuery\jquery-1.3.2.js"/> at the top of my .js files. Now I'm trying to figure out how to get JavaScript intellisense for the client proxies generated by the ScriptManager's ScriptReference elements (as shown here): <asp:ScriptManager ID="ScriptManager1" runat="Server" EnablePartialRendering="false" AsyncPostBackTimeout="999999"> <Services> <asp

Getting 64-bit CPUID sample code to compile in VS2008

好久不见. 提交于 2019-12-21 05:16:31
问题 I'm trying to get some c & ASM sample code I found running in Visual Studio 2008. I don't think the problem is the difference between VS 2005-2008. This example is supposed to get the CPUID on 64-bit systems. (My attempts getting the ASM-only 32-bit examples to compile failed too) I can copy and paste this code into a new project, but I have not been able to build it. I've tried a few different VS project templates with no success. I believe I followed the instructions all the way. Can

Visual Studio 2008 HTML formatting - does it ever work?

此生再无相见时 提交于 2019-12-21 05:13:15
问题 It's another Visual Studio 2008 HTML formatting question...I think I have either found a bug in the infamously bad VS HTML formatting, or I'm doing something wrong. Here's what I'm doing: I remove all client side tags via: Tools -> Options -> Text Editor -> HTML -> Format -> Tag Specific options I then add b and span tags: alt text http://www.xtupload.com/new/thumb-3BB0_49B92330.jpg I press CTRL+E,CTRL+D and I get these two differing results: 1 alt text http://www.xtupload.com/new/image-CBF1

“Attach to Process” as a post-build event

一个人想着一个人 提交于 2019-12-21 04:38:13
问题 I have an application that runs hosted under the "w3wp.exe" process. While debugging, I often find myself following these steps: 1 - Make some change 2 - Build the project 3 - Attach to "w3wp.exe" using the "attach to process" dialog under the Tools menu. 4 - Perform some action in the application to make my code execute, so I can step through it in the debugger I'd like to automate step 3 in the post-build script, so that the IDE automatically attaches to the process after the build is

How Do I Downgrade a C++ Visual Studio 2008 Project to 2005

倖福魔咒の 提交于 2019-12-21 04:37:15
问题 How can I downgrade a C++ Visual Studio 2008 project to visual studio 2005? Maybe there is a converter program that someone knows of or otherwise a process that I can undertake. Thanks. 回答1: I have no idea how well it works, but here's an open source converter tool: http://sourceforge.net/projects/vspc that was an extension to the tool outlined in this article: http://www.codeproject.com/KB/macros/vsconvert.aspx 回答2: I always hate to edit the .sln/proj files by hand, since they can be so

Can I customize the intellisense value shown when hovering while debugging in visual studio?

混江龙づ霸主 提交于 2019-12-21 04:31:22
问题 When I hover over a variable in visual studio, it brings up a small control which shows the variable name, type, and a + box for viewing members, etc. But for some types the variable type is replaced by more helpful information such as "{X = 0.0 Y = 0.0 Width = 0.0 Height = 0.0}" for a RectangleF. Is there a way to specify what should be displayed? Is there an IDE setting? Is there a function attribute? I am using visual studio 2008, language is visual basic. 回答1: The DebuggerDisplay