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
all groups > dotnet interop > august 2007

Filter by week: 1 2 3 4 5

How to overwrite the interop in GAC
Posted by Amit Khanna at 8/29/2007 5:54:23 PM
Can anybody tell me how to owerwrite an interop in GAC ? Thanks, Amit ...more >>


ActiveX and Microsoft.Office.Interop.Word
Posted by John G at 8/28/2007 8:44:58 AM
I created an activeX control that does a mailmerge. When I run the page I get the following error message. I have created very simple activeX controls before. What do i have to do to be able to execute this control with the "Microsoft.Office.Interop.Word" thanks in advance System.Securit...more >>

C# - C++ DLL performance woes
Posted by Charles Jenkins at 8/28/2007 6:35:08 AM
I have a C# application that calls a lower-level C++ dll to do serial communication. (Using C++ for serial I/O is not necessary, but I was asked to do this.) Calls from C# to C++ functions generally look like this: [DllImport( DLL_NAME, EntryPoint = "SetMultiplier" )] private static exter...more >>

Problem: Adding menuitems dynamically
Posted by Mo at 8/27/2007 5:46:21 PM
Hi all, I'm trying to create an office menu dynamically by creating an add-in in vb.net. The add-in is supposed to create the menu at start up in i.e. Microsoft Word. Each menu item should have an event tied to it. But, the menu doesn't have a fixed number of items. It varies over time - each...more >>

.NET & ActiveX Exe's
Posted by Jimmy Hoffa at 8/27/2007 4:37:41 PM
Hi All, Hoping someone can help me with my COM/.NET interop problems... My situation is that I write code using an old WIN16 based Application which as far as COM is concerned can only operate with Active X In-Process servers. Therefore whenever I need to write a new bit of functionality ...more >>

Retrieving a member's SizeConst value
Posted by MLM450 NO[at]SPAM hotmail.com at 8/27/2007 7:22:22 AM
Is it possible to retrieve an item's "sizeconst" value dynamically? I have the following member defined in a class: [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)] private char[] units; I want the code that values the units member to know the value of SizeConst. I know I can define the...more >>

VB6 doesn't release events in .NET component
Posted by Sascha Fueller at 8/27/2007 12:00:00 AM
Hello, I have a class in C# with events, which is exposed as a COM-object. When I have a VB6 Client that is using this class, I see that eventhandlers are not removed, when VB releases the com object. I'm using VS2005, but it seems that the behaviour is the same with VS2003 Is there some...more >>

COM Object Class Library Threading model
Posted by Davinci_Jeremie at 8/23/2007 8:04:04 AM
Hi I have written an object in C# and exposed it as a COM object. This object is used in a native application and that application creates one or more threads that creates and uses its own copy of my C# COM object. My C# COM object has reduced my performance of my native application bec...more >>



How to unload an assembly from OCX?
Posted by Jim at 8/20/2007 12:57:06 PM
I have an OCX which interop a C# assembly. C# assembly needs to callback OCX in a method by parameter pointing to this OCX. It works in the first time load. If I reload OCX, OnInitDialog() won't be called and app is hanged on. If I don't pass this OCX as parameter to the assembly, second time relo...more >>

Newbie to COM Interop
Posted by Chris Davoli at 8/20/2007 12:46:00 PM
I'm trying to just learn how to call a COM component from a .Net application. I am using visual studio 2005. Is there some sort of step by step tutorial or book or something that somone can suggest. I'm real confused on how to do this and just googleing does not get me a real good clear answer...more >>

c# x64 COM Add References Problem
Posted by Pablo Sullivan at 8/20/2007 6:56:02 AM
I have a problem building a c# project that references a COM object built for x64. The problem is that the x64 DLL is missing under the "Add References" COM tab for the C# project. Also when I attempt to add a reference via the BROWSE tab, an error message is displayed saying “Please make ...more >>

Unmanaged Code to CCW/C# problem
Posted by GlennAnthonyB at 8/18/2007 1:18:43 PM
Hi I have a C# DLL which has a method which accepts a string argument. This is registered for COM. The resulting .tlb is then referenced in a native C++ DLL. I then wrap the method in a C++ method and add some trace code. The wrapped C# method also includes some trace code. When I atte...more >>

Com and .Net Interoperability problem
Posted by Sundar at 8/17/2007 4:48:20 AM
Hi I faced this Interoperability problem if any one have answers let me know about it. I developed the COM interface in VC++ as follows : interface IModuleConfig { HRESULT SetValue(GUID guid, VARIANT* var); } class CModuleConfig : public IModuleConfig { }; HRESULT CModule...more >>

What is DispId used for?
Posted by Lidström at 8/16/2007 8:22:33 PM
Hello! I've read on MSDN [1] that it is necessary to mark methods and properties with DispId in order to expose them to COM. But that doesn't seem necessary. I've created interfaces and subclasses in C# and I have no problem using them from C++. So what is DispId really used for? [1] Exampl...more >>

Office XP PIAs
Posted by TC at 8/15/2007 8:22:07 PM
Hey All, I downloaded and installed the Office XP PIAs but when I reference them from within VS2005, I get a yellow explanation point with no information beside the reference. Any ideas? Thanks, TC ...more >>

Cannot call simple WinApi function
Posted by Carl at 8/15/2007 1:50:55 PM
Hi, I've got stuck on calling the following WinApi function. I've tried lots of different datatypes and read alot about which to use in the documentations, but everything fails. Does anyone know how to do it? The Call: StringBuilder sb = new StringBuilder(255); IntPtr handle = new IntP...more >>

Link errors 2028 and 2019 when compiling with CLR
Posted by David Wright at 8/15/2007 12:00:00 AM
Can anyone help me? With the CLR switch off my projects compile and link fine but with it on some classes defined in one dll are not linkable to another dll? I have project dependencies set as well between the projects. Is there something more to do? It is as though the classes are not bein...more >>

using a modeless WinForms "application" from MFC
Posted by Dan Smith at 8/14/2007 7:26:32 PM
I'm in the process of adding a bunch of new .NET functionality to a (poorly behaved) legacy MFC application. One of the things I'm adding is a "source code editor" (ala VBA): the window should minimize/restore separately from the main application, have its own menu/toolbar, etc. The first ...more >>

IPersistStreamInit
Posted by DouglasWoods at 8/13/2007 9:12:03 PM
I am accessing a COM object from C#. The COM object has a IPersistStreamInit interface which I want to use. Is the IPersistStreamInit defined in the .NET Framework? I couldn't find it in system.runtime.interopservices. I have searched and found C# code that has code like Interop.IPersi...more >>

Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)
Posted by Ivo Nikolov at 8/13/2007 3:33:41 PM
Hi All I write on C# This Code work fine, but un Windows Vista I get an Error Exception from = HRESULT: 0x80010105 (RPC_E_SERVERFAULT) =20 --------program fragment = ------------------------------------------------------- System.Threading.Thread.CurrentThread.CurrentCulture =3D = System.Glo...more >>

Interop & role-based security
Posted by carl_bevil NO[at]SPAM yahoo.com at 8/13/2007 9:32:03 AM
I've written a serviced component in C# that interacts with some COM components (in a separate process). All components are run on the same machine (currently under the Administrator account). I've enabled role-based security on the serviced component (at the component level) through attribute...more >>

False positive on interop_shell32.dll generated by VS2005?
Posted by Jason Schultz at 8/12/2007 11:40:00 PM
Hi all, A customer reported that their Antivirus software (Rising Antivirus 2007) detected a virus in our product, specifically the "Backdoor.Agent.hyn" trojan in the interop.shell32.dll file generated by Visual Studio 2005 on our behalf. Running this file through http://www.virustotal.com...more >>

Interop from a timer event
Posted by Chris Yager at 8/11/2007 1:52:14 PM
I have a service that accesses a VB6 COM component on a timer event. On 64-bit windows (running in 32-bit "mode") the process fails if it is run in a secondary thread but works fine when run on the main thread. This behavior cannot be re-produced in 32-bit environment. Any help would be g...more >>

Outlook security warning - A program is trying to access outlook
Posted by Dilum at 8/9/2007 8:46:05 PM
Our application converts various text document formats to text files. Users can use the application to select a supported file (doc, pdf, msg etc.) to generate a text file (.txt) . But there is an issue with converting Outlook message files (.msg) to text files. When trying to read the...more >>

COM+ and WndProc in .Net
Posted by igalvelis NO[at]SPAM gmail.com at 8/9/2007 8:16:12 AM
Hello, I have a COM+ component which i am trying to use from a .Net application. I have a requirement to make it hang-safe, so that if any function in COM+ would hang, the application itself would be able to recover. Of course the correct approach would be to eliminate all hangs in COM+ comp...more >>

Accessing enumerators in C# DLL from VB6
Posted by kalich at 8/8/2007 9:22:03 AM
Hello. I have a problem. I have to access enumerators of the enum that is located in DLL written in C#. Currently I can do that from VB6 only by using underscore, like EnumName_enumeratorOne... but I need to do that the way it was done before (before I translated that DLL from VB6 to C# tha...more >>

.NET interface not appearing in COM+ app... help?
Posted by carl_bevil NO[at]SPAM yahoo.com at 8/7/2007 11:10:11 AM
Hi all. I have a .NET component that implements several interfaces and derives from ServicedComponent. It has a fixed GUID and ProgID. Everything was working great, and then I implemented a new interface, IConnectionPointContainer, with this component. Now when I register it using regsvcs, I ...more >>

E_NOTIMPL in GetData method when querying objectSID from Directory Object Picker
Posted by Beat Bucheli at 8/7/2007 12:00:00 AM
Hi, I'm trying to get the objectSID from the active directory objects selected in the directory object picker dialog. But IDataObject.GetData() returns always 0x80004001 (E_NOTIMPL) when I supply the attribute 'objectSID' in DSOP_INIT_INFO. Without this attribute (cAttributesToFetch=0), the...more >>

Enums and Import of Type Library
Posted by Adnan at 8/6/2007 8:52:00 AM
I have written a COM interop DLL in VB.NET for .NET 2.0.50727. In it, I have defined one of the enums as follows: Public Enum side : uint All = &HFFFFFFFF Left = &H0 Right = &H1 Count = &H2 Both = &H3 Neutral = &H4 Undef = &HEEEEEEEE ...more >>

Howto return a specific HRESULT value from an interop assembly?
Posted by little wizzard at 8/2/2007 1:56:00 AM
Hello, I have created an interop assembly in C#. But I couldn't find any way to return an specific HRESULT value, e.g. E_NOTIMPL, for a com visible interface method which I haven't impemented. Which ways have I to do this? Thanks for your time and any suggestions. Best regards Detlev ...more >>

Exposing a c++ enum in a managed c++ assembly
Posted by Dean Mitchell at 8/2/2007 12:00:00 AM
Hi everyone, We have a c++ server application that we are writing a GUI client application for. To save our time and to avoid duplicating all the code and functionality that already exists in c++ classes I am building a managed c++ assembly around these classes so that a c# program can use...more >>


DevelopmentNow Blog