Contents

Posts in microsoft.public.dotnet.framework.interop

 

DirectorySearcher not Returning Global Groups?  Replies (2) 11 January 2006
The following code will give a collection of all local groups. What do I have to do to catch global groups as well? Domain is native Win 2003. DirectorySearcher srch = new DirectorySearcher( "roo...

 

Interop.Excel open file problem  Replies (1) 11 January 2006
Hi everyone, I'm having a problem automating Excel XP using the Office XP Primary Interop Assemblies. In my code I successfully instantiate an Excel Application class, and I can add a new wor...

 

Manually Host CLR  Replies (1) 10 January 2006
I need my unmanaged app to work with managed controls, but I can not use the /clr option. I have read that the Common Language Runtime can be "hosted manually" which eliminates the need to turn on t...

 

Generating Interop RCWs for Word  Replies (2) 10 January 2006
Hi, I noticed that when I generate RCW DLLs from MSWORD9.OLB that I get two DLLs: Word.dll and Office.dll, which is fine, but I was just musing on this and wondering to myself where the typelib i...

 

MSHTML IHTMLElementRender.DrawToDC() question  Replies (1) 10 January 2006
I'm using the mshtml's IHTMLElementRender interface to render webpages into thumbnail images, however I've noted some odd behaviour about the DrawToDC() function. It does not seem to render gradient...

 

.NET-BroadcastEventWindow.1.0.5000.0.2f: EXCEL.EXE ...  Replies (1) 10 January 2006
My Windows 2000 system suddenly started giving this error message whenever I log in. I do not launch Excel before getting this error: .NET-BroadcastEventWindow.1.0.5000.0.2f: EXCEL.EXE - Applicat...

 

Disposing Com+ Object  Replies (1) 9 January 2006
Hey, I have a C++ application that calls a C# Com+ object. Everything works great, but I cant seem to dispose the object from the Com+! I tried the following code (which works for a C++ Com+ objec...

 

Invalid Type Cast Problem  Replies (1) 9 January 2006
Hi all I developed a Visio AddIn in C# through Visual Studio.NET. This .NET component access my other .NET assemblies for example logger assembly. I also made a ClassLoader class ( that is ...

 

Using ToAscii inside keyboard hook modifies the ke ...  Replies (1) 9 January 2006
Hi, I'm using the ToAscii function inside a keyboard hook proc to determine which character the user pressed. Unfortunately, when the user presses "dead keys" to write characters such as "ê" (e...

 

CLR 2.0 only: NullReferenceException when calling ...  Replies (1) 9 January 2006
I've got a legacy MFC component that exposes a function that (amongst other parameters) returns an array of strings. The interop is fine under CLR v1.1, but the same (or recompiled) binaries throw a...

 

Please Help API/DLL  Replies (1) 7 January 2006
Hi, I need count the frames of a AVI media file - the length. I made the code bellow and it works well in VB.6 but not in VB.NET Why does not work in DOT.NET ? I tried to change TYPE to STRUC...

 

how to set font properties  Replies (1) 6 January 2006
Hi, I am using the office 2003 PIAs and wondering what value to use to specify font settings like bold, hidden etc. in the "office 2003 visual basic reference" these properties are described ...

 

GetDelegateForFunctionPointer question  Replies (1) 6 January 2006
Hi, I am wondering if it is possible to use Marshal.GetDelegateForFunctionPointer and receive .NET events in unmanaged code. Basically, the idea is to create unmanaged DLLs and export functions...

 

Reading MarshalAs Attribute?  Replies (1) 6 January 2006
I have a simple enough struct.. [StructLayout(LayoutKind.Sequential)] public struct InstallationGeneral_Lock { public int Case_name; public int Run_year; public int Inst_name; public int Inst_l...

 

How do I Delete an Excel Sheet/Chart ?  Replies (1) 6 January 2006
Hi, I'm trying to create an excel Report from .Net. I'm new to this and have started with trying to delete a sheet - which doesn't work. :( What I actually need to do is delete a Chart in ...

 

UserControl hosted in IE ArgumentException  Replies (1) 6 January 2006
Please some kind Interop guru help! I have a .NET UserControl which exists as a COM object in an HTML page hosted by the MFC CHtmlView. Usually the page loads fine, but under certain circumsta...

 

Building a COM local server entirely in .NET manag ...  Replies (1) 6 January 2006
Hello Fellow Developers, I personally have not found any standard, .NET-approved and sanctioned way to treat a .NET EXE Assembly as a COM out-of-proc server which runs as a separate process and...

 

newbie to Office Automation in Windows Server 2003  Replies (1) 6 January 2006
Dear All, I plan to build a web application that can generate documents on Words and Excel format. If I need to program using object Excel Application/Word.Application, do I need to install Of...

 

How to handle a crashed ActiveX server?  Replies (1) 5 January 2006
Hi! I've lately been working with a .NET application, interfacing an ActiveX server (Adobe InDesign), through Interop. On some occasions, InDesign has crashed, causing all kinds of problems. Th...

 

Help with C# events in native C++ COM  Replies (1) 5 January 2006
I’m developing script system for a game engine based on C#. Scripts are written in C# and compiled at run time by a C# class library. The native C++ game code accesses the script compiler class ...

 

tlbexp in 2.0 requires ComVisible?  Replies (1) 5 January 2006
I am having a really weird problem in framework 2.0: when I run tlbexp on my assembly, I am getting an empty type library unless I explicitly mark all my classes as ComVisible. This is competely d...

 

Shared Add-in  Replies (1) 5 January 2006
Hello, I need to develop an Office Add-in. However, without even adding any code to the add-in, the add-in will slow the startup time of Microsoft Word 2003 by about 20 seconds. For example...

 

netst struct array in .net  Replies (1) 5 January 2006
I am having this problem in a managed c++ DLL which mixes managed and unmanaged C/C++ code. I tried to assign value to a struct array nested in another struct. but I can only write to the first el...

 

Invalid Cast exception on COM interop in Windows S ...  Replies (1) 5 January 2006
I've got a peice of code that creates a COM object and attempts to use it. It works fine when it is run as an application. However, it throws an "invalid cast" exception when it is run in a Windows ...

 

Exception on Excel.Workbook.SaveCopyAs()  Replies (1) 5 January 2006
I am trying to save an opened Excel Workbook to a directory. My program calls to Excel.Workbook.SaveCopyAs() failed as the code like "myWorkbook.SaveCopyAs(filename);". I got "Exception from HResu...

 

Kernel32 exception when rendering UserControl in I ...  Replies (1) 5 January 2006
I have a .NET User control hosted as a COM object in an HTML page using IE. We use a normal ActiveX style object tag declaration for this control. This all takes place within an MFC application ...

 

Reading outlook contacts through ASP.Net webpage.  Replies (1) 5 January 2006
Hi, I am trying to create a webpage that when user go into it (suppose it is windows authentication mode so I have user's NetworkID), it will get contact list of user from outlook 2003 and show...