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 2005 > threads for august 1 - 7, 2005

Filter by week: 1 2 3 4 5

Avoiding COM's inability to handle overloaded methods
Posted by Juan Dent at 8/6/2005 4:18:01 PM
Hi, I have several interfaces that have overloaded methods. This is of course fine for .NET clients. However COM clients see a XX_1,XX_2, etc. instead of something more meaningful. Just as the Marshal class can help change how the interface is exported, is there no way to give overloaded...more >>

Flash OCX Memory Leak, Or .Net Framework Memory Leak
Posted by Extreme Datasets at 8/6/2005 2:57:22 PM
Hello All, I have a windows application that uses the Flash OCX v7. The swf's are about 30MB and of course, memory usage goes up when each form is loaded. However, when the form is disposed the memory is never reclaimed. I have tried the ReleaseComObject, Dispose method of the FlashPlayer,...more >>

VSTO webcast
Posted by John at 8/6/2005 12:00:00 AM
Hi Where can I find tech ed 2005 Steve Ballmer webcast which included demo of new outlook support in vsto? Thanks ...more >>

Using .Net 2003 with Excel 2003 and O2K
Posted by Tim Zych at 8/5/2005 3:25:44 PM
I have Office 2000 Pro and VS.Net 2003. I would like to use .Net with Excel 2003 but I understand I need PIAs to interoperate Excel with .Net. If I buy only Excel 2003, will I be good to go, or must I buy Office 2003? Ideally, I'd like to use Office 2000, Excel 2003 and VS.Net 2003. Will that ...more >>

Unable to consume Process reserved memory
Posted by Aravind at 8/5/2005 3:20:13 PM
Hi , This is a Windows form application which interacts with the unmanaged C++ codes . In unmanaged c++ code we allocate around 130MB on the heap for annalysing high resolution images . Earlier during the processing ee do lot of process on the image and the memory reaches high at one poin...more >>

Interop DdeInitialize
Posted by Jon M. Gohr at 8/5/2005 2:54:52 PM
I need to communicate with a third-party app and my only option is to use DDE from my .NET WinForms application. I have the signature from PInvoke.net, but I'm not exactly sure how to get the DdeDelegate pfnCallback stuff setup correctly. Anyone have a complete chunk of C# code that works? ...more >>

Loading Legacy DLL In Dot Net (DLL Name Differs)
Posted by garyivy NO[at]SPAM gmail.com at 8/5/2005 1:52:31 PM
Hello, I need to load a DLL I wrote in C++ into a VB.Net app that differs in name. I can load the dll just fine using a Declare Function using a hardcoded name. However, for production, the DLL name varies based other factors(same signature, different names). I am seen Microsoft's examp...more >>

Difference between AxSomeComponent vs. SomeComponent references
Posted by ken bus at 8/5/2005 12:49:06 PM
I am using an activeX component and am getting two references for this one component. Could somebody please tell me the difference between the two? The supplier's original component is ett40 and the two references are ett40 and Axett40 that are created for the support of .net interop services....more >>



Create DTS package in C#
Posted by Michael at 8/5/2005 12:22:06 PM
I am trying to create a DTS package using C#. I have done this in VB6 without any problems. However, when I convert everything over to C# I get the 'System.InvalidCastException'. I am running windows 2000, SQL 2000 sp3a. I have also followed the instructions in using DTS provided by "ht...more >>

How do i use COM interfaces in .NET?
Posted by Kingherc at 8/5/2005 7:11:05 AM
So, a newbie question. I've successfully learned of using p/invoke for using API Calls for certain functions (using DLLImport). But I'm stuck in using interfaces. How do I declare and use them?? In particular, I want to use the IShellLink interface to use the GetIconLocation function for a sho...more >>

Marshaling bool values from .NET to COM trashes stack
Posted by Claus Brod at 8/5/2005 6:15:03 AM
Hi all, we think we found a very fundamental issue with marshaling bool values from ..NET to COM. Our .NET server code looks like this (MC++, using VS.NET 2003 and .NET 1.1 SP1): ----------------------------- namespace booltest { [Guid("466C7E09-E505-41ab-A331-39906FBBA20A"), ComVisib...more >>

[PowerPoint] Extract thumbnail capture from Slide presentation
Posted by Jean-Sébastien Coudray at 8/5/2005 12:00:00 AM
Hi, I try to catch the thumbnails of the slide from a powerpoint presentation (you have in Powerpoint 2003, by Interop. Is it possible to have an image capture from interop? Have a solution to catch image capture of slide? Cheers. ...more >>

loading umanaged dll in c#
Posted by uzi at 8/4/2005 10:41:54 PM
Hi I have a project that requires me to load the same unmanaged dll multiple times. I though of trying to define a managed assembly that points to the extern c++ functions, and load it into separate AppDomain. The problem is that the unmanaged dll has static variables, and my tes...more >>

Problem with instantiating C# COM object in VBScript
Posted by javatopia at 8/4/2005 11:19:15 AM
Hello, I have a C# COM object that is defined as: [assembly: ApplicationName("Foo.Bar")] [assembly: ApplicationID("688DD96C-A9A4-4db9-913F-4CBBC77538AE")] [assembly: ApplicationActivation(ActivationOption.Server)] namespace Foo { [Transaction(TransactionOption.NotSupported)] [JustInT...more >>

File System Object "Unable to emit assembly"
Posted by Stephen Costanzo at 8/4/2005 10:34:28 AM
I am using the file system object to determine the available drive space (and total drive space) of UNC path directories, however I am also trying to strong name the DLL. While I can create the key for my DLL, it cannot build the DLL because the File System Object is not strongly named "Intero...more >>

Great support!
Posted by Juan Dent at 8/4/2005 9:40:09 AM
Thank you Peter for such great support! Juan Dent, M.Sc....more >>

Deploing a managed COM Add-In and dependencies *without* MSI?
Posted by Andreas Baus at 8/4/2005 5:46:38 AM
I am working on a managed COM addin for Word, developed in VS.NET/C#, and so far things work fine when I simply use the setup project that was created by the "Shared Add-In Wizard" to install it on a target machine. However, this addin is supposed to be only a part of a larger project, which doe...more >>

Help with COM events exposed by .NET
Posted by Kevin Mills at 8/3/2005 5:13:23 PM
Greetings, I have a COM-enabled .NET service that exposes an outgoing interface via the ComSourceInterfaces attribute. I have another service, written in C++, that is attempting to connect to this event interface by querying for IConnectionPointContainer, calling FindConnectionPoint and th...more >>

Getting COM exception description in .NET
Posted by Juan Dent at 8/3/2005 3:27:04 PM
Hi, I have this .NET assembly that calls into a COM object that sometimes throws an exception using: AfxThrowOleDispatchException( 0, pstrMessage ); I place the call to the method containing this withing a try/catch block like so: try { ret = this.pipe.GetSQLServerLogi...more >>

CDO.Person - Invalid Class String
Posted by Steven Berkovitz at 8/3/2005 2:07:01 PM
Hi there, I am attempting to copy contacts between folders programatically by use ADODB and CDOEX. I can open a CDO.Person object using the Open() method without problems however when trying to call the SaveTo() or SaveToContainer() methods I get the following exception: An unhandled ...more >>

Expose a VB.net function to unmanaged c++
Posted by VeNoM00 at 8/3/2005 1:17:03 PM
Hi, i need to export a VB.net function (inside a DLL) and expose it to an unmanaged c++ dll. I don't want to use COM. Can i use something similar at exports.def file in c++, so that i can simply call it in my c++ project? Thank you in advance, any help will be appreciated....more >>

axWebbrowser and Credentials
Posted by danths at 8/3/2005 8:44:54 AM
Hello: I need to access a forms authenticated website from a winforms application thru a webbrowser. I haven't came across any examples yet. The winforms app already knows the credentials for the website and so I should be able to access the website without the user having to logon again. Tha...more >>

Please help me with a shell extension!
Posted by aaronfude NO[at]SPAM gmail.com at 8/3/2005 7:32:09 AM
Hi, I'm developing a simple shell extension by modifying the example posted at http://www.informit.com/articles/article.asp?p=169474&redir=1&rl=1. (I must admit that I'm groping in the dark.) I have added two items to the menu and in the InvokeCommand method I need to determine which item w...more >>

Call Managed API from Win32 application
Posted by kiran at 8/3/2005 12:00:00 AM
Hi , I need call C# functions from Win32 (C++) application. How can I do this. Currently I am doing calling Win32 unmanaged functions from C# program using P/Invoke Methods by imporing the dlls. How can I do the same process in reverse. I need to expose 1 function in ..NET dll and call t...more >>

Newbie Question
Posted by Ambival at 8/2/2005 2:43:20 PM
Hi, I'm attempting to take some current C++ code and extend it so it can execute some classes from a managed code shared lib. One of these has a signature similar to the following. public bool myMethod( ref string a, ref ushort b, ref ushort c) { a = "this is a string"...more >>

passing string array from managed code to com
Posted by diDE at 8/2/2005 3:46:46 AM
i'm calling a function from a dll that takes a TCHAR** as parameter. is there a best practice example for converting a managed string array of dynamic size to a TCHAR** array<String^>^ ManagedStringArray= gcnew array<String^>(2); ManagedStringArray[0] = "ABC"; ManagedStringArray[1] = "ZGH"...more >>

SetCustomAttrubute Hangs with MarshalAs
Posted by Don Caton at 8/2/2005 12:00:00 AM
The following code hangs somewhere deep in the CLR on the call to FieldBuilder.SetCustomAttribute(). Equivalent code in managed C++ does as well, so it probably isn't a problem with the generated code (which looks good anyhow). Using an attribute other than MarshalAsAttribute works fine. ...more >>

APPHELP.DLL depndency headache
Posted by Paul at 8/2/2005 12:00:00 AM
I cannot register a control for COM interop on a Windows 2000 machine because it references MSCOREE.DLL, which references SHWAPI.DLL, which references APPHELP.DLL, which does not exist on Windows OS's prior to XP. Is there a way around this problem? I tried just plunking the DLL onto the 2K ma...more >>

Implementing COM interfaces in C#
Posted by jas123 NO[at]SPAM online.nospam at 8/1/2005 4:46:54 PM
Hi Please pardon this long post. I am attempting to implement Microsoft Volume Shadow copy Service (VSS) hardware provider in C#. There are 3 COM interfaces that needs to implemented. I defined them manually in c# . One of them has several methods with conformant arrays of structs as [...more >>

Need help passing an array to COM
Posted by Erik at 8/1/2005 4:12:07 PM
Hello. I am trying to pass an array of strings to a COM dll but I am getting an error "Invalid access to memory location." I used tlbimp to import the dll. The method I am calling looks like this in the object broswer. dowork(object x, object y, object z) If I call it like this it work...more >>

Binary Compatibility Problem
Posted by Scott Hembrough at 8/1/2005 11:29:59 AM
We have an intermittent binary compatibility problem with a COM DLL that we're creating in VB.NET. Every once in a while, other DLLs that reference our COM DLL will suddenly start throwing odd errors. This happens even though we have not changed the interface and in fact have taken explicit ...more >>

Destructor of com object not called in release build
Posted by Andreas Bergmeier at 8/1/2005 10:34:14 AM
Hi all. We encountered a somewhat strange problem when trying to release a com object in a release build. Through the session of an aspnet application we keep an instance of a com object in memory. When the session is ending this object should be destroyed. Though we set the object referenc...more >>

Using API RegQueryValueEx with DllImport to read data from Registr
Posted by shrahul at 8/1/2005 6:39:21 AM
Hello, I'm trying to read registry value using the API functions RegOpenKeyEx and RegQueryValueEx along with DllImport in C#(I'm aware of C# inbuilt capabilities for reading registry but I need to do it using Win API's and DllImport). The results show that code runs fine but I'm not getting...more >>


DevelopmentNow Blog