com

Surely there is a way to obtain the full View pulldown for the current folder view?!

Motivation: Creating our own file dialog that looks & acts much like the std common dialog Problem: How to obtain the view pull-down for the current folder/shell container Apparent Dead Ends: Query the IShellFolder for its IContextMenu < NULL interface pointer. Query the IShellView for its IContextMenu < NULL interface pointer. IShel...

Is there any alternate way to supply similar functions as COM does?

Window's COM allow us to wrap our application function for out-of-process invocation. If the COM interfaces are well defined and design, it is certainly great to consume the services via scripts and any programming platform that support COM/Automation/Active-X. I am just wondering if there exist any alternate methods to design of what ...

remote and dynamic proxy

i understand that ,once, developing remote proxy included generating stub/skeleton , though today this is no longer needed thanks to reflection. (dynamic proxy) i want to get a clear explanation as to why and how reflection replaces this need. for example i understood the stub was suppose to handle the communication over the network (...

Signed assembly dependency that references a COM DLL must have the dependency's generated interop assembly referenced

Sorry about the terrible title. I have a signed assembly 'Signed.dll' that is a dependency of another assembly, say Executable.exe. Signed.dll references a COM DLL and publically exposes one of this COM DLL's types: 'ComPublicT.' Executable.exe must reference the automatically generated Interop.COM.dll from the Signed project, rather ...

Generate diagnostic message for HRESULT codes?

I'd like to be able to do the equivalent of FormatMessage - generate a text message for debug and even runtime builds that can report some of the common HRESULTs, or even spit out things like what the severity is, what facility it was, and possibly a description of the error code. I found this simple function, but its too simple, and mo...

How can I get VS 2008 to use Interop.DTS in place of old COM DTS?

I have a VS 2008 project that is using DTS. The project is in source control, and I don't want to check out and modify the project references for fear of stubbing the toes of other developers for whom things are just fine. For me, right now Visual Studio can't locate the DTS reference used by the project. I have SQL Server 2008 instal...

why I'm not able to debug in VSTO Addin?

If I select an extensibility addin of Excel, I'm able to debug my Add-In in Debug Mode with Excel, like _application.ActiveWorkbook.ActiveSheet.Count in Immediate window, but now I've moved to VSTO Excel 2003 Add-in, here I've goto following message while debugging, Cannot obtain fields or call methods on the instance of type ...

.NET COM Library is not unloaded from C++ host process.

Hi all. We have a plugin system here, written in c++. Now that this has to have an ability to upgrade plugins(which are COM) we need to unload the plugin, install the plugin and then load it again. Now the problem is that this has to happen without closing an app. c++ COM dlls get unloaded pretty good but .NET ones not. Here's the sample...

reasons for choosing com

hey, i was wondering why one would choose Com as his software development "technology" my first though is machine/programming _language independence what's yours ? ...

Interop assembly pointer length

Why does Visual Studio sometimes turn SAME pointer parameters in COM libraries into uint and sometimes to ulong? I have a COM library that has some methods with parameters such as [ in ] ULONG_PTR ParentWindow When I reference this library on my desktop computer, the interop assembly turns the ULONG_PTR into uint. When I do the same o...

Problem in accessing members of class in C# DLL from C++ project

I have added a C# DLL into a C++ project as mentioned at MS support, however I was not able to access its variables and methods inside the class. It also says that it's a struct and not a class, I don't know if it is important but I thought I should mention it is as well. Whenever I write . or -> or :: after the object, nothing appear. B...

Any way to determine when Excel background printing has finished?

I'm using COM in LotusScript (Lotus Notes) to make Excel print several sheets in one workbook to PDFCreator, then make PDFCreator combine then into one PDF. The problem is that calling Excel's PrintOut method immediately followed by PDFCreator's cCombineAll method results in one or more sheets being omitted from the PDF. It seems like Ex...

Can an assembly be executed or loaded within C#.NET COM component?

I have a COM(written in .NET) which needs to create a an AppDomain and load/execute .NET assemblies in it. So that I could unload that appDomain later along with all loaded dll's. While working OK in normal(e.g. WinForms) .NET app, I get security exceptions if this code runs from within COM context. Assuming that the COM assembly is stro...

Component Object Model via C++(maybe VS)

Hello, I was searching through google about Microsoft Component Object Model. Found only few normal articles and only 1 step by step example, which doesn't work. Is there any links/references/books/tutorials you know how to build simple COM component via VS C++? Any answer or help would be appreciated! ...

Can't access the COM interface

Hi all. I am working with the scantest of application documentation (shocker), and what there is seems to be misleading/contradicting. I will ask the software company as well, but their last reply took weeks. In the meantime....(thanks)..... I am trying to access the [alledged] COM interface of a GUI application we'll call: Xyz My Ques...

C# Outlook - User exits

We are writing a contact syncing application for Outlook using .Net 3.0. We're using "Microsoft Outlook 12.0 Object Library" or Microsoft.Office.Interop.Outlook; We notice when we call: ApplicationClass app = new Microsoft.Office.Interop.Outlook.ApplicationClass(); It will start Outlook if the user does not have it open. But if the...

C# exposing class to COM - Generic Collections

We have a small framework written in C# .Net 2.0 that we want to expose to COM. Problem is, we have some generic classes that would be exposed as the following: interface IOurClass { ReadonlyCollection<IOurListObject> OurCollection { get; } } interface IOurListObject { //Some properties that don't matter } What is the be...

C# exposing to COM - interface inheritance

Say I have a class BaseClass that implements IBaseClass Then I have an interface IClass that inherits IBaseClass. Then I have a class named class that implements IClass. For example: [ComVisible(true), InterfaceType(ComInterfaceType.IsDual), Guid("XXXXXXX")] public interface IBaseClass { [PreserveSig] string GetA() } [ComVisible...

Do I need to register the COM dll to be able to reference it on the .NET project?

I'm trying to reference a COM dll in visual studio by using the Browse tab and selecting the DLL. I noticed that if the DLL is registered on the system with regsvr32 I can reference it, but if it's not registered I receive an error selecting the dll file "A reference to 'file.DLL' could not be added. Please make sure that the file is acc...

COM Interop in .NET

I have a C# Visual Studio 2008 project and I want use a COM interop XXXXLib (XXXX.dll). Of course I have to add reference to %windir%\system32\xxxx.dll before, and VS will add Interop.xxxx.dll to the project folder, and now I have to distribute this 200 KB library with my simple 4 KB application. But, now I know that PCs don't have XXX...