Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet interop > august 2007 > threads for august 15 - 21, 2007

Filter by week: 1 2 3 4 5

How to unload an assembly from OCX?
Posted by Jim at 8/20/2007 12:57:06 PM
I have an OCX which interop a C# assembly. C# assembly needs to callback OCX in a method by parameter pointing to this OCX. It works in the first time load. If I reload OCX, OnInitDialog() won't be called and app is hanged on. If I don't pass this OCX as parameter to the assembly, second time relo...more >>


Newbie to COM Interop
Posted by Chris Davoli at 8/20/2007 12:46:00 PM
I'm trying to just learn how to call a COM component from a .Net application. I am using visual studio 2005. Is there some sort of step by step tutorial or book or something that somone can suggest. I'm real confused on how to do this and just googleing does not get me a real good clear answer...more >>

c# x64 COM Add References Problem
Posted by Pablo Sullivan at 8/20/2007 6:56:02 AM
I have a problem building a c# project that references a COM object built for x64. The problem is that the x64 DLL is missing under the "Add References" COM tab for the C# project. Also when I attempt to add a reference via the BROWSE tab, an error message is displayed saying “Please make ...more >>

Unmanaged Code to CCW/C# problem
Posted by GlennAnthonyB at 8/18/2007 1:18:43 PM
Hi I have a C# DLL which has a method which accepts a string argument. This is registered for COM. The resulting .tlb is then referenced in a native C++ DLL. I then wrap the method in a C++ method and add some trace code. The wrapped C# method also includes some trace code. When I atte...more >>

Com and .Net Interoperability problem
Posted by Sundar at 8/17/2007 4:48:20 AM
Hi I faced this Interoperability problem if any one have answers let me know about it. I developed the COM interface in VC++ as follows : interface IModuleConfig { HRESULT SetValue(GUID guid, VARIANT* var); } class CModuleConfig : public IModuleConfig { }; HRESULT CModule...more >>

What is DispId used for?
Posted by Lidström at 8/16/2007 8:22:33 PM
Hello! I've read on MSDN [1] that it is necessary to mark methods and properties with DispId in order to expose them to COM. But that doesn't seem necessary. I've created interfaces and subclasses in C# and I have no problem using them from C++. So what is DispId really used for? [1] Exampl...more >>

Office XP PIAs
Posted by TC at 8/15/2007 8:22:07 PM
Hey All, I downloaded and installed the Office XP PIAs but when I reference them from within VS2005, I get a yellow explanation point with no information beside the reference. Any ideas? Thanks, TC ...more >>

Cannot call simple WinApi function
Posted by Carl at 8/15/2007 1:50:55 PM
Hi, I've got stuck on calling the following WinApi function. I've tried lots of different datatypes and read alot about which to use in the documentations, but everything fails. Does anyone know how to do it? The Call: StringBuilder sb = new StringBuilder(255); IntPtr handle = new IntP...more >>



Link errors 2028 and 2019 when compiling with CLR
Posted by David Wright at 8/15/2007 12:00:00 AM
Can anyone help me? With the CLR switch off my projects compile and link fine but with it on some classes defined in one dll are not linkable to another dll? I have project dependencies set as well between the projects. Is there something more to do? It is as though the classes are not bein...more >>


DevelopmentNow Blog