visual-studio-2008

How do I rollback a TFS check-in?

Deadly 提交于 2019-12-17 10:12:51
问题 I'd like to rollback a change I made recently in TFS. In Subversion, this was pretty straightforward. However, it seems to be an incredible headache in TFS: Option 1: Get Prior Version Manually get prior version of each file Check out for edit Fail - the checkout (in VS2008) forces me to get the latest version Option 2: Get TFS Power Tools Download Team Foundation Power Tools Issue rollback command from cmd line Fail - it won't work if there are any other pending changes Option 3: Manually

Why are the return values of these doubles -1.#IND?

让人想犯罪 __ 提交于 2019-12-17 09:56:45
问题 I have : double score = cvMatchContourTrees( CT1, CT2, CV_CONTOUR_TREES_MATCH_I1, 0.0 ); cout<<score<<endl; There are values returned as -1.#IND. Other than that, the positive values are normal, like 1.34543. Why does this happen? How do I solve it? 回答1: As Frederic says, it's the result of a 'Not a Number' being formatted by an application built with visual studio on windows. John D Cook has an excellent reference: Windows displays a NaN as -1.#IND ("IND" for "indeterminate") while Linux

How to declare a friend assembly?

喜你入骨 提交于 2019-12-17 08:01:53
问题 I have 2 projects in my solution: Assembly (Basic Library) Test Assembly (NUnit) I had declared the test assembly as friends assembly in first project: [assembly: InternalsVisibleTo ("Company.Product.Tests")] Everything was working fine till I realised that I have forgot to setup the solution to sign my assemblies. So created a snk file and setup the visual studio project to sign the first assembly (Basic Library). Now when I compile the first project, I get following error: Friend assembly

Microsoft Visual Studio and C#: How to Visually Add Events to Controls?

不想你离开。 提交于 2019-12-17 07:48:46
问题 Perhaps this is a stupid question, but for the life of me I cannot find a way to do this. How would one go about adding an event handler to a control in a form in Microsoft Visual Studio (2008) with C#? I can do it manually, but opening the Designer.cs file for the Form, but I cannot find a way to do it through the interface. In MSVC 6, with C++ and MFC, you could right click or some other action, and find a list of all the possible events for that control. Then you select it and it would

Microsoft Visual Studio and C#: How to Visually Add Events to Controls?

↘锁芯ラ 提交于 2019-12-17 07:48:19
问题 Perhaps this is a stupid question, but for the life of me I cannot find a way to do this. How would one go about adding an event handler to a control in a form in Microsoft Visual Studio (2008) with C#? I can do it manually, but opening the Designer.cs file for the Form, but I cannot find a way to do it through the interface. In MSVC 6, with C++ and MFC, you could right click or some other action, and find a list of all the possible events for that control. Then you select it and it would

Why doesn't VS 2008 display extension methods in Intellisense for String class

不羁岁月 提交于 2019-12-17 07:47:58
问题 Since String implements IEnumerable<char> , I was expecting to see the Enumerable extension methods in Intellisense, for example, when typing the period in String s = "asdf"; s. I was expecting to see .Select<char>(...) , .ToList<char>() , etc. I was then suprised to see that the extension methods do in fact work on the string class, they just don't show up in Intellisense. Does anyone know why this is? This may be related to this question. 回答1: It's by explicit design. The problem is that

log4net - Appenders not working in IIS7.5

99封情书 提交于 2019-12-17 06:44:04
问题 I am able to write to a log file using log4net and Cassini/IIS dev server, but when I use IIS7.5, I can't write out to a file. Initially, I got a security exception, so I added requirePermission="false" and the exception went away but no file was created. The trust level is full according to IISM. I can't get this working on my own machine, I'm wondering what's going to happen when I transfer to an ISP (discountASP). Here's the log4net setup: <configSections> <section name="log4net" type=

How to run a “.bat” file during installation?

China☆狼群 提交于 2019-12-17 06:34:19
问题 In a Setup project the executable files such as ".exe , .dll , .js , .vbs" are acceptable but there is no way to run a .bat file in a Custom Action. The question is how to run the *.bat files during installation? 回答1: Well, after much searching and trial and error I have solved this. I'm not sure if this is the best way, but it works. Here's the scenario: I have an application I would like to deploy via a Visual Studio Setup project. In addition to my application files, I would like to create

Changes to parameter not showing on Report Server after deployment

青春壹個敷衍的年華 提交于 2019-12-17 04:36:51
问题 I have 7 parameters (3 multi select of string, 1 DateTime, 3 string values) in my SSRS 2008 report, and I have set all the parameters as null in the default value . It's working fine in my preview window of Visual Studio 2008. But after deployment to my report server, the "NULL" checkbox for the parameter is not checked , causing the report not to get loaded at initially. 回答1: This is "by design": When you first deploy reports, parameters are uploaded with all their settings. Administrators

Can I use Visual Studio 2010's C++ compiler with Visual Studio 2008's C++ Runtime Library?

不问归期 提交于 2019-12-17 04:22:12
问题 I have an application that needs to operate on Windows 2000. I'd also like to use Visual Studio 2010 (mainly because of the change in the definition of the auto keyword). However, I'm in a bit of a bind because I need the app to be able to operate on older OS's, namely: Windows 2000 Windows XP RTM Windows XP SP1 Visual Studio 2010's runtime library depends on the EncodePointer / DecodePointer API which was introduced in Windows XP SP2. If using the alternate runtime library is possible, will