Click here to Skip to main content
16,006,902 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRegistry Theory Question Pin
soup19-Jun-02 12:30
soup19-Jun-02 12:30 
GeneralRe: Registry Theory Question Pin
Nish Nishant19-Jun-02 13:01
sitebuilderNish Nishant19-Jun-02 13:01 
GeneralRe: Registry Theory Question Pin
soup19-Jun-02 13:12
soup19-Jun-02 13:12 
GeneralRe: Registry Theory Question Pin
Michael Dunn19-Jun-02 19:09
sitebuilderMichael Dunn19-Jun-02 19:09 
GeneralMultiply Copies of same image Pin
19-Jun-02 12:23
suss19-Jun-02 12:23 
GeneralRe: Multiply Copies of same image Pin
Christian Graus19-Jun-02 14:00
protectorChristian Graus19-Jun-02 14:00 
GeneralTooltips + Codepage / Owner-drawn Pin
Oz Ben Eliezer19-Jun-02 12:09
Oz Ben Eliezer19-Jun-02 12:09 
GeneralOutlook Event Sinks Pin
19-Jun-02 11:18
suss19-Jun-02 11:18 
Hey, Im having some trouble with capturing some events in Outlook. I was wondering if anyone had, or could give me an example of how to overide an event such as the "open" event.
Right now I have this...

I derive my class from IDispSimpleEventImpl...

class ATL_NO_VTABLE CDaFun :
public IDispEventSimpleImpl<1,CDaFun,&__uuidof(Outlook::ItemEvents)>

typedef IDispEventSimpleImpl<1, CDaFun, &__uuidof(Outlook::ItemEvents)> ItmEvents;

Then setup a callback...

void __stdcall OnOpenItem(IDispatch* Ctrl, VARIANT_BOOL * CancelDefault);

and then the sinkmap...

SINK_ENTRY_EX(1,__uuidof(Outlook::ItemEvents),0xf003,OnOpenItem)

Now Advising im not sure about. Try to get a pointer to the interface i need. Im not sure if Inspectors is right...

CComQIPtr <outlook::_application> spApp(Application);
CComQIPtr <outlook::_inspectors> spInsp;
spInsp = spApp->Inspectors;
ItmEvents::DispEventAdvise((IDispatch*)spInsp,&__uuido(Outlook::ItemEvents));

The advise fails, so im not how to set that up right. Please helpConfused | :confused:

THanks

TENK
Generalrun a process as a different user Pin
Jason Henderson19-Jun-02 11:16
Jason Henderson19-Jun-02 11:16 
GeneralRe: run a process as a different user Pin
Navin19-Jun-02 11:48
Navin19-Jun-02 11:48 
GeneralRe: run a process as a different user Pin
Jason Henderson20-Jun-02 3:36
Jason Henderson20-Jun-02 3:36 
GeneralMinimizing a modless dialog into taskbar Pin
19-Jun-02 11:06
suss19-Jun-02 11:06 
GeneralRe: Minimizing a modless dialog into taskbar Pin
Nish Nishant19-Jun-02 11:16
sitebuilderNish Nishant19-Jun-02 11:16 
GeneralRe: Minimizing a modless dialog into taskbar Pin
Tim Smith20-Jun-02 2:08
Tim Smith20-Jun-02 2:08 
GeneralRe: How to save objects in windows register Pin
19-Jun-02 10:39
suss19-Jun-02 10:39 
GeneralRe: How to save objects in windows register Pin
19-Jun-02 10:43
suss19-Jun-02 10:43 
GeneralRe: How to save objects in windows register Pin
Nish Nishant19-Jun-02 10:46
sitebuilderNish Nishant19-Jun-02 10:46 
GeneralCharacter insertion into a Editbox! Pin
RuiSantiago19-Jun-02 9:13
RuiSantiago19-Jun-02 9:13 
GeneralRe: Character insertion into a Editbox! Pin
19-Jun-02 9:20
suss19-Jun-02 9:20 
GeneralRe: Character insertion into a Editbox! Pin
Chris Losinger19-Jun-02 9:21
professionalChris Losinger19-Jun-02 9:21 
GeneralRe: Character insertion into a Editbox! Pin
19-Jun-02 9:22
suss19-Jun-02 9:22 
GeneralRe: Character insertion into a Editbox! Pin
RuiSantiago19-Jun-02 22:55
RuiSantiago19-Jun-02 22:55 
GeneralClosing window from the far Pin
19-Jun-02 9:12
suss19-Jun-02 9:12 
GeneralRe: Closing window from the far Pin
19-Jun-02 9:25
suss19-Jun-02 9:25 
General10x Papa Pin
19-Jun-02 9:29
suss19-Jun-02 9:29 

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.