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 > september 2006 > threads for september 22 - 28, 2006

Filter by week: 1 2 3 4 5

App hung using COM behind the scenes
Posted by Scott S. at 9/28/2006 11:39:01 AM
I've got an app that is written in C# using background threads, etc. Two days ago I added code to try to open an OledbConnection to a SAS file using the sas.LocalProvider. It seemed simple enough but the app would hang everytime it tried to open the connection in a background thread. Afte...more >>

Interop from ASP -> .NET assembly, how to determine caller...
Posted by Mwob at 9/28/2006 7:21:07 AM
Hi all, I have an assembly in .NET, that I expose to COM for interop by setting the "Register for Com Interop" setting for the project to create the TLB file. This assembly is called from classic ASP pages (because its registered with COM), and it is also called from other .NET assemblies t...more >>

Memory problems - something wrong with my code?
Posted by Chris Ashley at 9/28/2006 5:49:27 AM
I have been getting 'access violation reading location' errors occasionally in my app. I have debugged this and found it is one of my interop functions. Am I doing anything wrong here? The unmanaged function takes a pointer to some bytes in memory and a long, and returns a pointer which points s...more >>

MFC interop with .net UserControl - RCW non-deterministic cleanup
Posted by Aled Hughes at 9/28/2006 1:44:01 AM
Hi, I have an MFC8 application that is using .net 2.0 user controls, either hosted in a dialog box or a CWinFormsView. However, during this development I have been experiencing random crashes - especially why I do something like repeatedly bring up and dismiss a dialog that hosts a .net contr...more >>

IDL
Posted by Thomas Freudenreich at 9/28/2006 12:00:00 AM
It is possible to generate a IDL File in VS2005 C# if I have a ComInterop project ? Or is there a tool that convert the existing Typelib into a IDL Description ? Thomas...more >>

underlying connection was closed: unable to connect to the remote server: COM --> .Net --> WebService --> Error
Posted by Monty at 9/27/2006 9:28:57 AM
OK, I had an issue with this and found lots of advice that did not apply, so I'm posting what I found hoping it might help someone else. Here's the sitch: you have a COM app that calls to a .Net assembly which in turn calls a web service. You know the web service is reachable and that the COM ...more >>

disp interface
Posted by Roy at 9/27/2006 6:52:01 AM
I want to rewrite a legacy MFC COM code in C# and DO NOT want to modify and compile any client code who uses the component at this time. Here is part of the interface definition. The idl also expose some enum definitions. Any idea if it can be do easily and how? Some of the interface do not re...more >>

Stepping through c# code in two different solutions
Posted by paul NO[at]SPAM paullee.com at 9/27/2006 3:54:25 AM
Hi everyone, Hopefully someone can help, and that I'm asking in the right place! I have two sets of solutions, both with source code. The first project is an executable, the second a DLL. When I place a breakpoint in the DLL code and step through it, going through the call stack, the function...more >>



Automation Error while creating a COM Wrapper object in VB6 COM Application
Posted by Murtaza at 9/27/2006 12:00:00 AM
I have a .NET managed class designed in C#, created COM Wrapper and am able to create its object in Visual Basic 6 Desktop application. I then created this .NET assembly object in Visual Basic 6 COM Application method and created the object in it. while called the method from the ASP client, it ...more >>

FreeHGlobal after PtrToStructure?
Posted by Chris Ashley at 9/26/2006 1:01:45 AM
Do I need to free any memory using InteropServices in this instance? IntPtr ptrData = m.WParam; SizeHeight imgType = new SizeHeight(); SizeHeight imgData; imgData = (SizeHeight)Marshal.PtrToStructure(ptrData, imgType.GetType()); ...more >>

Managed DateTime to unmanaged DATE?
Posted by Hyun-jik Bae at 9/26/2006 12:00:00 AM
Is there any way to get DATE(typedef as double) value from .NET DateTime object? Please reply. thanks in advance. Hyun-jik Bae ...more >>

Pass COM object as Function Argument
Posted by Turtle at 9/25/2006 10:57:22 AM
I've got a .NET application which needs to interface with a "legacy" VB 6.0 application. A great deal of the information the .NET application needs is encapsulated in a class in the legacy application, so it would be great if I could just pass an instance of the class to the .NET application....more >>

Referenced Assembly
Posted by Erencan SAÐIROÐLU at 9/25/2006 12:00:00 AM
Hi All, I have referenced an dll my project. The dll has develop not .NET framework. How can i create an assembly for this dll. Please help me. Thanks to all. ...more >>

CCW/AppDomain unloading
Posted by lazerbeam at 9/23/2006 7:18:01 AM
Hi, I have a managed class which is being used by an unmanaged client (via COM InterOp, Internet Explorer). I basically understand how this works (IE calls CoCreateInstance(Ex), CLR gets loaded, AppDomain(s) created, CCW created, yada yada ...). Question: Is it possible that the host p...more >>

Effecient way from C++ byte[] to CLR object?
Posted by Hyun-jik Bae at 9/22/2006 8:04:33 PM
What is the effcient way copying byte block from native C++ code to CLR object? I know there is C++/CLI array<BYTE>, however, I don't think it will be effcient because it needs loop and copy for each array element as far as I know. Please reply. Thanks in advance. Hyun-jik Bae ...more >>


DevelopmentNow Blog