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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
|