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

Filter by week: 1 2 3 4 5

Manually implement COM interface in C#???
Posted by Zhenxin Li at 5/14/2005 12:00:00 AM
Hello, I want to implement IUPnPServiceCallback in C#. This interface is not in the typelib of UPnP dll, so I must implement it myself. Are there any references to implement COM interface in C# manually? Best regards, Zhenxin Li ...more >>


Newbie registering a .Net assembly into COM+
Posted by Jim Bancroft at 5/13/2005 12:49:32 PM
Hi everyone, I think this is a fairly simple question, so I'll apologize upfront for asking this, but I'm stuck. I've created a .Net assembly that I can access from VB6 on my machine. I did the interop type library thing, all that. Works fine from my VB6 app, on my machine. ...more >>

Implement Interface With S_FALSE Return
Posted by xanadont at 5/13/2005 9:38:02 AM
I'm implenting an interface from ArcObjects (ESRI) where one of its methods expects are return value of S_FALSE at certain conditions. How can do this in .Net (C# specifically)? throw new COMException("", 1); The above seems to work in release mode, but when debugging the debugger halts...more >>

C# structure for similar C API structure
Posted by kittu at 5/13/2005 7:27:35 AM
Hello Group, I am very new to PInvoke. I am desparately looking out for a C# structure corresponding to the C style structure. C language DLL structure typedef struct PBFNProcessDataDefinition { char cVersion[VERSION_LEN]; char cApiId[APIID_LEN]; char * cFirm; short sFirmLen; ch...more >>

Finding COM ProgID of an object in VB.NET
Posted by Oenone at 5/13/2005 12:00:00 AM
Is there any way for me to find the ProgID of an Object in VB.NET which contains a COM object? For example, if in one function I do this: Dim myObj As Object myObj = CreateObject("MyCOMProject.MyClass") ....later in another function to which the myObj object has been passed, I ...more >>

Calling into C DLL : passing structure with pointers
Posted by kittu at 5/12/2005 9:50:05 AM
Hello group, I'm writing a C# class that calls into a C style DLL. I'm trying to call a function which takes struct pointers and further these C strutures have pointers. The C# code throws an exception System.NullReferenceException: Object reference not set to an instance of an obj ect....more >>

UCOMIPersistFile and Reflection question
Posted by psuthar NO[at]SPAM groove.net at 5/12/2005 9:01:06 AM
object ActiveDocumentObject = // an instance of MS word document; System.Runtime.InteropServices.UCOMIPersistFile UCOMIPersistFile = (System.Runtime.InteropServices.UCOMIPersistFile)ActiveDocumentObject; UCOMIPersistFile.Save(DocumentPath, false); <===WORKS ActiveDocumentObject = UCOMIPersi...more >>

call dotnet dll from asp object doesn't support this property or method
Posted by koenappeltans NO[at]SPAM gmail.com at 5/12/2005 8:06:13 AM
Hi, I wrote a simple dotnet class that I want to access from classic asp. After building the dll I registered him with regasm and included him in the gac. On my machine (Win XP service pack 2, IIS 5.1) it works perfect to access this class from classical asp. I do a CreateObject, call th...more >>



Debugging Interop (revisisted)
Posted by Xavier Pacheco at 5/12/2005 7:25:59 AM
We have an ongoing problem debugging our ServicedComponent. This is a follow up to the thread entitled: "Cannot Debug Interop". Here's the situation: We have an existing VB6 Application named CAT CAT calls a series of COM objects written in VB6, I'll call this (COM OJBs) One of the COM O...more >>

Finding progid's in a loaded DLL
Posted by Marek at 5/12/2005 12:00:00 AM
Hi I'm able to load a COM DLL using LoadTypeLibEx, but what I then need to do is find out what progids are implemented within it. I'm using .NET 2.0 and C#. Thanks for any help anyone can provide. Marek ...more >>

Slow moving data from ADO.Net DataTable to Excel
Posted by Tommy T-Bag at 5/11/2005 7:10:16 PM
I am moving data from an ADO.NET DataTable object in C# and I am having performance issues. QueryTables.Add, at least when called from C#, seems to spin off its own thread. So I go doing a bunch of other stuff to an invisible sheet AFTER I want the data transfer to occur, however, even afte...more >>

PInvoke CredRead in Advapi32.dll
Posted by hsd31 at 5/11/2005 2:04:38 PM
I'm trying to PInvoke the 'CredRead' function in Advapi32.dll. It doesn't seem to work. CredRead returns true, but the CREDENTIALS struct has flag set to 1538928. Anyone know what it means ? Is my CREDENTIALS struct incorrect ? PInvoke Signature used: ----------------------- [DllImport("...more >>

Excel and "other data sources"
Posted by Kinryuu at 5/11/2005 11:03:57 AM
I'm working on an app that opens several Excel workbooks and imports selected data into various places. One problem I'm having is that some of these workbooks generate a dialog "This workbook contains links to other data sources." Sometimes, this dialog has Yes or No buttons asking if I want to ...more >>

Outlook
Posted by Geoff Murley at 5/11/2005 7:43:12 AM
I have a ASP.NET application running on a Server which does not have Outlook Installed. I want to access a Users calendar items when a button is pressed on the ASP page. However, I get the error: COM object with CLSID {0006F03A-0000-0000-C000- 000000000046} is either not valid or not reg...more >>

Interop between .NET and C using unions and structures
Posted by RLapão at 5/11/2005 6:08:02 AM
Hi all, I'm having a tricky problem. The thing is that i have a structure that contains a union (a structure with offset=0 for each item) and some fields of the union are fixed size strings in .NET, and I need to serialize it to a stream of bytes to send throw a namedPipe to a C App. ...more >>

Is my dll as .NET assembly?
Posted by Ben Reese at 5/11/2005 2:38:04 AM
Hello friends I wish to determine at runtime whether a dll file is a .Net asembly or COM. Sure, I could try and load it into an assembly object and trap the exception that results ------------------------------------------------------ Dim _Assembly As System.Reflection.Assembly ...more >>

Show VB6 form as child in .NET - How to ?
Posted by Antonio Paglia at 5/11/2005 12:00:00 AM
Hi I can show a VB6 Form within my .WindosForms NET application but a can't show it as a child of my .NET mdi form. Any help will be appreciated. TIA Antonio ...more >>

Using Excel through COM interop in ASP.Net--need a little more hel
Posted by Mark Miller at 5/10/2005 11:05:01 PM
I'm trying to run Excel on the server side, uploading an Excel file to the server and having it processed there. I've read elsewhere about how to configure security for this, but I'm unclear on all I need to do. The advice I've read is to use dcomcnfg.exe to grant access and execute righ...more >>

Excel Chart Problem
Posted by Prasun at 5/10/2005 4:27:31 PM
Code: Dim oXL As Excel.Application Dim oWB As Excel.Workbook oWB = oXL.Workbooks.Open("C:\data.xls") '---> Exception thrown here 'Dim ThisWorkbook As Excel.Workbook Dim ThisWorksheet As Excel.Worksheet ThisWorksheet = oWB.ActiveSheet Dim ch...more >>

general marshalling question
Posted by Jozsef Bekes at 5/10/2005 12:01:53 PM
Hi All, I have a question about the way marshalling executes. I am quite a newbie in C#, and wanted to use a COM function that filled a buffer with data. The COM function expected a byte pointer, and a specified size. I know, that the correct solution is to use [MarshalAs(UnmanagedType.LPAr...more >>

Passing a pointer to long
Posted by Jeronimo Bertran at 5/10/2005 11:10:59 AM
Hi, I have a function written in C++ that allocates a certain amount of memory, returns a handle to the memory and the size in a reference parameter: void* UnmanagedFunction(int* psize) { * psize = DetermineSizeNeeded(); void * result = Alloc(* psize); return result; ...more >>

Interop Debugging problems
Posted by John at 5/10/2005 4:44:53 AM
I cannot debug unmanaged code from managed code and need help! Scenario - I have a COM Dll exposing a custom interface with a test method all written using C++ and ATL. I am calling the COM Dll from a C Sharp console application and it all "just works". Everything has been written using a...more >>

Registering components in component services.
Posted by Francois Malgreve at 5/10/2005 12:00:00 AM
Hi, I created a simple example from the net to create a ServicedComponent. In my C# project properties, I set the property "register for COM Interop" to true. For VB.NET projects, it is a check box that I have to check. Everything works well and I can indeed call the component from an other a...more >>

Where to get PIA for ADODB
Posted by DapperDanH NO[at]SPAM nospam.nospam at 5/9/2005 2:25:49 PM
Hello, I have been researching on the PIA for ADODB. I am confused. Does the PIA for ADODB only come with VS.net? If so, what is the recommended deployment strategy for making sure the PIA is on the customer machine? Does MDAC 2.7+ come with the PIA for ADODB? Thanks, Dan H. ...more >>

Retrieving registry permissions
Posted by Bruce Parker at 5/9/2005 12:17:14 PM
I need to see who has permissions in certain registry keys. I am trying to use RegGetKeySecurity but not getting very far with it. Is there an easier way to do this without going to a SDK function? Here is the code so far. It fails on the second call to RegGetKeySecurity. Imports System...more >>

NetQueryDisplayInformation Windows 2003
Posted by nickname at 5/9/2005 9:40:09 AM
Hello I have got the following code that fetches a list of NT groups from a domain controller. This works fine with Windows NT 4 domain controllers but with windows 2003 domain controllers it only fetches the first 10. On a Windows 2003 domain controller I get return code 31, on the second ...more >>

Resgitering in ROT a .NET Class
Posted by Eric St-Onge at 5/9/2005 8:46:05 AM
Hi, I would like to register in the COM Running Object Table (ROT) a .NET object. I would like to have a .NET process to host an instance of a class and a VB 6.0 GUI application to be able to access it. So far we have use the following APIs to publish our .NET object in the ROT: 1- Syste...more >>

how to handle interfaces marked as [out] in IDL
Posted by John at 5/9/2005 8:26:12 AM
Hi, First of I am a dot net newbie but have a few years experience using C++, ATL etc. The problem I am trying to solve is as follows. I have an unmanged COM DLL written in C++ with a couple of objects I am trying to call from C#. The relevent IDL in my COM DLL looks like this inter...more >>

managed app using unmanaged dll to access LPT
Posted by Stefan G. at 5/9/2005 7:27:47 AM
hi, we've to develop a winform-app (.NET 1.1 / C#) , which controls a device connected to the lpt port. the producer of the device provides a set of unmanaged dlls. till now they have been used in a VC++/MFC app and worked properly. in our .NET-app the same function-calls don't return...more >>

managed app using unmanaged dll to access LPT
Posted by Stefan G. at 5/9/2005 7:24:15 AM
hi, we've to develop a winform-app (.NET 1.1 / C#) , which controls a device connected to the lpt port. the producer of the device provides a set of unmanaged dlls. till now they have been used in a VC++/MFC app and worked properly. in our .NET-app the same function-calls don't return...more >>

char* (not ascii string) to Bitmap
Posted by Stephan Steiner at 5/9/2005 12:00:00 AM
Hi I'm wrapping a C++ dll that exposes the following function (amongst others) extern "C" __declspec(dllexport) unsigned char* __cdecl getRGBFrame(int frame) My C# wrapper looks like this: [DllImport("dgdecode.dll")] protected static extern IntPtr getRGBFrame(int frame); I can re...more >>


DevelopmentNow Blog