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

Filter by week: 1 2 3 4 5

Cannot debug interop
Posted by Xavier Pacheco at 5/6/2005 8:48:44 AM
unable to debug/interop Scenario 1. We have a VB6 application that performs late-binding on a .NET interoperable component. Our component is invoked as in-proc process. The VB6 code looks like this: Private Sub Command4_Click() Dim cc Set cc = CreateObject("MyAssm.MyComponent") Set x...more >>


How to handle InvalidActiveXStateException
Posted by Paul at 5/6/2005 4:53:07 AM
Hi, I'm attempting to create a vb.net class (no form) which uses functionality provided by an activex control. 1) I've ran aximp and added the 2 references, 2) Added the declaration: Private WithEvents m_Asabtcp As AxASABTCPLib.AxAsabtcp 3) Initialized in the constructor: Publ...more >>

Interop interface for LPWSTR**
Posted by adamgilmore NO[at]SPAM gmail.com at 5/6/2005 1:29:14 AM
Hi, I'm trying to declare the interface for IWMDMDevice (from the Windows Media Device Manager SDK). It has the following method: virtual HRESULT STDMETHODCALLTYPE GetFormatSupport( /* [size_is][size_is][out] */ _WAVEFORMATEX **ppFormatEx, /* [out] */ UINT *pnFormatCount, /* [size...more >>

Closing managed app just after making call to COM .exe causes outstanding reference count
Posted by Howard Swope at 5/6/2005 12:00:00 AM
I have a managed application that calls an out of process com server via com interop. If I make a call to the server from my Form.Close routine, my client application closes, but something doesn't clean up properly. The com ..exe keeps an outstanding reference and never exits. The call to the ...more >>

COM interop applications calling to managed code use the latest framework version
Posted by style at 5/6/2005 12:00:00 AM
Hello MSDN states that "by default, COM interop applications calling to managed code use the latest version of the runtime installed on the computer" (see article below). But the article also says that you can use application configuration files which the runtime uses for interacting wit...more >>

Displaying non-modal forms via interop from COM DLLs
Posted by Oenone at 5/5/2005 3:33:08 PM
I'm continuing work on getting my VB6 plug-ins to work within my VB.NET application and am making reasonable progress. I've just experienced an error that has me a bit worried though. Many of my plugins use non-modal forms to present data to the user. They typically open the form and then us...more >>

Not yer everyday delegate/callback interop challenge
Posted by Jeremiah Morrill at 5/4/2005 5:58:03 PM
I have a native dll(third party api, no source) in wich I send it parameters(C#, DLLImport), get back a handle and make subsequent calls to other functions, sending the handle back to the dll. You know, regular ol' C stuff. Theres one function in wich I send a callback(.Net delegate) and...more >>

EndInit causing multiple calls to UserControl's OnLoad
Posted by Allan Cady at 5/4/2005 2:00:14 PM
If I host ActiveX controls on a .NET UserControl (using C#), the designer inserts calls to the contained controls' EndInit methods into the UserControl's InitializeComponent method. Every time EndInit is called (once for each ActiveX control), the containing UserControl's OnLoad method is ...more >>



How to reference a managed facility from an unmanaged one?
Posted by Ney_André_de_Mello_Zunino at 5/4/2005 8:28:30 AM
Hello. Is it possible to access a managed facility from a non-managed one? I am building an application in Visual C++ 2005 Express Edition Beta and used the visual designer to develop its GUI, which produced a managed form class. Along with that, I have all my other non-managed classes whic...more >>

Cannot find assembly
Posted by Rob Richardson at 5/3/2005 9:40:34 AM
Greetings! I have a DLL that I developed in .Net and marked to register for interop. The DLL relies on a second DLL that is also registered for interop. The two dll files and their tlb files are all in the same folder. I am testing this with a VB6 application. If I run the VB6 app in VB6's ...more >>

Unmanaged C++ -> Managed C++ -> C#
Posted by ikosianski NO[at]SPAM gmx.net at 5/3/2005 5:52:53 AM
Hallo, I have an umanaged C++ Class I want create a managed C++ Class Wrapper What shall I use in Managed C++ Class #include, using... ? Thanks...more >>

How to call managed C# code from an unmanaged C++ application?
Posted by Alex at 5/2/2005 6:34:57 PM
Hello, We have an application written in good old plain unmanaged C++. I need to add some functionality to the application. From the app's = point of view, it will be just a function (or, perhaps, a COM object) = that will accept arguments, do a lot of things internally and return a = resu...more >>

ActiveX server using .NET
Posted by Dave Skok at 5/2/2005 3:49:57 PM
Is it possible to implement an activeX server using .NET? I am writing an ole application to display and provide in-place editing inside autocad drawings. I can easily do this in MFC but would like to use .NET if possible. If not possible directly are there any examples of interop using ole c...more >>

I keep receiving a file/path access error
Posted by LeRoy Bainbridge at 5/2/2005 2:56:50 PM
I have been assigned the task of creating a Web Service wrapper around pre-existing Visual Basic ActiveX DLLs. I developed the service in ASP.NET and everything functions as expected, except one part. One of the tasks of the DLLs is to create a text file on the disk and write information to it...more >>

.NET DLL call from VB6 but no intellisense
Posted by JohnMSyrasoft at 5/2/2005 2:02:10 PM
Hi, Why can't I use Intellisense from VB6 for a .NET DLL that is compiled for interop and works from my VB6 project? The DLL functions, I just don't see the exposed props, methods, etc. with Intellisense in the IDE? VB6 SP5...more >>

HOW prevent program crashing when SHDocvw is corrupted or missing
Posted by Vico at 5/2/2005 9:01:01 AM
Hi everyone! I have a WindowsForms application which has a form that loads the Web Browser control using interop. Is there any way to prevent the program from crashing when the shdocvw.dll (installed by IE) is corruputed? Where could place a try catch statement to handle this? Thanks...more >>

Cannot use a return(out) parameter
Posted by bull2000 NO[at]SPAM newsgroup.nospam at 5/1/2005 6:17:06 AM
I run into a problem when I use COM as client and .NET as server. the interface of the function in IDL file is: [id(1), helpstring("method ProductInfo")] HRESULT ProductInfo([in] BSTR ProductName, [out, retval] VARIANT* vntProductInfo); the corresponding interface is defined in .NET as int ...more >>

how to get a .net-created COM object from a running instance of an app?
Posted by Darren I. at 5/1/2005 12:00:00 AM
Hi there, I am just beginning to explore the world of .NET, and one scenario that I would like to implement is where I have my current single-instance .NET app running, and this app exposing COM-registred classes. I would like to be able to have say a VB6 client create these COM objects, but h...more >>


DevelopmentNow Blog