visual-studio-2010

Digitally sign a Visual Studio 2012 VSIX extension

一个人想着一个人 提交于 2020-01-13 13:08:33
问题 I am trying to sign a Visual Studio 2012 extension that is packaged as a VSIX file. I have followed the instructions at http://www.jeff.wilcox.name/2010/03/vsixcodesigning/; however, I am interested in performing signing without specifying a pfx file and password. For example, if I were to call 'signtool.exe', my command line would be: "signtool.exe" sign /n MySubjectName /t 'http://timestamp.verisign.com/scripts/timstamp.dll' /d "MyDescription" MyPackage.vsix I understand that this command

Digitally sign a Visual Studio 2012 VSIX extension

此生再无相见时 提交于 2020-01-13 13:08:12
问题 I am trying to sign a Visual Studio 2012 extension that is packaged as a VSIX file. I have followed the instructions at http://www.jeff.wilcox.name/2010/03/vsixcodesigning/; however, I am interested in performing signing without specifying a pfx file and password. For example, if I were to call 'signtool.exe', my command line would be: "signtool.exe" sign /n MySubjectName /t 'http://timestamp.verisign.com/scripts/timstamp.dll' /d "MyDescription" MyPackage.vsix I understand that this command

How to identify dataGridView cell that was right clicked on for ContextMenuStrip?

帅比萌擦擦* 提交于 2020-01-13 13:04:34
问题 User right clicks on a cell within a DGV, then makes a selection in the ContextMenuStrip. Based on their CMS selection, I want to do something (copy, hide, filter). My problem is identifying the cell that was right clicked on. I was trying to handle this scenario with the following method, but [ColumnIndex] cannot be referenced. private void cmsDataGridView_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { switch (e.ClickedItem.Text) { case "Copy": break; case "Filter On": break;

How to identify dataGridView cell that was right clicked on for ContextMenuStrip?

拜拜、爱过 提交于 2020-01-13 13:01:33
问题 User right clicks on a cell within a DGV, then makes a selection in the ContextMenuStrip. Based on their CMS selection, I want to do something (copy, hide, filter). My problem is identifying the cell that was right clicked on. I was trying to handle this scenario with the following method, but [ColumnIndex] cannot be referenced. private void cmsDataGridView_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { switch (e.ClickedItem.Text) { case "Copy": break; case "Filter On": break;

Open Cv fisherfaces

泪湿孤枕 提交于 2020-01-13 10:43:31
问题 I have this problem, when i run with vs2010 (debug) (open cv 2.4.0) facerec_demo.cpp gaves me the program this error OpenCV Error: Image step is wrong (The matrix is not continuous, thus its number of rows can not be changed) in unknown function, file ......\src\opencv\modul es\core>\src\matrix.cpp, line 801 This error derives me to this line in facerec.cpp (Fisherfaces::train(InputArray src, InputArray _lbls) Mat data = asRowMatrix(src, CV_64FC1); <-- this gets a exeption, not handled. and a

Cancel VS2010 project creation from wizard

十年热恋 提交于 2020-01-13 10:38:51
问题 I created a wizard for a custom template in VS2010 And it works like a charm. But since the wizard contains a form required to finish the creation of the project, i feel that the user should be able to cancel the creation of the project. So my question being.. Is it possible to cancel the creation of a project/template process from inside a wizard implementing IWizard? These are the events i got at my disposal. public void BeforeOpeningFile(ProjectItem projectItem) public void

Why does VS2010 always break on exception from MethodInfo.Invoke?

半世苍凉 提交于 2020-01-13 09:59:28
问题 I have a try/catch around a MethodInfo.Invoke(o,null), and VS2010 is set to never break on Exceptions, but unfortunately the debugger continues to break inside the Invoked method. The method is static, and I've got the Phone Developer Beta installed. Is this a bug or developer error? Thx!! 回答1: Yes, with every exception check-box is un-checked it breaks on only these Invoke exceptions. All the other exceptions work fine. The great news is that an anonymous genius gave me a work-around:

C++ nested lambda bug in VS2010 with lambda parameter capture?

烈酒焚心 提交于 2020-01-13 08:55:32
问题 I'm using Visual Studio 2010, which apparently has some buggy behavior on lambdas, and have this nested lambda, where the inner lambda returns a second lambda wrapped as a std::function (cf. "Higher-order Lambda Functions" on MSDN): int x = 0; auto lambda = [&]( int n ) { return std::function<void()>( [&] // Note capture { x = n; } ); }; lambda( -10 )(); // Call outer and inner lambdas assert( -10 == x ); // Fails! This compiles but fails at the assert. Specifically, n in the inner lambda is

C++ nested lambda bug in VS2010 with lambda parameter capture?

∥☆過路亽.° 提交于 2020-01-13 08:55:03
问题 I'm using Visual Studio 2010, which apparently has some buggy behavior on lambdas, and have this nested lambda, where the inner lambda returns a second lambda wrapped as a std::function (cf. "Higher-order Lambda Functions" on MSDN): int x = 0; auto lambda = [&]( int n ) { return std::function<void()>( [&] // Note capture { x = n; } ); }; lambda( -10 )(); // Call outer and inner lambdas assert( -10 == x ); // Fails! This compiles but fails at the assert. Specifically, n in the inner lambda is

use svn revision number in application version

此生再无相见时 提交于 2020-01-13 08:28:08
问题 In a VS2010 solution (not .NET), I'm looking to include the svn revision number as part of the application version. we do not use makefiles at the moment, only the VS solution/project settings. I'd like to get the working copy revision number at compile time, store it into a variable, so it can be used later on in the code to display the version number. So far, I've successfully used svnversion to get the latest version of the working copy as a pre-built event . "C:\Program Files\CollabNet