com

Layered windows and COM drag image

Hi, I have a program that displays a main window, a layered window and implements COM drag and drop. In general terms: I create a normal top level window. I create a layered window using WS_EX_LAYERED and UpdateLayeredWindow/SetLayeredWindowAttributes (I've tried both). The layered window sits on top of the window created in 1. The la...

Is there any way to draw Webbrowser content to a specific DC?

These days, I tries to create a hiden WebBrowser control in my program, and Using the IViewObject interface draw to my custom DC. The result is fine, I got All the content I want, but the Draw speed is unacceptable, especially some complex web pages which contains Flash objects, Each Draw to DC cost more than 100 ms. So the flash object...

Use a COM object in .NET 2.0 CF without calling CreateObject

I need to use a COM object in my .NET 2.0 compact framework project, but I can't use the CreateObject function. Is there any other way to call a COM object that will work in my environment? ...

Is there a way to make iTunes automatically sync with Apple's device ?

I am finding a way if I can write a Win32 application to sync media files into iTunes library and then use this Win32 application to launch iTunes to sync the new library to the Apple device. Is there any COM or other libraries operate like that? ...

Project 2003 and .NET COM Primary Interop Assemblies

I am creating an app in C# using the .NET COM Primary Interop Assemblies. I was wondering if this will be able to open and read files from both Project 2003 and Project 2007. Also, does Project have to be installe don the computer that is running this app? ...

How to kill the focus of Microsoft Word™ document window?

Hi, I'm developing a Word addin in Delphi, on a task pane I put a Virtual treeview, in the OnFocus event of the Virtual Treeview I call Word to insert a file into the current Word document via method ActiveDocument.Range.InsertFile, but this operation will put the input focus back to the Word document window, so finally in this event h...

Online material or book for COM programming

Hi, I want some good book/**online material** to learn COM programming with C++ from the basics. I do not have prior knowledge about COM but have good knowledge about c++. So some book that will teach me from hello world programming in COM will be helpful. Thanks in advance. ...

IGraphBuilder::RenderFile() failing with VFW_E_BAD_KEY - 0x800403f2

Continuing investigation on a embedded WindowsMediaPlayer problem, i am trying to do simple file playback via a DirectShow in-process server: ::CoInitializeEx(0, COINIT_MULTITHREADED); CComPtr<IGraphBuilder> spGraph; spGraph.CoCreateInstance(CLSID_FilterGraph, 0, CLSCTX_INPROC_SERVER); CComQIPtr<IMediaControl> spMediaControl(spGraph); ...

OutlookExpress IStoreNamespace GetFirstSubFolder method fails on WinXP x64

HRESULT error code - MSOEAPI_E_INVALID_STRUCT_SIZE Works fine on WinXP x32. ...

How to cast Variant to TADOConnection.ConnectionObject?

Hi guys. I've received a native COM ADOConnection which is stored in Variant. I would like to pass interface of this connection to the VCL wrapper TADOConnection. The problem is that either I am getting invalid typecast compiler message or acces violation. For example: procedure AssignNativeConnection(VCLConnection: TADOConnection; va...

COM object Enum with QT

I am unable to read the answer for this from the QT manual so hopefully someone here can help me. There is a COM event described like this : Event OnlineStatus(pUser As IUser, ByVal Status As TOnlineStatus) where TOnlineStatus is Enum with members like "Constant olsAway = 2". How do I connect a slot to that event if I am using the ...

# of marshalling Performance Counter

I am trying to determine if the COM interop is becoming a bottle neck in my software. This article on MSDN helps http://msdn.microsoft.com/en-us/library/ms998579.aspx#scalenetchapt15%5Ftopic11. But I really do not have have a point of reference for a "normal" or "high" value for # of marshalling to determine if it is impacting performanc...

ATL, COM, Arrays

Hello! There is the function GetLinksFromPage. She have created a links array, then I wanna pass that array to COM-object (only URLs), thus I have to convert CAtlArray< CComPtr< IDispatch> > to CComSafeArray< BSTR>. How I can do it ? HRESULT myclass::GetLinksFromPage( const CComPtr<IHTMLDocument2>& pDoc, CAtlArray<CComPtr<IDispatch> > &...

Implement Overlay Icon ?

I read this article in http://www.codeproject.com/KB/shell/overlayicon.aspx. I have some questions that I cannot answer. Please help me? When I build the project to COM dll. When I use other program to call this dll. Which method could I will call to display overlay icon on the selected file? I think I will call GetOverlayInfo() first...

Iterating over Word Document Fields using ComAutomationFactory in Silverlight 4

Update: This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved this issue by switching to a full blown WPF application and using regular old Microsoft.Office.Interop.Word. But I'm still very interested in how to get this to work using the dynamic val...

why "Error : IActiveDesktop undeclared indentifier" occurs even after incluing the specifed file ?

I am using IActiveDesktop interface to change wallpaper . I have included files "shlobj.h" , "shlguid.h" for that in my MFC project. But still i am getting error : "undeclared identifier IActiveDesktop" . Can anybody tell me how to resolve it ? ...

Managed COM aggregation

It is my understanding building a COM object aggregating an existing COM object implies implementing redirection logic in the IUnknown.QueryInterface method of the outer object. The question I have is how to do that if the object you are building is managed. On managed objects IUnknown is not explicitly implemented COM Interop does it f...

registering python com server

Hi all, I have a problem when registering a Python com server, I got a message box that says : Invalid command line argument. This programs provides LocalServer com support for Python COM objects. It is typically run automatically by COM, passing passing as arguments The ProgID or CLSID of the Python server(s) to be ho...

Exposing a .NET class (which has events) to COM.

I want to expose a .NET class to COM. That's fairly easy: I create an interface in where I define the members of that class that should be ComVisible I define the DispId's of those members myself I define that the interface should be ComVisible I assign a Guid to that interface I create a class which implements that interface No big ...

Is there a COM accessible library to allow URL Encoding?

Using VB6. It's not hard to roll your own, but I wondered if was a prebuilt one out there? ...