Questions tagged [com-callable-wrapper]
8 questions
39
votes
2 answers
How to diagnose COM-callable wrapper object creation failure?
I am creating a COM object (from native code) using CoCreateInstance:
const
CLASS_GP2010: TGUID = "{DC55D96D-2D44-4697-9165-25D790DD8593}";
hr = CoCreateInstance(CLASS_GP2010, nil, CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER, IUnknown, out…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
21
votes
1 answer
Calling a .net library method from vba
I have developed a web service in ASP.net, c#, and hosted on IIS, which is to be consumed by a vba client. Having downloaded the Office 2003 Web Services 2.01 Toolkit, I encountered a problem in successfully creating the proxy classes required (as…

user1012598
- 417
- 1
- 8
- 18
8
votes
1 answer
"COM object that has been separated from its underlying RCW cannot be used" with .NET 4.0
I've a class in my .NET 3.5 C# WinForms application which has five methods.
Each method uses different sets of C++ COM interfaces.
Am using Marshal.FinalReleaseCOMObject for cleaning up these COM objects. This code works fine on this .NET platform…

user74042
- 729
- 5
- 14
- 28
4
votes
0 answers
Debugging source code of COM interop assembly / wrapper
Normally when you reference a COM DLL in a C# project Visual Studio automatically generates the runtime-callable wrapper (RCW) and compiles it to an Interop. assembly.
Is there any way to debug into the source code of the RCW?
Approaches I am…

StayOnTarget
- 11,743
- 10
- 52
- 81
2
votes
1 answer
Is it safe to use the COM Callable Wrapper to avoid problems passing GCHandles across app domains?
In .NET, there's a relatively well known problem with storing managed objects in unmanaged code as gcroot to provide callbacks from the unmanaged code: the unmanaged code doesn't know what AppDomain to use when calling into managed…

Ganesh Sittampalam
- 28,821
- 4
- 79
- 98
1
vote
0 answers
Debugging .NET assembly loaded from VC++ app using CCW
I apologize for the vague subject, but I'm inexperienced in this area, and couldn't come up with something more specific.
I am debugging a third party application (written in VC++ 2005) that loads COM plugins. My plugin was written in C# 4.0. When…

Dave
- 14,618
- 13
- 91
- 145
1
vote
0 answers
COM Callable Wrapper works in .NET 2.0 but not .NET 4.0
I have written a proof-of-concept COM Callable Wrapper in order to replace an existing COM component with new functionality. A constraint of my project is that I cannot change the calling code; the calling code should be ignorant of the presence of…

Mark
- 1,884
- 2
- 25
- 36
0
votes
0 answers
Deploy a COM Callable Wrapper
My group has created a .NET assembly and it works great in our VB2010 projects. We have also made some of the functions available to VB6 and thus have created a COM Callable Wrapper. We have tested this also and that works great. Our last step is to…

sinDizzy
- 1,300
- 7
- 28
- 60