Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why an ID in CreateThread()? Pin
moliate20-Jun-02 20:58
moliate20-Jun-02 20:58 
AnswerRe: Why an ID in CreateThread()? Pin
moliate20-Jun-02 20:42
moliate20-Jun-02 20:42 
GeneralProblem with loading resources at runtime Pin
Dean Goodman20-Jun-02 4:29
Dean Goodman20-Jun-02 4:29 
GeneralRe: Problem with loading resources at runtime Pin
Navin20-Jun-02 4:33
Navin20-Jun-02 4:33 
GeneralRe: Problem with loading resources at runtime Pin
Dean Goodman20-Jun-02 4:44
Dean Goodman20-Jun-02 4:44 
GeneralRe: Problem with loading resources at runtime Pin
-Dy21-Jun-02 4:10
-Dy21-Jun-02 4:10 
GeneralRe: Problem with loading resources at runtime Pin
Atlantys21-Jun-02 12:48
Atlantys21-Jun-02 12:48 
GeneralOutlook Add-in Pin
20-Jun-02 4:16
suss20-Jun-02 4:16 
Hey, Im having some trouble with capturing some events in an Outlook add-in. I was wondering if anyone had, or could give me an example of how to capture and 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 spApp(Application);
CComQIPtr spInsp;
spInsp = spApp->Inspectors;
ItmEvents::DispEventAdvise((IDispatch*)spInsp,&__uuido(Outlook::ItemEvents));

The advise fails, so im not how to set that up right. Please help

THanks
QuestionHow do i get the vertical and horizontal resolution of the screen? Pin
redeemer20-Jun-02 4:03
redeemer20-Jun-02 4:03 
AnswerRe: How do i get the vertical and horizontal resolution of the screen? Pin
Chris Losinger20-Jun-02 4:19
professionalChris Losinger20-Jun-02 4:19 
AnswerRe: How do i get the vertical and horizontal resolution of the screen? Pin
Niklas L20-Jun-02 4:19
Niklas L20-Jun-02 4:19 
GeneralRe: How do i get the vertical and horizontal resolution of the screen? Pin
Marc Richarme20-Jun-02 6:07
Marc Richarme20-Jun-02 6:07 
GeneralAny way to intercept WM_SIZING with SDI/MDI application Pin
aldeba20-Jun-02 2:59
aldeba20-Jun-02 2:59 
GeneralRe: Any way to intercept WM_SIZING with SDI/MDI application Pin
Christian Graus20-Jun-02 3:06
protectorChristian Graus20-Jun-02 3:06 
GeneralRe: Any way to intercept WM_SIZING with SDI/MDI application Pin
S.Maharajan20-Jun-02 3:26
S.Maharajan20-Jun-02 3:26 
GeneralMain Window handle Pin
vikramlinux20-Jun-02 2:48
vikramlinux20-Jun-02 2:48 
Generalapplication window handle. Pin
vikramlinux20-Jun-02 2:47
vikramlinux20-Jun-02 2:47 
GeneralAny documentation on how VC++ treats JPEG Pin
Sutanu20-Jun-02 1:42
Sutanu20-Jun-02 1:42 
GeneralRe: Any documentation on how VC++ treats JPEG Pin
Chris Losinger20-Jun-02 2:33
professionalChris Losinger20-Jun-02 2:33 
Questionwhy II can't use ActiveMoview (ocx) for playing mp3? Pin
white jungle20-Jun-02 1:30
white jungle20-Jun-02 1:30 
GeneralVB macros in VC++ Pin
20-Jun-02 1:30
suss20-Jun-02 1:30 
GeneralRe: VB macros in VC++ Pin
Niklas L20-Jun-02 1:38
Niklas L20-Jun-02 1:38 
QuestionHow can I get the amount of pixels horizontally scrolled by CRichEditCtrl? Pin
Miguel Fonseca20-Jun-02 1:19
Miguel Fonseca20-Jun-02 1:19 
GeneralMemory Question.... Pin
Christian Graus20-Jun-02 1:16
protectorChristian Graus20-Jun-02 1:16 
GeneralRe: Memory Question.... Pin
Niklas L20-Jun-02 1:30
Niklas L20-Jun-02 1:30 

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.