visual-studio-2010

VSTO Excel Add-In with Visual Studio Express

你。 提交于 2020-01-02 06:06:21
问题 I want to create an add-in (a ribbon precisely) for MS Excel by using Visual Studio C# 2010 Express. I have searched and read about it here and here and somewhere else. However, when I want to create a new project I don't see any template as described, I don't see even the Office tab. Is it because I am using the Express edition? I think it shouldn't be. Because in this official comparison they say all editions are capable of office development. What can I do to develop this add-in? 回答1:

Copy vtkImageData to cv::Mat

末鹿安然 提交于 2020-01-02 06:00:31
问题 I am trying to copy a vtkImageData* class to a cv::Mat structure [my goal is to read an MHD file into OpenCV].. The file is essentially a 3D Matrix so I want to get a vector containing all the slices of the volume. So far, I have come up with this code, reader->SetFileName(INPUT_DATA_1.c_str()); reader->Update(); imageData_1 = reader->GetOutput(); extractVOI->SetInput(imageData_1); int dims[3]; imageData_1->GetDimensions(dims); extractVOI->SetVOI(0, dims[0], 0, dims[1], 75, 75); // Set it to

Dreamweaver CS5 Auto-Format source code like in VS2010 CTRL+K, CTRL+D?

半世苍凉 提交于 2020-01-02 05:46:21
问题 Does Dreamweaver CS5 support auto-formatting feature similar to Visual Studio 2010 CTRL + K , CTRL + D ? Thanks! 回答1: Yes it does. I don't think there is a keyboard shortcut for it, and I don't know how to make one if that is possible, but the auto-formatting is at Commands > Apply Source Formatting. I hope that helps. 回答2: Dreamweaver doesn't actually support auto code format where actually it needed. auto formatting works just on HTML, CSS... but not work for javascript, php etc. 回答3:

Compiling Lua 5.2 alpha under VS2010

拜拜、爱过 提交于 2020-01-02 05:45:14
问题 I'd like to compile Lua 5.2 alpha under visual studio but I'm getting errors and I have no clue how to fix them. error LNK1169: one or more multiply defined symbols found error LNK2005: _main already defined in lua.obj I'd be grateful if anyone could guide me through the creation of a VS2010 solution for Lua 5.2 alpha, or point me to related resources. Thanks in advance. 回答1: You are most probably compiling both luac.c and lua.c in one VS project. To build Lua yourself in VS you need three

What is the little padlock symbol near every Visual Studio tab?

故事扮演 提交于 2020-01-02 05:30:07
问题 Sometimes on the right side of any Visual Studio tab there will be a little padlock symbol. What is it? I thought it was something like source-control, but my solution is not checked in source-control. EDIT: Thank you for your answers so far, BUT I can edit the files. When I am in debug mode it has also this padlock sign, but when I am holding my mouse over the tab I can read "Read-Only". Not in debug-mode (normal edit mode, nothing running), there is also the padlock symbol. But when I hold

“Bogus” Web project requires missing web component message for razor

久未见 提交于 2020-01-02 05:23:14
问题 Using Visual Studio 2010, MVC 3 (release version) I'm getting this error when opening a specific project which was a traditional web forms project to which I've added MVC: "The Web project '' requires missing web components to run with Visual Studio. Would you like to download and install the using the Web Platform Installer now? ASP.NET Web pages with Razor syntax." I have MVC installed and fully running. Other pure MVC and another mixed Web Forms/MVC project open without any issue. Clicking

VSIX extension WPF styles

耗尽温柔 提交于 2020-01-02 05:21:14
问题 I'm building a VS2010 extension (vsix) with WPF. Is there any way to reuse WPF style templates from the visual studio itself to make my control look native to Visual Studio? A the moment I can use expressions for brushes like this: xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0" Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}" That's not enough, however. Can I apply a style to the whole TabControl or Label? 回答1

Moving the HelpLibrary to a different location

拈花ヽ惹草 提交于 2020-01-02 04:48:10
问题 I have an SSD as system drive (C:) and it's a real lifesaver, however the free space is a premium value here, so I wish to keep non essential files away from this drive. One of the major disk 'eater' is the VisualStudio HelpLibrary used in Local Mode. I have searched on the net, but with no luck, how to move this location (C:\programdata\Microsoft\HelpLibrary) to a different path on a normal hard drive (e.g. D:\HelpLibrary). There is a way to do this with Visual Studio or we need to use some

Is it possible to extend Intellitrace events?

有些话、适合烂在心里 提交于 2020-01-02 04:48:05
问题 Specifically, what I'd like to do is raise new events from my apps and libraries, similar to those exposed by ADO.NET. Real life scenario: a patch for NHibernate that shows executed queries even when they are cached (and, therefore, don't reach the ADO.NET layer) I found a lot of documentation about using Intellitrace and intellitrace, but none about generating it. Is this even possible? Or is everything hardcoded in the guts of VS? 回答1: Check out this example to see how you can define your

VSTO project with multiple versions of office installed

。_饼干妹妹 提交于 2020-01-02 04:42:28
问题 I currently have office 2010 installed, and am trying to assist a coworker who's still using 2007 with VSTO solution. This is turning into a mess since my copy of visual studio thrashes the project files updating them to point to the O2010 dlls. If I were to install office 2007 beside 2010 would I be able to open the solution without the upgrade wizard mangling everything, or are my only options making significant architectural changes to the solution or reverting to O2007 until my employer