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 > may 2005 > threads for may 29 - 31, 2005

Filter by week: 1 2 3 4 5

Does inheritance work in recreating an interface definition from C
Posted by Frederik Mangelsdorf at 5/31/2005 11:23:01 PM
Dear group, I'm implementing an Asynchronous Pluggable Protocol. For this I needed the COM definitions of the interface IInternetProtocol, which in the shipped headerfile is derived from IInternetProtocolRoot. Because I wasn't able to find a typelib with the interface, I recreated the int...more >>


Foreach and object leak
Posted by Ed at 5/31/2005 11:00:45 PM
We have an VB.Net application that uses a COM automation server. There is an object leak that we don't know how to solve. objColl = autoServer.TheCollection foreach objMember in objColl . . . System.Runtime.InteropServices.Marshal.ReleaseComObject(objMember) next System.Runti...more >>

Missing events from ActiveX OCX's
Posted by Brendan Grant at 5/31/2005 4:12:34 PM
I have an old custom written ActiveX control, written in VC++6 that I am trying to use on a Windows form with C# (and also VB.NET for testing). I add the control to the toolbox using the standard ‘add/remove items’ option, and everything proceeds fine. As does adding the control to the fo...more >>

Calling WSH Method with (ref object) parameter with a string object
Posted by Jono Price at 5/30/2005 6:44:31 PM
Hi, Fairly bad subject line, but I couldn't think of any better way of putting it. This piece of code: WshShell shell = new WshShellClass(); String SpecialFolder = "AllUsersDesktop"; IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shell.SpecialFolders.Item(ref (object)Spe...more >>

Problem in COM Late-binding when exposing assembly to COM
Posted by Fahad Ashfaque at 5/30/2005 4:54:03 AM
Hi, I am having a serious trouble when calling a .NET Assembly from a NON-CLR app (VB6 app) through Com Wrapper. The object creation is fine; but when I try to call its method it says "Object doesn't support this property or method: 'MethodName'" . If I add reference to the TLB and do with...more >>

.NET Component called from COM Component not released
Posted by wschaub at 5/30/2005 3:15:09 AM
We have a test environment in which we instantiate a COM/ATL/C++ component from a Managed/Console/.NET/C# application. The COM component in turn instantiates and calls a .NET/C#/Class Library component using Interop as below: #import "demologger.tlb" raw_interfaces_only named_guids no_names...more >>

Calling C++ from C# Part 2
Posted by Richard MSL at 5/29/2005 8:19:21 PM
I am once again trying to call a MC++ method from a C# method. I am building with the command line, not the IDE. This is my build file: cl /clr mc.cpp csc /r:mc.exe /t:module csh.cs Here are the source files: csh.cs using System; using MCfu; namespace InHere { public class Ap...more >>

Prevent a field from being marshaled?
Posted by Bob at 5/29/2005 5:46:35 PM
Is there a way to prevent a method from being marshaled in functions like Marshal.PtrToStructure()? I've tried NonSerializableAttribute and ComVisibleAttribute, but they don't effect Marshal.SizeOf(). Basically I just want the marshaler to ignore a certain field, leaving it unitialized/zer...more >>




DevelopmentNow Blog