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

Filter by week: 1 2 3 4 5

"Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction."
Posted by Ollie Riches at 3/7/2005 8:08:03 PM
"Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction." I am recieving the above error when attempt to access a remote sql server database 2000 (sp3a) from ADO.Net. The database is on a windows 2003 machine and the ado.net code (web ser...more >>

Microsoft Word 9.0 Object Library Close() Method Ambiguous
Posted by no.spam NO[at]SPAM gte.net at 3/7/2005 7:00:47 PM
Using Word interop, I can open create and open documents, but when I try to code a Close method to close just one of the several open documents, I get an error: Ambiguous reference across the inherited interfaces Word_Application and Word_applicationEvents2 Events. To use the interop, I've...more >>

Handling a UCHAR* interop
Posted by jamesfarrer at 3/7/2005 11:58:44 AM
Hi all, Could anyone advise how to handle the marshalling of UCHAR* - As I understand it it can be a null terminated string? I have a function in a dll [not written by me so I don't have the src]... int FEISC_0x65_SoftVersion(int iReaderHnd, UCHAR cBusAdr, UCHAR* cVersion, int iDataType) ...more >>

Calling unmanaged C++ from C#
Posted by zDog at 3/4/2005 12:41:02 PM
Here is the situation. I have a C# app that calls exported functions contained in an unmanaged C++ DLL. This has been working just fine – when the unmanaged DLL was compiled using VS 6.0 That V6 project was brought into VS2003 and recompiled with NO changes made to the project. But no...more >>

Win32 API on C#
Posted by Elton Rabello at 3/4/2005 5:57:04 AM
Hi I want to know if I could create a Win32 API on C# or VB.Net. If yes, I need to put some extra code or compile from a different way? I have a old Delphi application that needs to load my dll like a API using the function LoadLibrary ak DLLImport from C#. I tried using .Net and ...more >>

UnmanagedType.LPStruct & INTERNET_BUFFERS
Posted by maxixi at 3/4/2005 1:06:42 AM
Hi, It is my first time to use C#, and i struggle with my code with wininet api. Declare API: public abstract class WinInet { StructLayout(LayoutKind.Sequential)] public struct INTERNET_BUFFERS { public UInt32 dwStructSize; public IntPtr Next; public String lpcszHeader;...more >>

Killing Instance of Excel opened through ASP.NET
Posted by (kunal.kewalramani NO[at]SPAM patni.com) at 3/4/2005 12:42:35 AM
I'm opening an Excel file using ASP.NET, but Excel process remains it is not killed, I tried killing it by using Quit() that is also not working, if anybody have any solution for this please help me out. ********************************************************************** Sent via Fuzzy Softwa...more >>

Help: floating modeless dialog in Word add-in (C#)
Posted by Alex at 3/4/2005 12:19:59 AM
Hello, I am writing a Word add-in in C#. I am trying to create a dialog window that will behave similarly to the = "Find" dialog in Word or Visual Studio (actually, I try to mimic the Visual Studio "find" as it does not appear = on the taskbar). That is: - The dialog is modeless (the user c...more >>



Marshal.GetLastWin32Error errors
Posted by Alex at 3/3/2005 11:46:49 PM
Hello, I have a problem with Marshal.GetLastWin32Error() Every call returns 127 (ERROR_PROC_NOT_FOUND) even if the previous call = was successful. For example, given: namespace Utils { public class Win32 { [DllImport("user32.dll", SetLastError =3D true)] publi...more >>

word interop version 9 (word 2000) bulleted list question
Posted by no.spam NO[at]SPAM gte.net at 3/3/2005 7:59:03 PM
I have need to automate the insertion of a bulleted list into a word document using Word interop (DLL version 9). In a very simple example, I have done this using: Range.ListFormat.ApplyBulletDefault() and I indeed see a bulleted list. What I really need is to be able to control the bu...more >>

Comparing to float.NaN throws ArithmeticException
Posted by RRIMSDN at 3/3/2005 4:35:49 PM
We have a DLL compiled under Borland C++ Builder 5 calling an exported C entry point in a Mixed Mode Managed C++ DLL. This function in turn calls functions in a C# assembly. The application executable is also compiled by Borland. We encountered an ArithmeticException thrown from the Syste...more >>

excel handle (hwnd)
Posted by RonF at 3/3/2005 1:15:06 PM
Is there an easy way to get the handle of an open excel window from my vb.net application. I've opened an excel object as myexcel = new excel.application. I've read that this has a handle property but can't access it. -- Thanks RonF...more >>

REPOST with Correct Address: SAFEARRAYs of interfaces other than IDispatch/IUnknown
Posted by M Thomas at 3/2/2005 5:22:33 PM
All I'm getting a problem whilst using COM interop. I've got some idl similar to the following (GUIDs etc. removed for clarity):- library { interface IFlyable : IUnknown { HRESULT Fly(); } interface IFlyableCollection : IUnknown { HRESULT GetColl...more >>

How to get back Strings from a C-DLL
Posted by Peter Stojkovic at 3/2/2005 2:01:25 PM
I have a VB.NET-Program, that makes calls to a external C++ function . This part is alread done and is working well. The values are given by a structure and come back with a structure Now my question: I want extend the structure that come back from the DLL with a string There should als...more >>

How to set clipboard data from my app using IStream in .NET?
Posted by David Lindgren at 3/2/2005 9:58:07 AM
Hello. I have a C# database application which stores files in the database. I would like to be able to use the clipboard to pass files from my application to the windows explorer. I have read quite alot articles about this and I think that using the IStream interface is the way to do it. Ho...more >>

Manipulate Excel file from .NET
Posted by Harry Zhang at 3/2/2005 1:41:04 AM
In the past,I used COM to access excel files by using the following way: Assume the file to manipulate is "c:\temp\test.xls" 1 CreateBindCtx( 0, &pBndCtx ); 2 MkParseDisplayName( pBndCtx, *pName, &ulEaten, &pMoniker); 3 pMoniker->BindToObject(pBndCtx, 0, IID_IUnknown, (LPLPVOID)&m_pOb...more >>

passing 2-dimensional array to COM DLL
Posted by Mario Kropik at 3/2/2005 1:06:33 AM
Hello Ng, The RCW created with tlbimp shows following original VB6 definition of the array parameter: Public Function FunctionToCall(ByRef myArray() As String) As Object I need to pass a 2-dimensional string to a COM dll function. e.g.: Dim a(0,5) as String FunctionToCall(a) This w...more >>

Debug a C# COM object from VS 6.0 C++ client
Posted by Craig at 3/1/2005 5:09:57 PM
I've been writing C# code for maybe as much as 2 weeks now. The code I'm writing is exposed as a garden variety COM object that VC++ 6.0 and VB 6.0 can use. Coincidentally my COM development track record is also 2 weeks long. :-) The time has come to debug down into the C# COM object from a ...more >>

Interop fails with ASP
Posted by Manjula Dinesh at 3/1/2005 5:03:33 PM
Hi, I am trying to consume a C# library from ASP through interOP, this is to read some configuration settings from the machine.config file. But for some reason the interOP works fine with a VB client but not with ASP, though ASP can create the instance it fails executing the method. Would b...more >>

Creating a COM component on a STA thread
Posted by Dilip at 3/1/2005 3:35:03 PM
Hello I am trying to create a COM component that stubbornly refuses to be created on any thread that has not entered the STA. I spawned a new thread, made it enter STA by changing the Thread.ApartmentState to ApartmentState.STA and then created the COM object. It successfully gets created ...more >>

How do I script the registration of .NET components used by VB6?
Posted by Daniel Wilson at 3/1/2005 1:16:00 PM
My VB6 program is using an increasing number of .NET components. It's becoming a distribution nightmare. When I send out an update of the software, the new .NET DLL's are not getting registered in the GAC, so problems I've solved aren't being solved for my customers. My update routine calls...more >>

Invoking a native function that returns a string
Posted by Jatin Sethi at 3/1/2005 11:30:13 AM
I am trying to PInvoke a function that returns a string. The C signature of the function looks like: const TCHAR *WINAPI GetCommandStatusText(HANDLE hReader, int stat); My trouble lies in marshaling this returned string. I declared the function in C# below: [DllImport("MyApi32.dll")] s...more >>

Microsoft Windows Explorer Interop
Posted by Víctor at 3/1/2005 10:44:14 AM
Hello, I'm trying to do an application which create a button in windows explorer toolbar and a element in folders / drives TreeView. I searched information but I haven't found neither via internet and books. Thanks. Víctor. ...more >>

Getting a .NET UserControl working in VBA
Posted by Ryan Skarin at 3/1/2005 8:51:04 AM
I have created a UserControl in C# that I have added the GUID, COMVisible, and the COMRegister and Unregister functions, ProgID, and ClassInterfacetype...... when I register this assembly and try to use it in VBA I get file errors when I run the app. It shows up in the toolbox fine, and dr...more >>

The dependency 'Microsoft.Interop.Security.AzRoles' could not be f
Posted by Rick at 3/1/2005 6:17:04 AM
I'm using the new Enterprise Library from Microsoft. I loaded all the references which are used in the Security example. Still it gives this error: The dependency 'Microsoft.Interop.Security.AzRoles' could not be found. This dependency should be in the file Microsoft.Practices.EnterpriseL...more >>

QueryInterface for interface XXX failed.
Posted by googlegroups NO[at]SPAM jasonwyckoff.com at 3/1/2005 5:31:25 AM
I have been working with a third party COM component for a couple years now, and have been integrating our .NET website, We recently upgraded the version of the third party application, and now when I run my code, I get: QueryInterface for interface MEAOAM._AddressMap failed. A couple of ...more >>

Passing a char* [] argument using C#
Posted by Jsaraf at 3/1/2005 12:41:04 AM
I am using a third party dll that has a function like void : Func_name(int a,char* b[],char* c[]) How can I make a declaration in C# to set a char*[] pointer? I am currently using a string[] and the size of the table is no problem since I know that it is always 1. I still have to create a tabl...more >>


DevelopmentNow Blog