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 > august 2006 > threads for august 8 - 14, 2006

Filter by week: 1 2 3 4 5

Calling managed code from unmanaged code not using COM?
Posted by Bjarnek at 8/14/2006 3:55:33 AM
Hi I have a program not written in .net (Clarion), and I want to call functions written .net (C#) from this program. I know that I can use COM technology to do that. But I want to know if there is another way to do this with out using COM? bjarne ...more >>


Oulook Addin in C# / VS2003 Crashes before Getting to IDTExtensibility2 interface
Posted by TCook at 8/12/2006 11:32:39 AM
Hey All, I have a C# / VS2003 Outlook Addin that used to run fine. I now have both the 1.1 and 2.0 Frameworks installed on my machine. In a file located in the Outlook.exe folder, I have a file named "Outlook.exe.config" with the following in it: <configuration> <startup> <s...more >>

Help! ... VS2005 Error with Outlook AddIn when Using Redemption
Posted by TCook at 8/12/2006 9:49:25 AM
Hey All, I am trying to use the Redemption library within a VS2005 Outlook addin solution. I have used the same approach within VS2003 without incident. When trying to create a SafeMailItem object, I receive the following error message: "Retrieving the COM class factory for component wi...more >>

Lifetime of object created in C# used in unmanaged C++
Posted by stevil1234 NO[at]SPAM comcast.net at 8/11/2006 1:49:33 PM
Hoping someone can answer the questions in the comments below. I'm wondering how lifetime and ownership is typically handled between an unmanged C++ exe that uses a set of COM classes created from a C# assembly. // unmanaged C++ exe #import <mscorlib.tlb> rename("ReportEvent", "Report_Even...more >>

Getting a date from a cell ( C# )
Posted by Shea Martin at 8/11/2006 12:05:22 PM
I am reading data in from an XLS file use Excel interop. I currently get cell data like this: lRange = lSheet.get_Range( lTopLeftCellName, lBotRightCellName ); Object[,] lValues = (Object[,])lRange.Value2; The problem is that columns which contain dates (formatted as m/d/y) come across ...more >>

Returning COM Interface from Unmanaged DLL Function via PInvoke
Posted by jorfei at 8/11/2006 2:54:02 AM
What is the marshaling behavior for a COM interface returned with an output parameter from a function in an unmanaged DLL called via the Platform Invoke? An example of this is the function HRESULT CoGetMalloc(DWORD dwMemContext, LPMALLOC * ppMalloc); or its declaration in C# [System.Run...more >>

Using PInvoke to import unmanaged C++ class library to C# app
Posted by Hank at 8/10/2006 3:59:04 PM
Hi expert, I am writing a C# app which will access a 3rd party unmanaged C++ class library. the library contains one class with constructor, destructor and many methods. I search through the web find people talking about DllImport C type function, that's easy, you just do following: [DllImpo...more >>

vb6 nt service dot net interop error 429
Posted by stevenb at 8/10/2006 9:20:59 AM
Greetings... I currently have a vb6 application running as an NT service. I am referencing a dot net dll and all works fine if I run the vb6 application as a normal executable. As soon as I try to run it as a service, I get runtime error 429 activex component cannot create object. The me...more >>



structure size calculation problem
Posted by ps at 8/10/2006 7:36:02 AM
Hi all, I'm trying to make a pinvoke call to a legacy c dll. One method has a structure as input. The managed structure looks like this: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct Info { public Version cryptokiVersion; [MarshalAs(UnmanagedType.ByValTStr, S...more >>

AccessViolationException openning Excel WorkBook
Posted by hSiplu at 8/9/2006 1:41:18 AM
hi, can anyone tell me why the folowing statement throws an AccessViolationException ? my developing pc is WinXP Pro with MSOffice2003 and the release version runs on Windows 2000 Pro with Office2000 while my client can't change his configuration. The Debug version does not throw the except...more >>

COM Surrogate error
Posted by Sean at 8/8/2006 5:19:28 PM
HI, We have a WinForms App written in C#. It's all 100% manged code. This app monitor 4 Windows services that uses MSMQ to get and send messages from another WinForms App. One of the services interact with a CD printer API; Another is dowloading files from a server using HTTP; and another is...more >>

tlbimp problem
Posted by Gareth Lambert at 8/8/2006 3:32:42 AM
Hi, First of all, I am new to VB.net and programming in general. So my apologies if I don't explain myself clearly. I am trying to use a DLL within my code. It is not activeX so I can't add it as a reference. I believe that I must run it through tlbimp.exe and then declare it from my code. Wh...more >>

Server fails (80080005) when running client in debug mode
Posted by Anders Eriksson at 8/8/2006 12:00:00 AM
Hello! I have an COM Server which I Automate using a C# client. When I run the client in Release mode then it starts but if I switch to Debug then the server will not start and I get this error: "Retrieving the COM class factory for component with CLSID {DE821291-EB26-11D5-B6A6-0048545CA8...more >>


DevelopmentNow Blog