I need to get a list of the RSS subscriptions from iTunes. I'm using the COM interface that Apple provides for controlling iTunes, and have tried this both on Windows and Mac. e.g.
tell application "iTunes"
repeat with a_track in tracks of playlist "Podcasts"
get artist of a_track
get album of a_track
get name of a_...
I am trying to use the Office COM components in order to create Word and Excel documents. Unfortunately I can not achieve this because I am getting an error.
Cannot find IDispatch for
'{00020906-0000-0000-C000-000000000046}'
in module
'{00020905-0000-0000-C000-000000000046}',
v8.3
I tried reinstalling Office, my applicatio...
Hi,
This question is a follow-up to the answer given by Marc Gravell to my question Create Out-Of-Process COM in C#/.Net ?. I have chosen his proposed solution, but now am running in a different issue.
Here is my situation:
I implemented a "DataProvider" COM component in C#
This component is hosted in a COM+
Server application so tha...
I have the code for various versions of a software product I work on on my machine. The product includes one or more assemblies that are registered for com interop. How can I determine which one is currently registered?
...
Without the following:
ATL
MFC
Question:
How to get the COM Server, to report back to the COM Client, once a particular event has terminated?
Regards
...
Without:
ATL
MFC
Note:
Client is executing in a different thread to that of the server
Question:
How do I control the behaviour of the client, once an event notification is received from the COM object (Server)?
How to implement an event interface from client?
Illustration below:
hresult = pis8->QueryInterface(
...
Without:
ATL
MFC
Note:
Plain C++
Out-of-process COM Object/server
Predefined TLB file
Question:
How to implement an outgoing interface, so the COM Object can notify the sink of events?
How to handle the event appropriately, once received?
Below is the event function I'd like to implement - from TLB file:
inline HRESULT IS8...
I have a predefined TLB file, with IS8SimulationEvents wrapper method implementations, for instance:
inline HRESULT IS8SimulationEvents::S8SimulationReset ( ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
return _result;
}
Using Oleview, I can see the IConnectionP...
I use Excel via COM automation (in c#), but it seems that the problem has no control over what version of excel is started on the box - we use both Excel 9 and Excel 11 and one specific set of spreadsheets requires excel 9 else they wont work.
I included the excel 9 com references but on another persons machine excel 11 started. How can...
It seems COM objects are general use objects which are governed by the OS. The objects follow a strict interface and allow you to query the objects to determine information. Is this what COM objects are?
...
Without:
MFC
ATL
using COM, with pure C++, steps taken thus far:
//steps above omitted
_ApplicationPtr application(__uuidof(Excel::Application));
//omitted
const BSTR wcharFileName = SysAllocString(L"...");
application->Workbooks->Open(wcharFileName);
application->put_Visible(10, true);
Question:
How to then copy a cell, fo...
Most of us are familiar with the "accordion-style" navigation bar on the left side of Outlook 2003. It has buttons like Calendar, Tasks, Mail, etc, and clicking on one of those buttons opens up a browser pane with the list of common folders in that section.
Using C++ or Delphi, I'd like to write a plugin that adds a new section to the ...
I have a set of libraries written in Delphi.NET (.NET 1.1) which I want to use in my Win32 (Delphi) application. For performance related issues, I've decided to follow the COM route.
Sometimes, after rebuilding the DLL, when I try to instantiate the objects exposed through COM the win32 application hangs at the CreateComObject call--h...
I've got a COM object that returns an IEnumUnknown. Is there anything out there that'll turn it into an STL-style iterator? So that I can do something like this:
IEnumUnkPtr pEnumUnk;
// ...something that fills in pEnumUnk...
MagicThing m(pEnumUnk);
std::for_each(m.begin(), m.end(), DoSomethingWithUnk);
...or similar?
...
I'm having a problem with an ATL Service that exports a COM object. It works running as a local service, but when running as a Windows Service, I can't connect. The service starts correctly and runs, but my client (code below) always fails with the error "Failed to start service".
So we're looking at the same thing, I've put together a ...
It's been ages since I've written a COM dll. I've made a couple of classes now, that inherit from some COM interfaces, but I want to test it out. I know I have to put a GUID somewhere and then register it with regsvr32, but what are the steps involved?
Edit: Sorry, forgot to mention I'm using C++.
...
I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as follows in the myapp.exe.manifest file which sits in the same folder as myapp.exe:
<?xml v...
I have a VB.NET web service that is calling a Interop COM object. When I make multiple calls to the web service at the same time, the web service processes fine until it gets to calling the first method of the COM object. At this point, it seems as though the calls to the COM object get put on a stack and they get processed on a FIFO b...
Note:
No MFC
No ATL
Using Visual C++
While attempting a connection between the connection point and the caller's sink, an E_NOTIMPL (0x80004001) was returned.
Illustrated below:
hresult = pConnection->Advise(
pSinkUnk,
&dwAdvise);
Question:
How did this occur?
Regards
...
Hello,
I have to admit the last time I programmed in Java was a data structures class in high school. So please be kind to this Java noob.
I have spent a good deal of time putting together a C# COM library at work. This library relies heavily on some new .Net technologies (WPF being the big one) so translating it into another languag...