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 2007 > threads for march 22 - 28, 2007

Filter by week: 1 2 3 4 5

C# to C++ Dll with a pointer to string.
Posted by asnowfall NO[at]SPAM gmail.com at 3/28/2007 2:16:27 PM
I have a C++ DLL that accepts BSTR* and changes its value before returning. I am calling this API from C#. I get changed value in Object[] but not in actual variable. Please see my code snippet to understand. C++ DLL API:- void Fun(BSTR* data) ; C# wrapper:- [DllImport("Test.dll", EntryPo...more >>


Help with calling C# assembly from an unmanaged C++/MFC application
Posted by SJ at 3/26/2007 10:14:24 PM
Hi I have some existing unmanaged MFC/C++ application in VS2005 and VS2003. I need to modify these apps to call methods already implemented in an existing C# class library/assembly (retrofit some new functionality) and redeploy the application. From doing some reading on this I believe...more >>

Buffer Overrun when .net event fires to a c++ app
Posted by Chris Priest at 3/26/2007 12:00:00 AM
Hi, We are trying to implement COM inside our .NET c# application, that needs to be called from a C++ app. While we can get the properties and methods to work just fine, the C++ client has an issue with the events. The C++ client can see and register interest in the c# event just fine, ...more >>

DSO Framer event not firing: axFramerControl1_PreviewKeyDown
Posted by Brian at 3/25/2007 7:56:09 AM
Hi! We are using DSOFramer to host MS Word within our WinForm-based smart client app. Anywhere in our app, pressing F1 raises our context-sensitive help dialog. When our users are inside MS Word within our app and press F1, we bring up a Help dialog that explains what they should be typi...more >>

Problem with using created COM object with C#.NET 2005 under Excel2003 (Framework 2.0)
Posted by =?ISO-8859-2?B?UmFmYbMgR2llemdhs2E=?= at 3/23/2007 4:42:42 PM
This is part of my assembly: [assembly: ComVisible(true)] [assembly: ClassInterfaceAttribute(ClassInterfaceType.None)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("cd099def-f9fb-407f-b793-9db68f6b8a0b")] This is my code: u...more >>

How to marshal a variable length array in a callback function from unmanaged to managed code?
Posted by gernot at 3/23/2007 4:24:25 PM
Hi, I want to marshal the following C++ struct to a managed callback function: struct CALLBACK_DATA { LPBYTE pArray; // byte array UINT uArrayLen; // byte count }; The C++ function expects the following callback type: typedef BOOL (CALLBACK *CALLBACK_FUNC)(...more >>

Marshal.GetTypedObjectForIUnknown and reference counts
Posted by Steve at 3/23/2007 12:30:00 PM
Hello, Say I have an interface from IUnknown::QueryInterface that I want available in my .Net program. When QueryInterface returns, I am responsible for Release()ing it, but depending on whether GetTypedObjcetForIUnknown has already wrapped that object, it may or may not increase the refe...more >>

nothing published to COM after tlbexp
Posted by ptheate NO[at]SPAM gmail.com at 3/23/2007 9:08:13 AM
Hi, I try to create a COM Dll in C# 2005 Express that implement a COM interface (Wealth-Lab real time data adapter API). I succeeded in creating a dll for the Wealth-Lab COM interface to implement. Though, after tlbexp is run with following code, nothing is published in the tlb file (see it'...more >>



Can an RCW be shared in same directory by two .Net apps?
Posted by bobahop NO[at]SPAM gmail.com at 3/23/2007 5:51:32 AM
I have two small apps which are deployed to the same directory. They each reference IWshRunttimeLibrary (Windows Script Host Object Model.) The problem is that the Interop.IWshRuntimeLibrary.dll generated by one project errors when used by the compiled assembly from the other project. I compile ...more >>

Problem with deployment of C# COM Interop dll
Posted by DirkG at 3/23/2007 3:03:03 AM
I have a library written in C# that raises events that are consumed by a VB6 client. The library is registered on my development machine using the /tlb option on regasm.exe to allow me to create a reference in VB6, and the events raised are picked up by VB6. I've discovered through a long,...more >>

COM / CLR timeout error when debugging a project that hosts a WebBrowser
Posted by Jon Davis at 3/22/2007 5:30:58 PM
"The CLR has been unable to transition from COM context 0x1b78c0 to = COM context 0x1b7a30 for 60 seconds. The thread that owns the = destination context/apartment is most likely either doing a non pumping = wait or processing a very long running operation without pumping Windows = messages. T...more >>

AzMan PIA for .Net 2.0
Posted by Phil Sharp at 3/22/2007 8:36:38 AM
Hi I want to call Authorization Manager (AzMan) in my .Net 2.0 application. The PIA that is available in the Windows 2000 Authorization Manager Runtime is a .Net 1.0 assembly. Is there a new PIA for .Net 2.0? If not should I use the .Net 1.0 PIA or should I create my own interop assemb...more >>

Referencing COM DLL's from VS 2003 & 2005
Posted by Monty at 3/22/2007 12:00:00 AM
I have a legacy COM application that has PIA's for it's DLL's that are registered in the GAC. In VS 2003, I would add a reference to my project by browsing to the DLL file in the install directory of my legacy app, and it would automatically refer to the version in the GAC (this is good). In 2...more >>


DevelopmentNow Blog