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 > october 2003 > threads for october 29 - 31, 2003

Filter by week: 1 2 3 4 5

Array
Posted by XingZheng at 10/31/2003 11:43:40 AM
Hi I use pInvoke to call Dll. How to delete buffer which is allocated in visual c++. In Visual C ++ public void GetArray(BYTE* &buffer, UINT* length) { buffer = new BYTE[10]; //How to delete buffer in C# ...... } In C# public void GetArray(out IntPtr lpBuf, out int length); ...more >>


Application crashes ignoring try{...}catch{...}
Posted by Alexey Kouzmitch at 10/31/2003 10:00:09 AM
Hi, I wrote a console application which is called from a SQL Server job. The application utilizes a COM object, to pump data from a legacy (not very old however) application to SQL server. The application works fine, but once in a while it fails with the following message written to the event ...more >>

How to automate outlook without office ?
Posted by François_Vallernaud at 10/31/2003 9:04:22 AM
I see that it is possible to automate outlook with the automation object for office msoutl.olb Unfortunatly Office isn't installed on my computer. Is it possible to automate outlook using an other way ? thanks for your help...more >>

Mapping IDL Interface
Posted by Shawn at 10/31/2003 8:34:33 AM
From the Platform SDK, for MMC. Please help mapping the interface IToolbar for use with C#. I'm specifically having problems with the AddButtons method, that accepts a c-style array of MMCBUTTON structure. IToolbar (from Platform SDK): [ object, uuid(43136EB9-D36C-11CF-...more >>

Exclude from Marshal
Posted by Jonny Nilsson at 10/31/2003 8:09:43 AM
Hi I have a struct with 4 variables in it. How do I do if I dont want all these variable to be Marshal. Like exsample below. /Jonny public class Test { public int nType; // To be marskal public int nSize; // To be mar...more >>

Accessing C# Components from Borland C++ Builder
Posted by Curtis at 10/31/2003 7:46:47 AM
I am investigating the possibility of porting an application originally developed in Borland C++ Builder 3 to C#.NET. As a proof of concept I need to develop components in C# and access them from Borland. At least one of these components is required to access the Serial port. So far...more >>

strange error not cought by try...catch...
Posted by Alexey Kouzmitch at 10/30/2003 5:01:20 PM
Hi, I wrote a console application which is called from a SQL Server job. The application utilizes a COM object, to pump data from a legacy (no very old however) application to SQL server. The application works fine, but once in a while it fails with the following message written to the event l...more >>

Problem in Passing structure to SendMessage API
Posted by anand.dani NO[at]SPAM T-Mobile.com at 10/30/2003 3:16:45 PM
Hi, I am trying to pass structure in LParam of SendMessage API. I could not able to get the value in called window.The code and declaration is as below: //Class A //******** [DllImport("User32.Dll" , CharSet=CharSet.Auto)] private static extern long SendMessage( IntPtr hWnd, // h...more >>



2003 Excel Interop Interface Change
Posted by Roman at 10/30/2003 6:39:58 AM
It seems that some of the Office 2003 interfaces changed (Excel's theWorkbooks.Open in particular). I am using this call in my Windows Forms application. Do I have to add references to two Excel assemblies (2003 and prior) and have to seperate 'Open' calls in the 'If' statement (depending ...more >>

HttpContext.Current always returns NULL when called from Classic ASP
Posted by mattk NO[at]SPAM mattk.dj at 10/30/2003 5:14:28 AM
Hello, I am porting my existing ASP business logic into C#, compiling as an application, then using COM callable wrappers to instantiate the application under ASP. I am trying to use HttpContext.Current.Request.MapPath in my c# code, but when I call the code from ASP HttpContext.Current ret...more >>

Do threads behave Differently on Windows 98?
Posted by Codemonkey at 10/29/2003 4:46:41 PM
Hi, Sorry for the cross group post, but I couldn't find a group that deals with threading in .net. Anyway, I've noticed a difference in the way my program acts on Windows 98 than it does on WindowsXP and was wondering if anybody can explain this behaviour. My application runs in the back...more >>

Trouble passing interface as VT_DISPATCH
Posted by Greg Freeman at 10/29/2003 2:52:43 PM
I'm trying to pass a callback object from .NET to COM. I implement the callback functions in class MyCallback The COM object needs a Variant VT_DISPATCH type passed to identify the callback object. C++ code: MyCallback * cb = new MyCallback(layer); Object * dispatch=new System::Runtime::Int...more >>

Call user defined word vba function from C#
Posted by AP at 10/29/2003 2:43:01 PM
Hi, If I have created a word template that has a VBA function that I defined in it, is there anyway I can call this function from C#? Adam ...more >>

Marshaling Unsigned Types
Posted by Barry Simon at 10/29/2003 11:56:33 AM
Is there a way to marshal unsigned arrays between managed and unmanged code? Marshal.Copy does not seem to support this and I am unable to find anything else that does. - Thanks in advance ...more >>

Accessing .NET class instance from Word
Posted by AP at 10/29/2003 10:20:19 AM
Hi, My .NET application has a dll with a singleton class in it. In this singleton class I create and launch a word document. In this word document I would like to add a close event handler that will call back into the .NET singleton class. Is this possible? How would I get a handle on this si...more >>

MSXML interop possible?
Posted by Rick Walters at 10/29/2003 9:54:43 AM
Hello all, I'm trying to get a legacy ASP application to connect to the functionality I've created in a .NET component. The ASP app needs to pass an MSXML DOMDocument to one of the methods of the component, which should then manipulate it and pass it back. My first assumption (possibly inco...more >>

Problems deleting from the GAC
Posted by mattk NO[at]SPAM mattk.dj at 10/29/2003 7:02:44 AM
I have a number of different versions of the same assembly in the GAC that I cannot seem to remove. I got them in there by using: gacutil /i emailAuth.dll. I have tried to following methods to remove them: 1. gacutil /u emailAuth 2. gacutil /uf emailAuth - both generate the following mess...more >>

NullPointerException when calling C function in aspnet application
Posted by Christopher Sin at 10/29/2003 5:28:04 AM
Hi, I repost my message here, because I have had posted it on a wrong group. Hi, First, Please ignore my poor English speaking. I have to write a c# wrapper to a C library. This is OK, but I have difficulties with some functions that deals with double indirections. The C function is ...more >>


DevelopmentNow Blog