Mp3car Home Page The mp3Car.com Forums The mp3Car.com Store The mp3Car.com Blog About mp3Car.com    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Notices

Reply
 
Share Thread Tools Display Modes
Old 02-07-2008, 03:02 AM   #1
Constant Bitrate
 
Join Date: Sep 2005
Location: Redmond, WA
Posts: 183
IConnectionPoint::Advise

I am writing an addin and want to receive events but for some reason it is not working. I guess my COM is a little rusty can someone help me out here. Here is approximately what I am doing:

In the OnConnection method

Code:
Application->QueryInterface(IID_IDualStreetDeckApp, (void**)&m_app); m_app->CreateOverlay(overlayname, &m_overlay); hr = m_overlay.Advise(reinterpret_cast<IUnknown*>(this), DIID_IOverlayEvents, &m_cookie);

Everything seems to succeed ok, but my functions are never called. The class implements IOverlayEvents, as follows:

Code:
public IDispatchImpl<IOverlayEvents, &__uuidof(IOverlayEvents), &LIBID_StreetDeck, /* wMajor = */ 1>

Any help is much appreciated,
__________________
Mark

See all my CarPC projects
marchello2000 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -5. The time now is 05:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics