com

Referencing x86 COM wrapper from 64 bit project

主宰稳场 提交于 2020-04-16 02:59:05
问题 I have created an x86 "wrapper" for an x86 library we have from a vendor. I've been following the steps mostly from this post as well a couple links for calling COM here and here. I marked the project as "Register for COM interop". I was able to find by COM interface using oleview and marked it as "Use Surrogate Process". So hopefully I'm good to this point as far as the DllSurrogate registry settings go. Now I can't seem to get the reference correct to consume the x86 COM. Supposedly I can

Create Custom ActiveX Controls for SAP B1

独自空忆成欢 提交于 2020-04-12 10:21:01
问题 I am trying to create custom control for SAP b1 using ActiveX. I created Windows Forms Control Library Made Project Assembly Info COM-Visible (Project properties => Application => Assembly Information) Registerd for COM interop (Project properties => Build) My UserControl looks like this: [ComVisible(false)] public delegate void OnCheckBoxClickEventHandler(string val); [ProgId("MyComLib.Controls.TextBoxCheck")] [ClassInterface(ClassInterfaceType.None)] [ComSourceInterfaces(typeof

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

走远了吗. 提交于 2020-04-07 19:09:27
问题 I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as follows: COMException was unhandled Retrieving the COM class factory for component with CLSID {D9389EDE-AEF8-4092-9377-075E94B7CB9A} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

瘦欲@ 提交于 2020-04-07 19:05:55
问题 I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as follows: COMException was unhandled Retrieving the COM class factory for component with CLSID {D9389EDE-AEF8-4092-9377-075E94B7CB9A} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

为君一笑 提交于 2020-04-07 19:05:53
问题 I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as follows: COMException was unhandled Retrieving the COM class factory for component with CLSID {D9389EDE-AEF8-4092-9377-075E94B7CB9A} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT:

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions using COM

馋奶兔 提交于 2020-03-16 04:29:18
问题 [Recent Note] If it were not for the com-visible aspect, this question would be a duplicate of this question on assembly binding. I had struggled for days because I did not realize that I needed to alter my unit test project as well as the com visible project. If you don't want to read through my struggles realizing this, skip to the last update. [Pre-amble] I feared it may be a bridge to far trying to access a dotnet standard 2.0 library from VB6 via a COM Visible Framework 4.7.2 library,

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions using COM

喜你入骨 提交于 2020-03-16 04:28:59
问题 [Recent Note] If it were not for the com-visible aspect, this question would be a duplicate of this question on assembly binding. I had struggled for days because I did not realize that I needed to alter my unit test project as well as the com visible project. If you don't want to read through my struggles realizing this, skip to the last update. [Pre-amble] I feared it may be a bridge to far trying to access a dotnet standard 2.0 library from VB6 via a COM Visible Framework 4.7.2 library,

How to handle AccessViolationException

霸气de小男生 提交于 2020-03-10 04:40:50
问题 I am using a COM object (MODI) from within my .net application. The method I am calling throws a System.AccessViolationException, which is intercepted by Visual Studio. The odd thing is that I have wrapped my call in a try catch, which has handlers for AccessViolationException, COMException and everything else, but when Visual Studio (2010) intercepts the AccessViolationException, the debugger breaks on the method call (doc.OCR), and if I step through, it continues to the next line instead of

How to handle AccessViolationException

杀马特。学长 韩版系。学妹 提交于 2020-03-10 04:40:33
问题 I am using a COM object (MODI) from within my .net application. The method I am calling throws a System.AccessViolationException, which is intercepted by Visual Studio. The odd thing is that I have wrapped my call in a try catch, which has handlers for AccessViolationException, COMException and everything else, but when Visual Studio (2010) intercepts the AccessViolationException, the debugger breaks on the method call (doc.OCR), and if I step through, it continues to the next line instead of

How do I expose a .netstandard2.0 library with COM?

旧街凉风 提交于 2020-03-06 09:32:32
问题 I have a dotnet core library, a framework 4.7.2 library and a vb6 application. I want to write a common library for them both to access and so choose .netstandard2.0 I tried using the 4.7.2 framework wrapper library between .netstandard2.0 library and vb6. However I ran into assembly binding problems Looking at the docs I see In .NET Core, the process for exposing your .NET objects to COM has been significantly streamlined in comparison to .NET Framework. However no mention .netstandard2.0 I