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 > february 2006 > threads for february 15 - 21, 2006

Filter by week: 1 2 3 4

Registering VB2005 Class Library For COM
Posted by Jonathan Wareham at 2/21/2006 11:46:10 PM
Hi, I am new to VS2005 having moved straight from VB6. I need to create a VB2005 class library that is exposed to COM but am not having much luck. I have set 'Make assembly COM-Visible' in the Application->Assembly Information properties, and set 'COM Class' = True and 'COM Visible' = Tru...more >>

VB & WinAPI/Win32 functions and structs
Posted by Ted Lyngmo at 2/21/2006 10:27:22 PM
Hi! I'm trying to find out how to avoid having to manually declare all of the WinAPI C functions and structs before using them in VB.NET. I'm getting familiar with VB.NET 2005 and thought I should start by doing a copy of a little program I made in C++ years ago. That program used a lot ...more >>

Debug from ASP into .NET assembly?
Posted by Zoe Hart at 2/21/2006 4:29:37 PM
Is it possible to debug from an ASP page into a .NET assembly it's calling through COM interop? Thanks, Zoe ...more >>

DllImport for DeleteProfile results in the parmeter is incorrect
Posted by Chris Martinez at 2/21/2006 10:35:43 AM
Anyone that has an idea of how to invoke the DeleteProfile function from UserEnv.dll through P/Invoke is greatly appreciated. I cannot see to find any example anywhere on the web of how to import this function. Based on the original C prototype it seems like it should be very easy to import, ...more >>

How to do m_spPlayer->QueryInterface(&spSyncServices); on C#
Posted by Artur H. Shamsutdinov at 2/21/2006 6:59:28 AM
In Windows Media SDK Help to initialize IWMPSyncServices we using m_spPlayer->QueryInterface(&spSyncServices); But how can initialize IWMPSyncServices in C#. I tried to do in such way IWMPSyncServices ss = (IWMPSyncServices)Player; but ss comes null. How to do? Thanks! ...more >>

DCOM Delegation
Posted by Jeremy at 2/21/2006 6:55:27 AM
I'm using .NET 2.0 and have a remoted class hosted in IIS 6 that is attempting to access a DCOM'd object running on a Windows Server 2003 SP1 machine. Windows Integrated authentication is enabled in IIS and I have verified that Kerberos is enabled and working. Additionally, I have verified ...more >>

Casting of IStream to UCOMIStream fails
Posted by PRASENJIT BURMAN at 2/21/2006 12:00:00 AM
I have an application where I need to pass the data in a COLEStreamFile object to a method of a .Net class which accepts Stream*. I had implemented the solution specified in the following article in my application http://support.microsoft.com/default.aspx?scid=kb;en-us;321340 But it doesn't ...more >>

How to create Interop...dll's using tlbimp.exe like Visual studio
Posted by Dean at 2/20/2006 9:01:27 PM
I am trying to automate a build. We first build COM dll's, register them, then we want to create interop dlls so we can use them in .NET (v1.1). When we add a reference to a COM dll in Visual Studio, we get a series of interop dlls named: Interop.iboSubscription.dll, Interop.iboContentManag...more >>



MSDTC, Transaction, Context and Threads
Posted by Gian Paolo Clarici at 2/20/2006 3:32:40 PM
I've a problem using multithreading and MTS. I'm using framework 1.1 Basically I want, from the Main Thread , to start a (distributed) transaction. then I want to start 2 new threads to perform some Database operations, each thread will do some work on the DB using its own SQLConnection. I w...more >>

Question about coding against a COM server in C#
Posted by jacqueline.portier NO[at]SPAM gmail.com at 2/18/2006 8:22:59 AM
Goodafternoon, This is probably a silly question, but it is my mind all the time. In the meanwhile i'm using VB6. I'm using a Financial Application which you can register as a COM server. And then, in Visual Basic, you just go: Set objFinApp = CreateObject("FinApp.application") objFinApp...more >>

COM+ LC Event - Transient Subscription
Posted by Blair Allen Stark at 2/18/2006 2:11:27 AM
I am getting "An event was unable to invoke any of the subscribers (Exception from HRESULT: 0x80040201)" on what appears to have been a properly subscribed transient event. I have an Event Class in a signed library, LceEvent.dll, registered in COM+ via regsvcs LceEvent.dll ...more >>

VB6 Class to VB.NET - HELP
Posted by martins at 2/18/2006 12:23:37 AM
hi, I found a good VB6 class to parse VBS IFO Files from a DVD movie.... here : http://forum.doom9.org/showthread.php?t=50552 I tried to convert it to VB.NET....I made more than a half of the work...but I'm stuck here is my conversion : http://pwp.netcabo.pt/falmartins/vb_net_cls...more >>

Looping memory array in C#
Posted by Totto at 2/17/2006 5:56:42 PM
Hi all, I'm calling a win32 function from C# that returns a far pointer to an array of data. The looping in C goes like this: pSint8 = (char* )pData; pSint16 = (Int16*)pData; pSint32 = (Int32*)pData; pFloat = (float*)pData; for (j = 0 ; j < numb ; j++) { switch (DataType) { ...more >>

tabontrol scroll buttons
Posted by at 2/17/2006 5:00:57 PM
Hi NG! Is there any way to get a hand on the scroll buttons of the TabControl, those that appear at the right of the TabPage headers when there is not enough room and the Multiline property is set to false? How to change the aspect of these buttons? Thanks in advance. pax ...more >>

How to achieve isolation of an un-threadsafe COM DLL used from .NE
Posted by Shahid Hasan Faruqi at 2/17/2006 3:45:27 PM
Greetings, I am using a third party COM DLL which is not thread safe. I need to be able to make several instances of objects in that DLL using threads from an ASP.NET application without getting deadlocks/problems. I tried using Application Domains but still got thread deadlocks. Then I ...more >>

COM Interop timeout
Posted by Søren M. Olesen at 2/17/2006 12:00:00 AM
Hi I'm working on an application, which calls Photoshop from .NET using Interop. Sometimes however, an error occur and Photoshop displays a Dialogbox, waiting for the user to take action, before the program continues. Is there a way to setup some kind of timeout on a Interop method cal...more >>

Native method returns Array of structures containing char*...
Posted by Lionel Reyero at 2/16/2006 2:02:29 PM
Hi, I have a written a DLL in C myself, and I want to use it in my C# app using P/Invoke. Two functions are returning an array of structures which are containing a "char[]" field of known size. I tried to write a P/Invoke code in C#. but I get an error when I run the application... ...more >>

Domain/User to LDAP NameTranslate ability in the 2.0 framework???
Posted by Dave Kolb at 2/16/2006 12:28:54 PM
Is there any new 2.0 class that offers the functionality of the ActiveDS NameTranslate function as below? I would like to not have to use COM interop to do this. Thanks, Dave Kolb // convert the Netbios style "domain\user" name to an LDAP DN format ActiveDs.NameTranslate nt = new Activ...more >>

COM ActiveDS warnings just referencing
Posted by Dave Kolb at 2/16/2006 12:26:01 PM
If you create a new VS.Net 2005 Windows application, add no code at all, but add a reference to the COM "ActiveDS Type Library" and "rebuild all" more than once you get 39 warning messages. I have found no workaround for this and it affects my project I am converting from VS.Net 2003 to the 20...more >>

CCmdTarget destructor asserts while destroying sink object...
Posted by seek help at 2/16/2006 11:54:40 AM
Hello, I have an MC++ class exposing a COM interface ISrv. MC++ class also has a source interface, ISrc. ISrv has below method: void AttachSink( [MarshalAs(UnManagedType::IUnknown)]Object* pSrcUnk, Int32 *pError, Int32* pState); I have MFC sink class (derived from CCmdTarget) and imple...more >>

ProgIdAttribute being ignored on Com-visible classes
Posted by Mike Clayton at 2/16/2006 11:09:28 AM
Hi, I'm in the middle of a project to write some COM-visible classes in a .Net dll but I'm having problems getting a particular class to expose the correct name. The issue is that I've got two identically named classes in different namespaces inside a single project. Even though only one...more >>

Urgent: Excel 2003 and ASP.NET 2.0 interop fails at runtime
Posted by AL at 2/16/2006 8:11:27 AM
Hi I'm using a simple wrapper class which I orginally developed with .NET 1.1. I've recently added it to a .NET 2.0 class library which is then referenced from an ASP.NET 2.0 "project" Although the code compiles without any problem, I get the following exception message when creating a ...more >>

How does the TLB file work?
Posted by Barb at 2/16/2006 6:23:55 AM
I'm still trying to get my .NET .dll recognized by my VB6 COM object on the web server. It worked on a different web server, but I can't remember all of the steps we did to get it working there, and obviously I've missed one on the new server. I copied the .NET dll to the directory where m...more >>

Problem with ActiveX UserControl event mechanism
Posted by Vladislav at 2/16/2006 3:39:50 AM
I wrote an ActiveX UserControl in C# language. My problem is write a Managed Server as the event source and for example write a COM Client as the event sink. The managed server declares SampleEvents as an event sink interface and connects the interface to the SampleControl class. The unmanaged c...more >>

Not enough storage... error when instantiating ShellWindows (shdocvw.dll)
Posted by SkylineBlvd at 2/15/2006 12:13:21 PM
Hi all, I'm trying to create an instance of ShellWindows in a Windows Service I've written in managed C++ so that I can enumerate the running instances of Internet Explorer and later do some other things via IWebBrowser2. I'm having trouble right out of the gate, however: shdocvw::ShellWindow...more >>

Using Excel on a server which does not have MS Office Installled
Posted by Debi at 2/15/2006 10:55:25 AM
Hi, I'm accessing and modifying an excel file from my application. The code works on my machine. Then I create a Setup and Deploy project and install this on the server which does not have MS Office. The code fails on the CreateObject with a message - Object variable or With block variable...more >>

Problem with byte[] as part of a struct in c-function converted to c#
Posted by desperate programmer at 2/15/2006 5:54:19 AM
I have a problem with this structure in C. I must convert this structure to a c# structure. typedef struct { ... BYTE ATR[128]; ... }XI_SESSION,*PXI_SESSION; I want to use this structure in c# in the interop function: DLLAPI int Xl_decl XI_StartSession(int, PXI_SESSION); The Calling Co...more >>

VB.Net calling VC++ library for performance
Posted by alanwo NO[at]SPAM gmail.com at 2/15/2006 3:17:31 AM
Hi experts, I am developing a file-reading intensive application which read files and compare bytes / byte array. We have migrated VB6 application to VB.net but found the time doubled. My idea to improve the performance is to write mainly with VB.net while calling functions/class library writ...more >>


DevelopmentNow Blog