com

Retrieve javascript array object with C++ using DISPID_NEWENUM fails on IE9

ⅰ亾dé卋堺 提交于 2020-01-14 04:56:06
问题 following a similar question i answered some time ago, i found out that when trying to enumerate the object, using IDispatch::Invoke(DISPID_NEWENUM,...) fails with DISP_E_EXCEPTION on IE9. This happens with IDispatch and IDispatchEx , on any javascript array. needless to say that the code works great on IE6-IE8, and fails only on IE9. The same question also appears in the MSDN dev forums with no luck so far. Here's a code snippet to demonstrate what I tried to do. notice that pDispatch is the

How to make COM ActiveX object work in IE 64 bit?

旧街凉风 提交于 2020-01-14 01:38:28
问题 I have a COM object embeded in ASP.NET page using <object classid="clsid:XXX..."> . It works in IE 32 bit, but does not work in IE 64 bit - can't access its functions. There are no error messages, no event logs where I can get some information. The dll is in C#, includes COM visible class, compiled for Any CPU (though I also tried x86), and registered during client installation by executing regasm. This creates registry keys, well everything works fine except for IE 64. I searched internet

Create COM-Object from own C# Dll in Progress 4GL

落爺英雄遲暮 提交于 2020-01-13 19:53:28
问题 I'm wondering how I can create a Com-Object from my own C# DLL. I made the following Class in C#: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace ProgressNet { [Guid("a9b1e34d-3ea3-4e91-a77a-5bcb25875485")] [ClassInterface(ClassInterfaceType.AutoDual)] [ComVisible(true)] [ProgId("ProgressNet.Server")] public class NetServer { public NetServer() {} [DispId(1)] public string GetString() { return "Some String";

Is there a way to automate BLF to CSV conversion in Vector CANoe?

眉间皱痕 提交于 2020-01-13 16:56:52
问题 My first approach was using python-can (as it added support for parsing BLF files with 2.0.0 release) like this: import can filename = "logfile.blf" logging = can.BLFReader(filename) for msg in logging: print(msg) but that resulted in an error that I reported to the developer. BLF format is proprietary and somewhat secret so I understand supporting it in an open-source library can be problematic. So then I looked into doing it using a solution provided by Vector : COM , but so far haven't

Retrieving Outlook 'Inbox' and 'Sent' folders in Delphi using OLE

别来无恙 提交于 2020-01-13 16:45:09
问题 What's the best way to go about extracting Outlook folders from within Delphi? Ideally I'd like to retrieve the Inbox folder and any other folders within it. I don't require the email headers/message just purely the folder names. Delphi BDS 2006 回答1: See here for Outlook's Object Model. Below displays the names of folders in the Inbox: procedure TForm1.Button1Click(Sender: TObject); var Outlook, oNameSpace, Inbox: OleVariant; i: Integer; begin try Outlook := GetActiveOleObject('Outlook

COM returns type that does not implement any interface

安稳与你 提交于 2020-01-13 13:12:10
问题 I need to automate some tasks in Adobe InDesign CS3 from a .NET 4.0 application. I've added a reference to the InDesign Type Library using the Add Reference dialog in Visual Studio. It genereates an interop assembly, which correctly includes all of the interfaces and types declared in the type library. I haven't installed any Adobe SDK, as the type library was available in Visual Studio without installing anything but Adobe InDesign CS3. The interesting types in the interop assembly for me

calling COM method with Foo(…, [out] BSTR * value) from VBScript

时光怂恿深爱的人放手 提交于 2020-01-13 10:50:08
问题 Ist it possible to cal a COM method with the signature HRESULT Foo(BSTR in, [out] BSTR * out1, [out] BSTR * out2) from VBScript? The following: Dim a; Dim b; component.Foo "something", a, b gives an error about incompatible types. I still could change the signature of the method. 回答1: Looks like output parameters are not supported; while ByRef / [in, out] parameters are, but only on VARIANT parameters. From the following KB article: INFO: Type mismatch errors when you pass parameters from an

Assembly has a strong name, but I"m getting the error that says a strong name is needed

橙三吉。 提交于 2020-01-13 08:16:49
问题 I am trying to load a third party COM dll into my application. Everything builds fine but when I run the application I keep getting this message from my application: Could not load file or assembly '"assembly", Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044). When I do a sn -vf "assembly" it says the assembly is valid. Has anyone seen this type of behavior before? 回答1: The assembly

Assembly has a strong name, but I"m getting the error that says a strong name is needed

可紊 提交于 2020-01-13 08:16:47
问题 I am trying to load a third party COM dll into my application. Everything builds fine but when I run the application I keep getting this message from my application: Could not load file or assembly '"assembly", Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044). When I do a sn -vf "assembly" it says the assembly is valid. Has anyone seen this type of behavior before? 回答1: The assembly

Reading data from Excel in Haskell

淺唱寂寞╮ 提交于 2020-01-13 07:56:09
问题 I would like to get data from .xls files without manually opening Excel. One possibility is to use COM automation. There are the com-1.2.3 and hdirect packages, but I can't find any examples of how to use these packages with Excel. Does anyone have a solution for this? 回答1: With something like this, if your needs are relatively simple, I've found that it's more straightforward to find/write a command line executable that just pulls out a csv from the xls file. Then you invoke that executable