info on RSS api

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is there a better newsgroup to ask questions about the RSS api?

if so, please direct me because i cant find anything more specific than this.

My question:
How do the events work thought COM interop? I'm trying to 'GetWatcher' on a
Feed and I cannot cast this (object) to anything usefull without an exception.

Any help would be great. Thanks.
 
My question:
How do the events work thought COM interop? I'm trying to 'GetWatcher' on a
Feed and I cannot cast this (object) to anything usefull without an exception.

For COM interop, your best bet is the microsoft.public.dotnet.interop
group. However, the big question is are you trying to expose a .NET
event to COM, or trying to consume a COM event from inside .NET?
 
im trying to consume a com event from .net.

Patrick Steele said:
For COM interop, your best bet is the microsoft.public.dotnet.interop
group. However, the big question is are you trying to expose a .NET
event to COM, or trying to consume a COM event from inside .NET?
 
im trying to consume a com event from .net.

Is this in VB.NET or C#? In VB.NET, you should be able to declare the
object that sources events as a "WithEvents" variable. Or you could use
the AddHandler/RemoveHandler keywords.

In C#, you should be able to add a handler just like any other C# event
-- use the += syntax along with creating a new delegate with a method of
a matching signature.

Do you have some sample code that could show the problem? What COM
object are you trying to use? Is it a custom COM object you developed
or is it something public?
 
Yes, I understand how to add events, but I'm having a problem with the RSS
api while trying to get the class that exposes the event. If I call (C#):

_folder.GetWatcher(...);

it returns a __ComObject that can't be cast to anything I would expect (like
the FeedFolderWatcherClass). In the debugger it also doesn't show any
events/properties on the __ComObject.

So, specifically, I'm wondering how to deal with feed/folder events for the
RSS platform using ComInterop and C#. An example of working code doing this
would be a great addition to msdn docs, for example.
 
Yes, I understand how to add events, but I'm having a problem with the RSS
api while trying to get the class that exposes the event. If I call (C#):

_folder.GetWatcher(...);

it returns a __ComObject that can't be cast to anything I would expect (like
the FeedFolderWatcherClass). In the debugger it also doesn't show any
events/properties on the __ComObject.

So, specifically, I'm wondering how to deal with feed/folder events for the
RSS platform using ComInterop and C#. An example of working code doing this
would be a great addition to msdn docs, for example.

Ok. After doing some research it appears you're using some new API
released by Microsoft for RSS feeds. You didn't originally say which
RSS API you were using so I didn't have enough details.

From looking at the MSDN documentation, it's difficult to tell what that
method is returning. Do you have VB6 installed? If so, add a reference
to the API and see what the VB6 object browser says it returns (I don't
have VB6 installed on my current machine right now).
 
Back
Top