Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Excel
123quattro
charting
crashesgpfs
datamap
excel
interopoledde
links
misc
newusers
printing
programming
querydao
sdk
setup
templates
worksheet.functions
  
 
date: Fri, 17 Aug 2007 14:54:02 -0700,    group: microsoft.public.excel.interopoledde        back       


In-Process Problem; Excel 2007, .NET COM ADD-IN ,VB6 COM , C++ man   
I have a COM ADD-IN for Excel 2007 that makes calls into a VB6 COM dll. The 
VB6 code then loads a C++ COM object.  The C++ dll communicates with a .NET 
dll via a bridge. The bridge is a C++ dll that handles the calls between C++ 
unmanged and .NET managed code.

(Excel 2007 Add-in -> VB6 COM -> C++ Unmanaged -> C++ Managed -> VB.NET)

The problem I having is that the C++ COM object will not load and the 
program hangs. However if I load the C++ COM object in the IDE and attach to 
excel things work. 
 
My guess is that since the code is running in the IDE it is running in a 
different process space than the ADD-IN. When not running in the IDE It seems 
that there are issues having two .NET layers of managed code and a middle 
layer of unmanged code.  
I have worked around this issue with other pieces of code by having the 
ADD-IN make calls to an out-of-process component rather than an 
in-process-component. Unfortunately it isn’t an option with this piece of 
code and I ‘m hoping it is just a bug in .NET and will be fixed, or someone 
might have a suggestion.

My guess is that since the code is running in the IDE it is running in a 
different process space than the ADD-IN. When not running in the IDE It seems 
that there are issues having two .NET layers of managed code and a middle 
layer of unmanged code.
date: Fri, 17 Aug 2007 14:54:02 -0700   author:   DeanC

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us