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 > january 2005 > threads for january 8 - 14, 2005

Filter by week: 1 2 3 4 5

Calling a Fortran DLL from .NET application
Posted by mallik at 1/14/2005 7:53:25 PM
I've(inherited) a DLL that's built using Fortran(I was told that it's = built using Fortran).=20 When I tried to reference it in a .NET project it(VS.NET) gives an error = message saying that "It's not a valid COM component". Is there any way to use(call) this DLL from a .NET Application ? ...more >>

Determing version of COM component from C#
Posted by Kapil Sachdeva at 1/14/2005 1:52:56 PM
I have a situation that I need to determine if a particular version of com component is present on user's machine from .NET. In COM I would invoke CoCreateInstance(CLSID_MyComponent2_0) and if this returns an HRESULT with REGDB_E_CLASSNOTREG I would know that this class is not registered. ...more >>

Possible to Marshal param array to unmanged code?
Posted by Jason Cartwright at 1/14/2005 1:02:04 PM
I have the following callback signature and the delegate I am using for the function pointer: //C++ Callback Signature: void(*pErrorHandler)(acTErrorMsgType ErrorMsgType, acTErrorCode ErrorCode, acTBoardHandle BoardHandle, acTChannelHandle ChannelHandle, const char *Format, ...); //C# dele...more >>

Running Exchange MAnaged Events sinks without Visual Studio Instal
Posted by martinwlarsen NO[at]SPAM online.nospam at 1/14/2005 9:03:02 AM
I have developed a Exchange 2003 Managed Async sink using the Onsave event. My problem is that I cannot get the sink to run correctly without Microsoft visual studio 2003 installed on the Exchange server. What happens is that the sink is executing as expected without VS 2003 if I do not ope...more >>

COM dll talking to .NET executable - it can't be like this!
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 1/14/2005 3:27:58 AM
Hi OK. It seems one is prevented from automatically 'registering for COM interop' in the Configuration Properties if it's an .EXE project. Tlbexp works and creates a .tlb but examining it with OLE viewer, the publicly exposed .NET classes map to IDispatch interfaces with no properties or meth...more >>

VB6 / .NET Interop Question
Posted by Adam Jones at 1/13/2005 4:54:38 PM
I'm currently working on a .NET client that needs to access functionality in VB6 code. We had the system working, but then we were asked to change some of the functionality in the VB6 project. We set the project for binary compatibility and made the change. The interface for the VB6 class rem...more >>

Nasty COM Interop Problem
Posted by Sebastien Lange at 1/13/2005 3:50:28 PM
Hi, I'm having a very weird problem with a wrapper I made around a com object. While creating the wrapper I was testing it by means of a button on a test form, and the COM wrapper worked just fine. It was actually meant to be used in a multi-threaded environment. Now, the library still w...more >>

Explorer Context menu in my ListView (newbie)
Posted by Marcel Hug at 1/13/2005 1:39:59 PM
Hi NG ! I'm not shure if i'm in the right NG but I'm desperate because don't finding help! So i try it here. I have a little c# - application in which i showns some files in a listview. Now i would like to get the Windows Explorer Context Menu, if i press the right mouse button on a file. I ha...more >>



Marshalling problem (only first element of array)
Posted by dmorenos NO[at]SPAM gmail.com at 1/13/2005 1:04:25 PM
I have this c function GetR( OUT ppp ** ppr, OUT int * pn ) with this strcuture typedef struct ppp { }ppp; I marshalled like this: [DllImport("NetApi.dll")] public static extern int GetR( [In,Out, MarshalAs(UnmanagedType.LPArray,SizeConst=256)] IntPtr[] ppr, out IntPtr pn...more >>

Keyboard Scan Code Capture?
Posted by chewie at 1/13/2005 11:17:02 AM
Does anyone know how to capture keyboard scan codes using C#? Thanks...more >>

(0x80040154): Class not registered
Posted by Hagus at 1/12/2005 11:15:02 AM
I'm hoping that someone could point me to the cause of this problem and suggest a solution. I have a C# program that dies with the following: System.Runtime.InteropServices.COMException (0x80040154): Class not registered at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at S...more >>

Marshalling pointer to pointer to interface
Posted by Nauman at 1/12/2005 9:38:10 AM
I would like to call a method in an unmanaged C dll from C# using VS2003. However, I haven't been able to successfully do this so far. I am hoping that someone can help me get this working. The method signature for the C function is: HRESULT __stdcall FuncFromCDll(ISomeInterface** ppISomeInte...more >>

Passing a Recordset from VB6 to VB.Net (QueryInterface failed.)
Posted by adam at 1/12/2005 8:49:03 AM
I am getting an error when trying to use an ADODB.Recordset that was passed from a VB6 application to a VB.Net class library using COM Interop. I am running this on WinXP SP2 using the .Net Framework 1.1 and MDAC 2.8 SP1. This is what I've done: - I compiled the VB.Net DLL and registered it...more >>

Passing an ADODB.Recordset from VB6 to VB.Net (QueryInterface fail
Posted by adam at 1/12/2005 8:19:06 AM
I am getting an error when trying to use an ADODB.Recordset that was passed from a VB6 application to a VB.Net class library using COM Interop. I am running this on WinXP SP2 using the .Net Framework 1.1 and MDAC 2.8 SP1. This is what I've done: - I compiled the VB.Net DLL and registered it...more >>

Interop Threading Weirdness - Axshdocvw
Posted by Beano at 1/12/2005 6:25:17 AM
I have a process that starts starts a windows form .dll on a new thread. The class gets instantiated, and then the StartNavigation() method is called. The StartNavigation method runs the AxSHDocVw.AxWebBrowser Navigate method. As soon as the navigate method finishes running, the window closes...more >>

RegisterAssembly does not add typelib entry in registry
Posted by jjkboswell NO[at]SPAM yahoo.com at 1/11/2005 9:49:04 AM
I have an assembly which I want to use from COM. My project's build has a step to register for COM interop, and if I use COM/OLE Object Viewer I can see my type library. But, I want windows installer to do the registering. So I have put an Installer class in my project and a customaction in ...more >>

Writing a Collection Accessible to JScript
Posted by Mark Fishpool at 1/11/2005 6:57:09 AM
Hi, I am writing COM interfaces for some C# classes so that they can be accessed from JScript in Internet Explorer and need to write a collection that my existing JScript can easily call. I need to implement the length property, indexer [] and support the (for xx in xx) construct. I'...more >>

SQLMERGX, REPLERRX unable to get error messages
Posted by Andreas Pircher at 1/10/2005 1:33:03 AM
I use SQL Server Merge Replication in a C# Smart Client. Everything works quite well until I try to get the information about occured errors. First I tried to do it like every sample in the web does. I accessed the ErrorRecords property of the merge control, checked the Count property of th...more >>

C# access to C DLL
Posted by _BNC at 1/9/2005 9:50:59 PM
Here's the breakdown: I have an old C DLL that I want to access via C#. I'm doing this via an outer DLL that wraps the old C DLL in an unmanaged C++ class, which is in turn wrapped in a Managed C++ class. Both these unmanaged C++ and managed C++ classes are compiled into a single assembly ...more >>


DevelopmentNow Blog