com

Can I make my private DirectShow filter discoverable by Moniker by external programs?

喜夏-厌秋 提交于 2020-01-05 08:09:21
问题 This is a long shot but if I could do this it would save me time and a hassle. I have a DirectShow video filter that is a typical external DLL (AX file) that feeds video to Skype. I already know how to use a filter privately. However, I don't know if it's possible to make a private filter, one that is embedded in an EXE and is not an external DLL, discoverable by external programs. As far as I know, the main way DirectShow filters are made visible is via registering them in the Registry as an

regasm /codebase works but file generated with regasm /codebase /regfile does not

喜夏-厌秋 提交于 2020-01-05 07:37:07
问题 I have a COM visible dll suitable for 32 and 64 bit architechtures that I use to add a menu item to the windows explorer context menu. Using "regasm myassembly.dll /codebase" I register the dll and see the new menu item. Great. Unregistering works fine also. Now I want to create a .reg file so I can add the menu item to non development machines. I use "regasm myassembly.dll /codebase /regfile" that produces a reg file that I can import with regedit. The problem is, after importing the .reg, I

Import .TLB file gives “cannot open source file x.tlh”

烂漫一生 提交于 2020-01-05 04:23:27
问题 I'm updating a VS2010 C++ project to VS2019. The project is importing several tlb files, and for each of these, VS2019 is giving an error that it "cannot open source file" for the .tlh file. One of these is from a DLL that I've also upgraded (written in C#, built and registered OK in VS2019), and 2 others are 3rd party tlb files. Here's an example of the import statement (in my header file)... #import "../ExcelInterop/bin/Debug/ExcelInterop.tlb" raw_interfaces_only, raw_native_types, no

Use Flash ActiveX as registration free

Deadly 提交于 2020-01-05 04:18:10
问题 I have a game that uses flash activex component. The problem is I need a specific version of flash. I don't want to register the component over the existing higher version which can cause big security issues. I only want to use it for my application. I've heard about registration free com technology using a manifest file for my application but didn't found any information on using it with flash activex or even its possible. So my question is it possible to us the flash activex component as a

How to create a .cdx file from InChI with ChemDraw/Python?

我是研究僧i 提交于 2020-01-05 04:17:18
问题 I would like to create a ChemDraw .cdx file from an InChI with Python. This answer gives a solution for cdx --> InChI . The minimal example below cdx_to_inchi works fine, but I could not figure out how I can get inchi_to_cdx to work. import comtypes.client as w32 def cdx_to_inchi(cdx): ChemDraw = w32.CreateObject("ChemDraw.Application") ChemDraw.Visible = False Compound = ChemDraw.Documents.Open(cdx) # opens existing file inchi = Compound.Objects.Data("chemical/x-inchi") print(inchi) ChemDraw

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)): ActiveX and C# Console Application

僤鯓⒐⒋嵵緔 提交于 2020-01-05 02:23:31
问题 So, I am playing around with ActiveX and C# and ways how both of them can work together. the thing is I have hit the wall right in the beginning with mentioned error. Steps I have followed: In VS2010 I selected MFC ActiveX Control project. Then I added a method "SHORT Multiply( SHORT a, SHORT b);" by clicking the Add method option in the menu that pops when you right click _DProjectname under ProjectnameLib in solution explorer. The code for the method is as follows: SHORT

Return an IOleCommandTarget from processing WM_GETOBJECT in a NativeWindow

你。 提交于 2020-01-04 17:13:28
问题 I am trying to retrieve an IOleCommandTarget reference from a panel control handle, so that I can call IOleCommandTarget.Exec() on it. NativeMethods.IOleCommandTarget target = null; if (GetObjectFromHandle<NativeMethods.IOleCommandTarget>(panel.Handle, out target)) { Guid guidCmdGroup = commandID.Guid; handled = (target.Exec(ref guidCmdGroup, commandID.ID, 0, null, 0) == NativeMethods.S_OK); } private static bool GetObjectFromHandle<T>(IntPtr hwnd, out T value) { Guid guid = typeof(T).GUID;

How to register UDF/RTD within VSTO project

折月煮酒 提交于 2020-01-04 14:13:51
问题 All, This is a follow up for my question here. My setup: Visual Studio 10 Language C# Excel 2007+ Windows XP+ What I would like to achieve is this: Create VSTO addin for Excel with a custom Ribbon component and a custom Task Pane Create an RTD server Create some UDF's that wrap the =RTD() -calls for the Excel users Have the clients install the Addin through a ClickOnce installation Apart from the last requirement, I am basically done. The only problem I have is to get the RTD server and the

How to register a Property Handler on folders?

一世执手 提交于 2020-01-04 08:19:06
问题 I built a virtual filesystem (not a namespace extension) for Windows which acts as a frontend of our document management server consisting of files and folders. In order to be able to display some metadata of the DMS objects in Windows Explorer as additional selectable columns, I successfully provided properties to the Windows Property System by implementing a COM Property Handler. Wheras normal property handlers focus on specific file types for which they feel responsible, my Property

How to hide the cursor in windows when dragging and dropping (possibly in python, or another language)

陌路散爱 提交于 2020-01-04 06:15:40
问题 After hours of searching google, with little luck, I'm wondering if anybody knows how to either hide the cursor, or set a custom cursor (which could be made blank) in Windows when dragging and dropping. I'm writing a program which draws its own mouse using openGL, and normally the mouse hides just fine, but when I drag files onto the program's window, the windows cursor shows the drag-and-drop square and will not hide. ShowCursor(False) and SetCursor(None) (in python) are inconsistent for