visual-studio-2008

Form inheritance in Visual Studio 2008 doesn't work

て烟熏妆下的殇ゞ 提交于 2019-12-13 01:28:24
问题 Is there a way to fix "The service Microsoft.VisualStudio.Shell.Interop.ISelectionContainer already exists in the service container. Parameter name: serviceType" in VS2008? I just create an empty form, then create form that inherits the first one. When I try to open the inherited form, this message appears. Update: Tried restarting VS Tried rebuilding solution Tried re-creating these forms Doesn't help. 回答1: Try rebuild first and then create derived form. The VS winforms designer instantiate

Visual Studio C++: what's creating these threads?

蹲街弑〆低调 提交于 2019-12-13 01:27:32
问题 I've been using threads for 20 years on Unix and just learning them on Windows, with Visual Studio 2008. My app is dialogs-based MFC GUI, with four main "peer" windows (none of them a "main" window). When MyApp::InitInstance() starts, the Debug->Windows->Threads window reports just a single thread, MainThread. As I step past the first CDialog::Create() call, 3 worker threads are created. I don't know what these are and would love to--and especially would love a reference to a full explanation

Why does visual studio 2008 break my web page?

徘徊边缘 提交于 2019-12-13 01:24:25
问题 I have a aspx page that has a UpdatePanel and a asp timer. the timer tick is the trigger for the update panel. If add anything to the update panel (even a space!) Visual Studio automagically adds the following <Triggers> <System.Web.UI.AsyncPostBackTrigger ControlID="tm1" EventName="Tick"></System.Web.UI.AsyncPostBackTrigger> </Triggers> Even though the page has already registered the following (albeit in the same triggers section) <Triggers> <asp:AsyncPostBackTrigger ControlID="tm1"

LibGD library is not working: crash when saving image

爷,独闯天下 提交于 2019-12-13 01:18:58
问题 I've been seeking for JPG saving library for long time for c++, but i cant seem to get anything to work. Now i am trying use LibGD: What im doing wrong ? It seems to work, but the saving crashes. Code: ... #pragma comment(lib, "bgd.lib") #include <gd/gd.h> ... void save_test(){ gdImagePtr im; FILE *jpegout; int black; int white; im = gdImageCreateTrueColor(64, 64); black = gdImageColorAllocate(im, 0, 0, 0); white = gdImageColorAllocate(im, 255, 255, 255); gdImageLine(im, 0, 0, 63, 63, white);

How to create a Web Setup project in VS 2010 for a MVC2 application?

旧时模样 提交于 2019-12-13 01:15:14
问题 I need help to create a Web Setup project for an MVC2 application I made at home, since I have VS 2010 there and I need to show people at the office, who have VS 2008 + sp1 + MVC2. Thanks 回答1: By adding a web setup project to your solution: 回答2: Create a web setup project; Add project output - select your web project - select primary output - click ok Add project output again - select your web project - select content files - click ok 回答3: Customize it by adding Custom Actions such as IIS

Template function with dependent type parameters within template class

萝らか妹 提交于 2019-12-13 00:47:23
问题 I've been trying to do this simple stuff and Visual studio 2008 does not seems to like it. template <class CharType> class SomeClass { public: template <class T1, class T2> static bool SomeOperator(const typename T1::const_iterator& p_Begin1, const typename T1::const_iterator& p_End1, const typename T2::const_iterator& p_Begin2, const typename T2::const_iterator& p_End2) { // do some stuff.. } }; And call it with something like this: std::wstring a; OtherString b; SomeClass<wchar_t>:

SSRS report to display Outlook type calendar - People x Days x Activities

↘锁芯ラ 提交于 2019-12-13 00:26:22
问题 I am after a pattern/view/opinion/tip/weblink from an SSRS/SQL expert on how I might create a report that enables me to list something like the following: [----Person----] | [29-Sep-11] | [30-Sep-11] | [01-Oct-11] | [02-Oct-11] | [03-Oct-11]... and so on... Bob Bobertson | Activity A | Activity B | ----Empty--- | Activity C | ---Empty--- | Rob Robertson | Activity D | Activity E | Activity F | Activity G | ---Empty--- | ...and so on... Date columns are dynamic - example, 10 days on from today

Define “dynamic” enum

ぃ、小莉子 提交于 2019-12-13 00:23:05
问题 I'm working on this project and I have a large number of "services" to execute. I need to have this service codes so I can verifiy and make decisions according to selected services by it's code. I'm tring to define this enum and get its values from the web.config so I can change them easily. public enum ServiceCodes { Transfer= Convert.ToInt32(ConfigurationManager.AppSettings["servTransfer"]), ChangePlate= Convert.ToInt32(ConfigurationManager.AppSettings["servChangePlate"]) } But I get this

WPF - Windows 7 - 64bit - No content rendered

梦想与她 提交于 2019-12-13 00:07:48
问题 Dev machine: Windows 7 64bit desktop. Visual Studio 2008 Professional. Not sure what the cause is but the behavior is this: I can develop in VS on this desktop just fine. Have done some class libraries and windows forms with no issues from what I have seen. However in WPF project I cannot get any content to render in window when I run the project. A simple hello world in wpf like this: <Window x:Class="test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/

How does one customize VS 2008 Database Item Templates?

岁酱吖の 提交于 2019-12-12 23:56:54
问题 Whereas there is a set of richly informative pages describing Visual Studio templates for code projects (projects and items) in MSDN, there doesn't seem to be a thing for database projects. If I am wrong, please steer me in the right direction. I have VS2008 Professional. Anyway, my question has to do with the new database items. Presently, the folder C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Templates\Database Project Items contains 6 template files and one other file,