com

Lotus Domino on 64 bit system: Could not create automation object, error 208

对着背影说爱祢 提交于 2019-12-12 01:42:44
问题 I have created a C# .NET DLL with Release/AnyCPU as per http://www-01.ibm.com/support/docview.wss?uid=swg21230705 and successfully registered it for COM Interop. When I open my 32bit Excel on a 32bit Windows 10, and use the code Private Sub CommandButton1_Click() Dim obj As Variant Set obj = CreateObject("MyTest") MsgBox obj.AppendStr("This is") End Sub it returns the expected values. When I open 32bit Excel on a 64 bit Windows 8.1, and use the same code, it also returns the expected values.

Azure Service Fabric register COM component

久未见 提交于 2019-12-12 01:42:04
问题 We want to deploy a ASP.NET WebApi service to Azure Service Fabric. The service uses a mathematical COM component (32bit) that will be registered on a regular machine with regsvr32. The solution works perfectly on a local Service Fabric cluster (e.g Windows Server 2012 R2). Unfortunately there is no managed dll available for that component and we do not want to rewrite the code all by ourselves. So my question is, can we deploy this service to an Azure hosted Service Fabric? And if yes, how?

Dependency (Newtonsoft.JSON) not being loaded when exercised through my COM interface. Dependcy containg different version sub dependency?

守給你的承諾、 提交于 2019-12-12 01:36:13
问题 I have a native client talking to a managed class library via a COM interface. I am using a project (AutoRest - OS project from MSFT), which appears to take a dependency on NetwtonSoft.JSON. I am calling into this AutoRest project (I'm taking a dependency on AutoRest.Core) with a class library wrapper I've written. This class library wrapper defines a COM interface, which is called from a native application. I built a test client for my client library in C# (.NET), which works fine. However,

generating dmp files from an inproc com dll running in dllhost.exe

守給你的承諾、 提交于 2019-12-12 01:26:58
问题 I am writing an inproc com dll that runs in the dllhost.exe surrogate, but I see an issue debugging it. in exe's that I've written, I have a top level exception handler that creates a .dmp file i can load in windbg and then crashes, and I'm unsure of how to do this from dllhost. Is there another way to generate stack dumps from dllhost.exe on a crash? i've seen this page (http://support.microsoft.com/kb/910904), but it seems to involve the component services program. Is there some registry

Not releasing filter com object causing a crash

亡梦爱人 提交于 2019-12-12 01:22:19
问题 I am using Viveks capture filter with vlc (http://tmhare.mvps.org/downloads/vcam.zip) to emulate a capture source. When the filter is open and I close vlc I get a crash. The stack trace indicates that 2 COM objects still exist (Im guessing the filter and pin) which should be released before a CoUninitialize call. My problem is I am not sure where to release the filter and pin COM objects, I have a destructor for the fitler and pin but they are never called when vlc closes. Someone who had a

Object of type 'System.Int32' cannot be converted to type 'System.UInt32&'

早过忘川 提交于 2019-12-12 01:15:29
问题 When I execute the following line of code dispatch.GetTypeInfoCount(ref typeInfoCount); The following exception is thrown Object of type 'System.Int32' cannot be converted to type 'System.UInt32&' using System.Runtime.InteropServices; using ComTypes2 = System.Runtime.InteropServices.ComTypes; public class ComHelper { [ComImport(), Guid("00020400-0000-0000-c000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] private interface IDispatch { void GetTypeInfoCount(ref uint

Directshow - Stop and close a file (but reuse graph and some filters)

人走茶凉 提交于 2019-12-12 01:14:37
问题 I am building a multistream video player. I am currently having issues trying to close a file. Effectively I may have 1 to 4 video files playing at any one time. When I am playing 4 files, then the next sequence only has one, I can't seem to repaint the video panel correctly after removing the source file filter. I must say that I am building and managing the graph manually (to get some extra speed), including connecting all filters/renderers etc. I have looked into GMFBridge, but ultimately

How to Drag and Drop multiple files between Namespace extensions

旧巷老猫 提交于 2019-12-12 00:41:20
问题 I am working on a namespace extension project, I need to implement multiple files drag and drop between Namespace Extensions. I have used DragQueryFile API to find the the number of files. But Always this Function give a crash. Could anyone help me by explaining how we can implement this multiple files Drag and drop. Thanks, Robin 回答1: Here is how I use it void yourclass::OnDropFiles(HDROP hDropInfo) { TCHAR lpszFile[MAX_PATH] = { 0 }; UINT uFile = 0; uFile = DragQueryFile(hDropInfo,

Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)

[亡魂溺海] 提交于 2019-12-12 00:37:01
问题 I'm creating a windows service on a windows 2003 machine, using dsofile to modify custom properties on a bunch of documents. This works fine until I install the service on a win2k8 machine where it gives me the following error: ERROR [2010-09-06 13:17:12,317] An unknown error occured: System.InvalidCastException: Unable to cast COM object of type 'DSOFile.OleDocumentPropertiesClass' to interface type 'DSOFile._OleDocumentProperties'. This operation failed because the QueryInterface call on

WebBrowser ID Access - not in DocumentText but in Page Source

…衆ロ難τιáo~ 提交于 2019-12-11 23:29:49
问题 I am using the WebBrowser object, for web automation purposes on a windows form .Net Framework 4.5 application. In a certain page, I am not able to see the id in my WebBrowser.DocumentText even though I can see it when I open View page source from an actual browser. This is the code that I always use to get the HtmlElement inside a page. var attack = wb.Document.GetElementById("target_attack"); To sum up how can I retrieve an ID that is not inside DocumentText but inside the page source ?