The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
2answers
85 views

COM - with great power comes great responsibility, but at what cost? (looking for advice on coding practices when working with COM)

What is best (or commonly accepted) practice for where to declare COM object variables (scope) and how to handle cleaning them up when using structured error handling? I just spend a whole load of ...
0
votes
0answers
37 views

JavaBeans vs. ActiveX: Strategic analysis

JavaBeans and ActiveX both serve the same basic function: to facilitate communication among software components within framework "containers." These containers include Web browsers and other document ...
1
vote
2answers
37 views

When to turn off Option Strict? Or how to deal with inheritance of COM using Option Strict?

I'm trying develop an add-in for an application using it's API and I have Option Strict turned on. Trying to work with these COM objects is causing multiple compile issues saying Option Strict ...
3
votes
1answer
73 views

Peculiar architecture interfacing .NET to AutoCAD out-of-process

I have written a set of classes to interact with AutoCAD from an out-of-process .NET assembly, but it seems like my class architecture and interactions are unusual. I am struggling to find a better ...
7
votes
3answers
323 views

Better to write your .NET library with COM limitations in mind, or separate your .NET library from Interop?

I came across this interesting article: How I Came to Love COM Interoperability on CodeProject, which got me thinking... The author argues that they do not want any COM-ities in their .NET library ...
3
votes
0answers
133 views

Mono: C call into managed with COM Interop

I am trying to design a managed library to implement -what appear to be- unmanaged VST3 plugins. The VST3 plugin interface is a C/C++ interface-based API that is compatible with COM (ref-counting, ...
2
votes
1answer
152 views

Is there a way to use RAII techniques in COM?

I am caught between two conceptual models of how to construct objects, and am having trouble working out what standard I want to adopt. I prefer to program in .NET and often try to use RAII and ...
0
votes
3answers
1k views

Best Way to Access Hardware per COM Serial Port over USB Adapter

We are starting a total new Branch at our firm. I am usually developing database interfaces or internal server/client applications/tools for our company, but I never had to do something with hardware. ...
5
votes
2answers
818 views

COM INTEROP Support - which is better? C# or VB

I keep hearing that c# is "better" than vb... but as far as I can see, aside from syntactical differences, both compile down to the same IL. I've found some good articles by googling that explain what ...
0
votes
1answer
345 views

What are some books that explain low level stuff like com interfaces, dll injection etc? [closed]

What are some books that explain low level stuff like com interfaces, dll injection etc? Basically low level windows programming. Searching on amazon gives me hacking books/10+ year old books which is ...
5
votes
2answers
1k views

Create Primary Interop Assemblies or generate them?

I've never seen this question answered definitively: If you are maintaining a COM DLL that can be used by a .NET program, is it best to: Import the COM DLL into each project, which generates an ...
0
votes
1answer
195 views

Are COM objects a form of IPC?

In Pro C# 2008 it is stated Using constructs such as AppIDs, stubs, proxies, and the COM runtime environment, programmers can avoid the need to work with raw sockets, RPC calls, and other ...