com

directshow “Color Space Converter” filter configuration problem (VMR windowless renderer)

跟風遠走 提交于 2019-12-24 10:38:32
问题 I'm using VMR to mix a bitmap with a video stream. I run the renderer in windowless mode. Since I need to have more than 1 stream on the renderer, I add the renderer to the graph first and then use IFilterGraph2::RenderEx with AM_RENDEREX_RENDERTOEXISTINGRENDERERS. Everything works fine most of the time, but I have one .avi file that will render fine with RenderFile, but ends up displaying all black when rendered in my graph. I compared the two graphs in graphedit, and they're the same:

How to use python and windows com in pyramid (threads)?

て烟熏妆下的殇ゞ 提交于 2019-12-24 10:37:58
问题 I'm connecting to MS Word by win32com.client.Distpatch function and on the second request i've got error: 'CoInitialize has not been called.' I've found this topic: http://www.velocityreviews.com/forums/t328097-coinitialize-error-when-using-adodbapi.html and got that I have to call of CoInitialize in new thread. So question is where to call CoInitialize function in pyramid. 回答1: So i added call of CoInitialize in function: @subscriber(NewRequest) def new_request_subscriber(event): import

Maintain the correct version for a COM dll referenced in a .NET project

随声附和 提交于 2019-12-24 10:37:42
问题 I want to reference a COM DLL in a .NET project, but I also want to make sure that the interop DLL created will have the correct version (so that patches will know when the DLL must be changed). If I use TlbImp I can specify the required version with the /asmversion flag but when I add it directly from Visual Studio it gets a version that has nothing to do with the original COM DLL's version. I tried changing the version in the .vcproj file <ItemGroup> <COMReference Include="MYDLLLib"> <Guid>

How to debug why a VB6 application using my .NET ActiveX control does not register for events?

隐身守侯 提交于 2019-12-24 10:16:46
问题 My original query was here, to give you an idea of how I did the implementation. Replacing a C++ ActiveX component with a .NET implementation? The C++ ActiveX control I am replacing uses COM events. When one of the VB6 client applications (VB6 I believe, as depends.exe tells me it uses msvbvm60.dll ) instantiates and uses my replacement, it does not register for any of the events, and unfortunately, the way it works is that after a particular method call has completed, the client application

Callbacks in COM objects

为君一笑 提交于 2019-12-24 10:03:06
问题 I have an ATL project which exposes a COM object. I would like my COM object to call a function specified by the consumer from time to time, or via some other means of notifying the consumer from time to time. I have tried adding a method in CerberusNative.idl in order to take void function pointers which I would like to call from the COM instance side of things so that the consumer would just need to tell the COM object upon initialization what its callbacks are: interface ICerberusSession :

VSS Hardware provider

核能气质少年 提交于 2019-12-24 09:54:26
问题 I've been trying to follow the instructions to install the example VSS hardware provider that comes with the Windows SDK. Unfortunately COM refuses to register the DLL, giving the following output: Unregistering the existing application... - Create the catalog object - Get the Applications collection - Populate... - Search for VssSampleProvider application... - Saving changes... Done. Creating a new COM+ application: - Creating the catalog object - Get the Applications collection - Populate..

transfer interfaces from delphi dll to vb.net

怎甘沉沦 提交于 2019-12-24 09:01:24
问题 I have a Delphi written DLL that exposes some interfaces to a vb.net application. The interfaces inherit from IUnknown (but this could be changed if required), simplified example: IWindow = interface(IUnknown) ['{E9A11D0B-8A05-4CBA-83FA-C5CC6818DF6E}'] function GetCaption(var Caption: PChar): HRESULT; stdcall; end; Same interface in vb.net application: <ComImport(), Guid("E9A11D0B-8A05-4CBA-83FA-C5CC6818DF6E"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> Public Interface IWindow

How to set Content-Type of a Webbrowser Control?

隐身守侯 提交于 2019-12-24 08:24:47
问题 Is it possible to set the Content-Type of a document in a webbrowser control? For example how can I show an XML document rendered as XML in a webbrowser control by using DocumentText? 回答1: Try add an extension to your IMoniker::GetDisplayName implementation. This will cause the URL moniker to look under HKEY_CLASSES_ROOT.??? keys for mime types. Then you can use the webbrowser's documen's IPersistMoniker interface to load the moniker. 来源: https://stackoverflow.com/questions/2570592/how-to-set

C++ setTimout function?

陌路散爱 提交于 2019-12-24 08:14:12
问题 What's the cheapest way for a JavaScript like setTimeout-function in C++? I would need this: 5000 miliseconds from now, start function xy (no parameters, no return value). The reason for this is I need to initialize COM for text to speech, but when I do it on dll attach, it crashes. It works fine however if I do not call CoInitialize from dllmain. I just need to call CoInitialize and CoCreateInstance, and then use the instance in other functions. I can catch the uninitialized instance by

cannot call the Body property for “HTMLFile” object in vbscript

こ雲淡風輕ζ 提交于 2019-12-24 08:09:04
问题 I have a VBSCript File that uses the MSXML2 library to get a response from a website; i'm trying to write that response to an HTMLFile object's body's innerHTML; although the object itself is declared with no issues whatsoever, VBS returns an "OBJECT REQUIRED ['OBJECT']" Error when I try to access the body property. Here's the code I have so far. const URL = "https://mywebsite.aspx" Dim o,user,pass,html Set o = CreateObject("MSXML2.ServerXMLHTTP.6.0") o.open "GET", URL , False o.send 'Error