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

COM

 
GeneralRe: autocad and VB Pin
everzwijn231-Mar-05 10:47
everzwijn231-Mar-05 10:47 
GeneralRe: autocad and VB Pin
everzwijn231-Mar-05 11:05
everzwijn231-Mar-05 11:05 
GeneralRe: autocad and VB Pin
everzwijn231-Mar-05 11:11
everzwijn231-Mar-05 11:11 
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 
I am currently writing a program in C++ which uses the iTunes COM interfaces from the iTunes COM SDK (http://developer.apple.com/sdk/itunescomsdk.html). I have found it easy to use IiTunes (CoInitialize(NULL); CoCreateInstance(CLSID_iTunesApp, NULL, CLSCTX_LOCAL_SERVER, IID_IiTunes, (PVOID *)&iITunes);), but using _IiTunesEvents poses some adversity. I would like the OnAboutToPromptUserToQuitEvent to call a function where I can run some cleanup code. How can I implement _IiTunesEvents? I am used to C# where I can use += easily, but it is my understanding that COM requires sinks and things of that sort.

I want to have something like this:
IiTunes *iITunes = NULL;
//make object bla bla bla
??????????(OnAboutToPromptUserToQuitEvent);

.....

HRESULT OnAboutToPromptUserToQuitEvent()
{
.....
}


Thanks,
Jason A. Donenfeld
ZX2C4 Software


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 
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 

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.