visual-studio-2010

Building a solution which contains a windows service and a windows forms project

怎甘沉沦 提交于 2019-12-25 05:38:14
问题 I have a solution which contains a windows service and a windows forms project. Is it possible to build the solution and have the output from both project in one folder ? The ouput folder should contain the windows service exe and also the win forms exe files. 回答1: Use copy in both projects build events. Like this copy /Y $(ProjectDir)$(OutDir)output_file_you_want_to_copy C:\some_dest_dir 回答2: Give both projects the same OutputPath with a fully qualified path that includes $(OutDir). You'll

MFC SetTitle() causing weird debug assertion

别来无恙 提交于 2019-12-25 05:36:05
问题 Whenever I call SetTitle() in my MFC application, I get a debug assertion failed. But I haven't set to assert anything; in truth I'm not really sure how to explain what's going on. I actually get three debug assertions that loop round continuously about a dozen times before the application continues. If I keep clicking "Ignore" then after about 20 clicks the boxes go away and the applciation continues running as normal. The first two assertions are thrown from wincore.cpp lines 952 and 954.

Unwanted Data Dump to Screen in Localhost

筅森魡賤 提交于 2019-12-25 05:30:52
问题 I'm guessing if you've seen something like this before, you know what it is. Personally, I don't know where to start with describing this issue other than it looks like all of my standard output is somehow going to the console. From what I can tell, this stuff is not called in my code, but then I generally work with Windows Forms, not ASP.NET. I don't typically debug using localhost, but I wanted to make sure I had a lot of ASP.NET login security features removed before updating my personal

Can't remove items from List with remove()

徘徊边缘 提交于 2019-12-25 05:25:58
问题 Hi I would like to remove account names by using a foreach in method readInput that sends the accounts to method DisableADUser that would disable the accounts and remove the name from the global List invalidAccounts (whole code line 7) if the operation is successful. I have tried using the Remove method and placing it in both the if and else condition in the DisableADUser method but it does not work. How should I go about resolving this? Thanks in advance. :) readInput method (lines 1- 13) /

How do I activate regex search in Visual Studio 2010?

孤街醉人 提交于 2019-12-25 05:25:09
问题 This could be an embarassingly easy quesiton but If I search the following using the find dialogue of VS2010 with \{.*?\} I don't find anything even though it should find { return Stock ==5;} internal bool IsUnableToBeSet //{} { get { return Stock == 5; } } if I search this in NotePad++ it works. What am I doing wrong in the VS2010 environment? (I've unchecked all options except for "Use Regular expressions" ) [EDIT] I've just read the coding horror site for VS2005 but is this still the case

SDL strange linker error in MVS

浪子不回头ぞ 提交于 2019-12-25 05:24:07
问题 I'm stumped trying to link the SDL libraries against a new C++ Win32 Console application in MVS 2010. I downloaded the latest SDL development libraries, and did the usual steps: Added the includes to the include path (pic) [This works fine, as MVS finds the #include files] Added the library path for SDL (pic) [This seems to work fine, as removing this additional path gives the error "error LNK1104: cannot open file 'SDL.lib'"] Added SDL.lib and SDLmain.lib to the linker additional

How is an ActiveX wrapper created with FireBreath?

不羁岁月 提交于 2019-12-25 05:22:32
问题 I've been through the Windows and Mac video tutorials on the FireBreath (FB) website, through all the documentation and even seen the ActiveX example that a person has provided. It's been an entire week, but I still can't understand how to create a new project in FB. The only thing explained on the website is how to get the FB sln compiled, where the PluginTest example is already coded. Even for the ActiveX example, only the code is given. It isn't explained as to how they created the project

Error with Windows Phone Emulator

好久不见. 提交于 2019-12-25 05:18:47
问题 I am trying to get my windows phone development up and running again. I am having serious issues with the emulator where it looks like this http://imgur.com/qM4uj Here is my info. Running windows 8 on a computer with quad core proc and good video card. Any ideas? Thanks! 回答1: This page might help: http://social.msdn.microsoft.com/Forums/en-US/wptools/thread/5b659eea-9a4f-45ce-8418-b9097d586197/ Emulator Video appears corrupted running XNA or Silverlight + XNA game. The emulator images

controls for list of objects

人盡茶涼 提交于 2019-12-25 05:17:27
问题 I am trying to create some type of list of controls for multiple objects. The object is for a pattern displayed on a screen and has several different attributes such as duration, offset, next pattern, pattern index. I would like to be able to create an iterable list of controls so I can easily set the different attributes of each pattern in my GUI. Here is a rough draft of the form I'm creating. Here is a link to the form i'm creating. Each line is a collection of attributes for a pattern. I

Why ExecuteNonQuery() returning -1 without any exception and without inserting the entry in database?

我的未来我决定 提交于 2019-12-25 05:15:43
问题 I have following function: public Exception createTopic(Topic t) { query = "insert into [DisData].[dbo].[discussions]([title],[description],[usrid],[dateadded],[desid],[likes],[shares],[visit],[replyto],[sno]) values(@title,@des,@uid,@dateadded,@did,@like,@share,@visit,@replyto,@sno)"; try { com = new SqlCommand(query, con); com.Parameters.AddWithValue("@title", t.getTitle()); com.Parameters.AddWithValue("@des", t.getDescription()); com.Parameters.AddWithValue("@uid", t.getUsrID()); com