com

Open array declaration lost when regenerating interop.dll with tlbimp.exe from type-lib

孤人 提交于 2019-12-25 03:03:15
问题 I need to regenerate the interop.dll from a type-library. Therefore I fired up TlbImp.exe" foo.tlb /out:interop.dll But in contrast to the original interop.dll , I found out with the object browser (see below) void SetNodeArr(int Size, FOO_NODE[] pArray) // original interop.dll that the open array for the method-parameter for SetNodeArr is lost: void SetNodeArr(int Size, ref FOO_NODE pArray) // regenrated interop.dll I've tried some of the options of TlbImp.exe, but with no luck. Q What tweak

Classic ASP error '800a01ad' ActiveX component can't create object

a 夏天 提交于 2019-12-25 02:59:41
问题 we have a system that wasnt designed by us, and part of that system is a classic ASP portal. The portal is currently running with no issues on one of out servers. We want to do some development work on the portal, so we want to put it on TFS, and than work on it locally. The problem no matter what I tried we cant make it run locally. this is what we tried: import the IIS setting from the working server register whatever dll we can think of Pool is running with system network credentials pool

DLL for VBA.Collection

旧时模样 提交于 2019-12-25 02:37:12
问题 I need to use a VBA.Collection class and I need to register a COM component in order to do that. I found msvbvm60.dll file on my computer and successfully registered it in my system. I am creating an instance of a class VBA.Collection, but I get an exception in that line of code: VBA.Collection collection = new VBA.Collection(); The exception has the following description: System.Runtime.InteropServices.COMException was unhandled HResult=-2147221164 Message=Retrieving the COM class factory

How to get access of <iframe> body using c++/ATL/COM?

大兔子大兔子 提交于 2019-12-25 02:34:10
问题 I have written a browser helper object to get the text between the tags and use it for data mining purpose. I tried using it on igoogle (basically to test its capability on gadgets) and it failed in some of the cases where an <iframe> is present with some external source. I can get the <div> and its child <iframe> but fail to get the body. I get the frame collection from this API HRESULT IHTMLDocument2::get_frames(IHTMLFramesCollection2 **p); The problem can be re-created in igoogle and

“Invalid Callee” while using MLapp in C#

怎甘沉沦 提交于 2019-12-25 02:25:14
问题 I'm having a strange issue while using the MLApp.GetWorkspaceData function. I noticed that this functions works properly when I do the following: matlab = new MLApp.MLAppClass(); object myObject; matlab.GetWorkspaceData("myVariable", "base", out myObject); But if I then try to use the same object as an output I get an "Invalid Callee" exception. In addition this also gives the same error: matlab = new MLApp.MLAppClass(); object myObject = new object(); matlab.GetWorkspaceData("myVariable",

Getting C# ActiveX/COM Library to Work through JScript

放肆的年华 提交于 2019-12-25 02:24:42
问题 I have checked on stackoverflow (and what seems like everywhere else). I would like to get a COM solution working so that a jscript file can be written as var T = new ActiveXObject("MySimulator.World"); T.MyMethod(); It would be executed at the command prompt by cscript mytest.js In this case, I get the error "Automation server can't create object". In C#, I have followed various suggestions, with the latest interface being: [ComVisible(true)] [InterfaceType(ComInterfaceType.InterfaceIsDual),

VB dictionary of Objects ByRef

萝らか妹 提交于 2019-12-25 01:59:46
问题 I want to create a Dim Dict As New Dictionary(Of String, Object) which would point my strings to specific COM Object classes, i.e. Dict.Add("NODES",Visum.Net.Nodes) I'd have around 20 keys in dictionary, each pointing to a different class within COM object. Basically it works, but I'm afraid it's very heavy (dict of 20 instances of big classes) and not neccessary - I'm passing whole object to a dict, while I really need just kind of pointer ( ByRef ). Is there a more clever way to do it? PS.

How do I open a new visual studio instance using EnvDTE?

南笙酒味 提交于 2019-12-25 01:52:58
问题 I'm using the EnvDTE COM objects to automate Visual Studio. I'm still looking through the documentation, however, I figured I'd drop the question here to see if someone already knows how to do this. So, the problem is that when I get the DTE object and look at what Solution is open, I need to open another instance of Visual Studio if the solution is not the one I'm expecting. I don't necessarily want to load another solution over an existing instance of VS. 回答1: So, I figured this out on my

Can a SilverLight component instantiate a registration-free COM-visible .NET object

↘锁芯ラ 提交于 2019-12-25 01:44:31
问题 We are trying to load in SilverLight 5.0 component running in IE a COM-visible .NET object registration-free using the activation context API. http://msdn.microsoft.com/en-us/library/ms973913.aspx The SilverLight component is runnning as a trusted application in the browser as described in http://msdn.microsoft.com/en-us/library/gg192793(v=vs.95).aspx. The object can be loaded in a stand-alone test application using the activation context API so the manifest is properly formed. In SiverLight

Multiple search paths for assemblies not in the GAC when using REGASM & COM

♀尐吖头ヾ 提交于 2019-12-25 01:08:57
问题 I am in the process of creating a .NET assembly that will be registered for COM so that it can be referenced by Microsoft Excel VBA. The assembly references a third-party .NET assembly (that contains some useful classes) that is not in the GAC, however, I have a problem with the deployment of my assembly since the path to the third-party assembly is not always in the same location (it depends on the locale of the user as well as how recently the third-party assembly was installed). This means