Click here to Skip to main content
15,915,513 members
Home / Discussions / COM
   

COM

 
GeneralRe: autocad and VB Pin
everzwijn21-Apr-05 7:06
everzwijn21-Apr-05 7:06 
GeneralEvent Threading Pin
zx2c426-Mar-05 16:30
zx2c426-Mar-05 16:30 
GeneralExplorer Tree view events Pin
khan++25-Mar-05 19:55
khan++25-Mar-05 19:55 
GeneralRe: Explorer Tree view events Pin
khan++28-Mar-05 18:48
khan++28-Mar-05 18:48 
GeneraliTunes COM SDK Pin
zx2c425-Mar-05 13:58
zx2c425-Mar-05 13:58 
GeneralRe: iTunes COM SDK Pin
Gerald Schwab25-Mar-05 14:30
Gerald Schwab25-Mar-05 14:30 
GeneralRe: iTunes COM SDK Pin
zx2c425-Mar-05 15:05
zx2c425-Mar-05 15:05 
GeneralRe: iTunes COM SDK Pin
zx2c426-Mar-05 6:35
zx2c426-Mar-05 6:35 
This is what I have currently:

HRESULT hres;
DWORD d;
IConnectionPoint * icp;
IConnectionPointContainer * icpc;
hres = iITunes->QueryInterface(IID_IConnectionPointContainer,(PVOID *)&icpc);
hres = icpc->FindConnectionPoint(DIID__IiTunesEvents,&icp);
eventSink = new ITunesEventSink();
hres = icp->Advise((IUnknown*)&eventSink,&d);

and then
class ITunesEventSink:public _IiTunesEvents
{
public:
HRESULT OnAboutToPromptUserToQuitEvent();
};


The only problem is that "error C2259: 'ITunesEventSink' : cannot instantiate abstract class" Well duh, I need to impliment all of the virtual functions, but does that mean looking at the header files containing IDispatch and IUnknown and then copying in all of those function names and then giving functionality to them? If so, what is the best way to go about implimenting the functions?
GeneralRe: iTunes COM SDK Pin
zx2c426-Mar-05 16:27
zx2c426-Mar-05 16:27 
QuestionIs MDAC new Version backwork compatible? Pin
netboy202025-Mar-05 8:04
netboy202025-Mar-05 8:04 
AnswerRe: Is MDAC new Version backwork compatible? Pin
John M. Drescher25-Mar-05 8:35
John M. Drescher25-Mar-05 8:35 
QuestionCustom ActiveX control? Pin
foxyspy24-Mar-05 20:23
foxyspy24-Mar-05 20:23 
Questionpreparing DISPPARAMS for a method?? Pin
Muhammad Azam24-Mar-05 19:00
Muhammad Azam24-Mar-05 19:00 
AnswerRe: preparing DISPPARAMS for a method?? Pin
Vi227-Mar-05 22:30
Vi227-Mar-05 22:30 
GeneralRe: preparing DISPPARAMS for a method?? Pin
Muhammad Azam27-Mar-05 22:47
Muhammad Azam27-Mar-05 22:47 
GeneralRe: preparing DISPPARAMS for a method?? Pin
Vi227-Mar-05 23:01
Vi227-Mar-05 23:01 
GeneralRe: preparing DISPPARAMS for a method?? Pin
Muhammad Azam27-Mar-05 23:06
Muhammad Azam27-Mar-05 23:06 
GeneralOpen excel woorbook in office xp 2002 with c# Pin
24-Mar-05 6:16
suss24-Mar-05 6:16 
GeneralUsing COM dll in C Pin
Monty223-Mar-05 23:54
Monty223-Mar-05 23:54 
GeneralRe: Using COM dll in C Pin
Jörgen Sigvardsson24-Mar-05 2:52
Jörgen Sigvardsson24-Mar-05 2:52 
GeneralRe: Using COM dll in C Pin
Monty224-Mar-05 5:20
Monty224-Mar-05 5:20 
GeneralRe: Using COM dll in C Pin
Jörgen Sigvardsson24-Mar-05 9:54
Jörgen Sigvardsson24-Mar-05 9:54 
GeneralRe: Using COM dll in C Pin
Mike Dimmick24-Mar-05 5:43
Mike Dimmick24-Mar-05 5:43 
GeneralRe: Using COM dll in C Pin
Monty224-Mar-05 7:22
Monty224-Mar-05 7:22 
GeneralQueryInterface calls Pin
GizzoF23-Mar-05 0:41
GizzoF23-Mar-05 0:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.