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

Filter by week: 1 2 3 4 5

Do I need My COM's to have same CID when Deployed
Posted by Ali Elhamdi at 11/7/2005 4:28:25 PM
This might be a stupid question but it is not covered in any materials I have been reviewing. Basically, I am consuming a COM component using interop in my .ASP.Net application. When I move code over to production and run the project, I get the following error: COM object with CLSID {4A...more >>

Trying to create a dll accessible from SQL Server (sp_OACreate), here is my code..
Posted by Todd S at 11/4/2005 1:26:08 PM
I am trying to create a class library accessible to in SQL server as a COM. I am using the Wininet.dll and can get it to build successfully. I then run tlbexp and create the type library and when I attempt to register the dll with regasm.exe I get the following error: RegAsm : warning RA0000 :...more >>

Implementing class 'xxx' for interface <yyy> cannot be found
Posted by Jamie_C at 11/4/2005 3:12:01 AM
Hi - I'm trying to call our existing COM software components from a new .NET 2005 project I am writing. The COM stuff in question is a DLL written in VB6. Adding this as a COM reference in the IDE project Properties dialog produces an interop DLL as expected, but as my .NET assemby is "strong...more >>

pointer to a c++struct kept by c# code
Posted by antoine at 11/4/2005 12:00:00 AM
hi, i would like to know how a c# class can keep a reference (pointer) to a structure allocated by unmanaged c++ code. ****************************************************** c++ struct MyUnmanagedStruct { int foo; } __declspec(dllexport) void GetAPtrToAnUnmanagedStruct( MyUnmana...more >>

Object pointer to IntPtr.
Posted by Per Rasmussen at 11/4/2005 12:00:00 AM
How do I get an IntPtr to a specified object, or rather, how do I convert an Object to an IntPtr? Thanks in advance, Per Rasmussen. ...more >>

app.config with .Net written COM
Posted by Baron Ng at 11/3/2005 5:38:02 PM
Hi, I wrote a COM (ABC.dll) using VS.Net 2005 since it is not an application; I don't know how it can access app.config (ABC.dll.config) I tried ConfigurationManager.AppSettings but it didn't work any idea?! Thanks!...more >>

Transfer protected media file license to device
Posted by DKT at 11/2/2005 3:48:01 PM
Hi, We are trying to transfer a protected file (with DRM) to a portable device using Windows Media Device Manager SDK (WMDMsdk) . We have no problem running this as an ATL application. But since our application is written in C#, we're trying to write a DLL in c++ that will enable the c# appl...more >>

Accessing Unmanaged code from ASP.net
Posted by admiller97 NO[at]SPAM gmail.com at 11/2/2005 2:31:38 PM
I've got some code to access an unmanaged dll, and it works fine in a windows based app, but when I move the code to a web application it does not work. It does not throw an error, it acts like the code never gets called. private class dllWrap { [DllImport("C:\\ProcessComman...more >>



How to create an out of proc server using C#?
Posted by MarlonB at 11/2/2005 11:28:04 AM
I would like to create a singleton out of proc server using C# to be called by a legacy COM client. I don't want to use NT service. Has anybody done this. All the example I've seen are all either InProc or NT service....more >>

RasDial does not send password when called from .NET
Posted by Roland Bär at 11/2/2005 9:25:21 AM
In an Application I have to Connect to another machine via RAS. I have done a wrapper that impoerts the needed functions from rasapi32.dll. The application was developed on a windows 2000 server machine. The Dialup worked ok on this machine. When I installed the Application on an Windows 200...more >>

Killing an Unmanaged VB6 COM Process from C#
Posted by Christopher G. Carnahan at 11/1/2005 1:37:18 PM
I have a C# service that is making regular calls into an out-of-process COM component written in VB6. Problem is, if the VB component blocks and hangs, or goes into an infinite loop (don't ask why, it just does), then I want to free and release it. When I've decided I'm done waiting for th...more >>

Share or put a .NET DLL in a global cash /Register
Posted by Behnam at 11/1/2005 10:52:21 AM
Hello, I would appreciate if anyone can advise how to share or put a .NET DLL in a global cash or share place for other projects to be able to call. A piece of sample code would be nicer. (VB.NET) Thanks ...more >>

Implementing ADSI and using System.DirectoryServices
Posted by dumchikov NO[at]SPAM gmail.com at 11/1/2005 4:57:37 AM
Hi, I have implemented the IADs interface in .NET. And I want to use System.DirectoryServices.DirectoryEntry class with my implementation. The DirectoryEntry has the constructor DirectoryServices(Object obj). So I supposed, that I can use it if I passed my implementation there. But the Argume...more >>

Passing variants from VBA to C# COM object
Posted by Ruslan Popov at 11/1/2005 4:05:01 AM
Hello, Is there a way to pass variant parameters from VBA to a C# COM object? Specifically, I'd like a class to have an indexer property to store different types from VBA - numbers, strings and dates. In C# I should be able to detect what actual type is passed. So, the type should be varian...more >>

Problems calling native GetIfTable function
Posted by Catherine S. Lowery at 11/1/2005 12:00:00 AM
Hello everyone, I need to call the native function GetIfTable() and set up everything to do so as follows: ----- START OF CODE ----- [DllImport("iphlpapi.dll", SetLastError = true)] public static extern int GetIfTable( IntPtr pIfTable, ref uint pdwSize, bool bOrder ); [StructLayo...more >>


DevelopmentNow Blog