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 > december 2003 > threads for december 29 - 31, 2003

Filter by week: 1 2 3 4 5

Interop Environment Variables Problem
Posted by Ali Hon-Anderson at 12/31/2003 1:42:42 PM
I have a C# web application that is "passing parameters" to a DLL via environment variables (that is how the DLL was written to receive arguments). The problem is that the DLL seems to be taking the first set of environment variables I set in my C# code and saving them. Subsequent calls to the D...more >>


calling LSALookupNames2 from C#: NullReferenceException
Posted by Lukas Alber at 12/31/2003 9:28:53 AM
Hi I'm trying to call LSALookupNames2 from C# and get a NullReferenceException. I assume that I made a mistake declaring LSALookupNames2 or LSA_UNICODE_STRING The LSAOpenPolicy and LSAFreeMemory calls work fine (I got most of the code from another post to this newsgroup) Can anyone tell ...more >>

Windows service and messages
Posted by Brent Horine at 12/31/2003 9:18:25 AM
I need to work with an unmanaged DLL for a socket based wireless communication API. I'm wrapping it with a combination of unmanaged and managed C++ calls and running everything in a .NET Windows Service. When it receives a message over the network, it posts a WM_SOCKET_STATUS message that I ha...more >>

Connection to remote COM object works in Windows Forms application but not in ASP.NET application
Posted by José Ramón Rodríguez at 12/30/2003 3:00:31 PM
Hello there, The following code causes "Specified cast is not valid" exception when line 3 executes inside an ASP.NET application. I have tried this with several components. Exactly the same code works if connecting locally (i.e with localhost) and it always works from a Windows Forms applic...more >>

how to automate excel from Microsoft Visual C#....
Posted by Giorgos Zagouras at 12/30/2003 12:56:13 PM
Hello every one..... i have a windows application an i am trying to get some data from SQL Server and export them to Excel. I am using Windows 2000 and Excel XP. i followed the instructions from MSDN but i get the following error message "Old format or invalid type library" The example code...more >>

how do I debug my C# component when calling it from VC++ application?
Posted by Linda Chen at 12/30/2003 10:32:31 AM
I have created a C# component and successfully converted it into tlb file. Is it anyway to debug my C# component when calling it from my VC++ application without opening VC++ project from .net ide? Thanks. Linda chen...more >>

Web COM+ interop results in out of memory errors
Posted by ShikariShambu at 12/29/2003 4:54:39 PM
Hi All, I have a web site that makes calls to components hosted in COM+. Recently we started seeing some out of memory errors on the web site. On further analysis we found that the number of open handles on a COM+ package keeps going up and the memory used by aspnet_wp goes up. However, t...more >>

COM Automation - Simple port from VB failing
Posted by Mike Miller at 12/29/2003 3:47:49 PM
The following code starts an application for automation in VB: Dim IMFAObj As Object Set IMFAObj = CreateObject("Famas2000.Application") The VB.NET code is as follows: Dim IMFAObj As Object IMFAObj = CreateObject("Famas2000.Application") The VB.NET code starts the applica...more >>



URGENT: COM Interop BUG!?
Posted by Nadav at 12/29/2003 10:26:38 AM
Hi, Introduction *************** I have a system build of a collection of 'Native COM objects' and '.NET = COM interop' objects, all of the COM objects are managed through a = 'Native COM' layer, this layer manage the underlying COM Objects and = upon request, provide a pointer to those obje...more >>

Excel 11.0 object library conflict
Posted by Ramon at 12/29/2003 5:00:35 AM
I would like to import some Excel data and are using Excel 2003 on my development system. The workstations using this application have Excel 2000 installed. Because of this the Excel 11.0 object reference is not working on the workstations. I tried to include the Excel 9.0 object library b...more >>

throw new COMException("SayA error", 9000); does not get err.number:=9000 in vb6....
Posted by Jim Hsu at 12/29/2003 3:31:37 AM
how do I pass the specific error code to vb6 via COM Interop? throw new COMException("SayA error", 9000); does not work for me, there is even no error raised in the vb6 com client... ?? please help -Jim "using System; using System.Runtime.InteropServices; namespace aa { ///...more >>


DevelopmentNow Blog