Click here to Skip to main content
15,919,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to register directshow filter? Pin
yongwpi16-May-06 10:16
yongwpi16-May-06 10:16 
QuestionCEdit SetSel and Scrolling Pin
Thomas Blenkers16-May-06 9:14
Thomas Blenkers16-May-06 9:14 
AnswerRe: CEdit SetSel and Scrolling Pin
Nibu babu thomas16-May-06 17:19
Nibu babu thomas16-May-06 17:19 
GeneralRe: CEdit SetSel and Scrolling Pin
Thomas Blenkers17-May-06 9:06
Thomas Blenkers17-May-06 9:06 
GeneralRe: CEdit SetSel and Scrolling Pin
Nibu babu thomas17-May-06 17:22
Nibu babu thomas17-May-06 17:22 
GeneralRe: CEdit SetSel and Scrolling Pin
Thomas Blenkers20-May-06 7:19
Thomas Blenkers20-May-06 7:19 
GeneralRe: CEdit SetSel and Scrolling Pin
Nibu babu thomas21-May-06 17:48
Nibu babu thomas21-May-06 17:48 
QuestionOLE Automation and MS Outlook. Pin
Chris Meech16-May-06 8:41
Chris Meech16-May-06 8:41 
I'm developing some code to use the OLE automation features of Outlook and at runtime I'm getting an exception of 'Member Not Found'. Oddly this is occurring when I call the method GetCount() on a _Items class object. Now Intellisense and the .h/.cpp files tell me that such an animal exists, but since it is happening at runtime, I'm thinking I've ventured down DLL hell somehow. The offending code is
_Folders    olFolders         =   olNs.GetFolders();
long        nFolderIndex      =   1;
long        nFolderCount      =   olFolders.GetCount();

for ( ; nFolderIndex < nFolderCount; nFolderIndex++ )
{
    _Items     olItems        =   olFolders.Item(COleVariant(nFolderIndex));
    long       nItemsIndex    =   1;
    long       nItemsCount    =   olItems.GetCount(); // throws an exception when executed.

    for ( ; nItemsIndex < nItemsCount; nItemsIndex++ )
    {
        _MailItem  olMessage  =   olItems.Item(COleVariant(nItemsIndex));
...

Anybody got some thoughts on what to investigate here. Thanks.
Oh and if anybody has some pointers to informative websites that have examples of Outlook Automation in C++, those would be much appreciated.

Chris Meech

I am Canadian. [heard in a local bar]

The America I believe in has always understood that natural harmony is only one meal away from monkey burgers. [Stan Shannon]

GOOD DAY FOR: Bean counters, as the Australian Taxation Office said that prostitutes and strippers could claim tax deductions for adult toys and sexy lingerie. [Associated Press]
AnswerRe: OLE Automation and MS Outlook. Pin
Steve Echols16-May-06 18:45
Steve Echols16-May-06 18:45 
GeneralRe: OLE Automation and MS Outlook. Pin
Chris Meech17-May-06 2:53
Chris Meech17-May-06 2:53 
GeneralRe: OLE Automation and MS Outlook. Pin
Chris Meech17-May-06 3:26
Chris Meech17-May-06 3:26 
QuestionNeed Help with CMainFrame and VS 7.0 Pin
Jethro6316-May-06 8:15
Jethro6316-May-06 8:15 
AnswerRe: Need Help with CMainFrame and VS 7.0 Pin
led mike16-May-06 8:50
led mike16-May-06 8:50 
GeneralRe: Need Help with CMainFrame and VS 7.0 Pin
Jethro6316-May-06 8:55
Jethro6316-May-06 8:55 
GeneralRe: Need Help with CMainFrame and VS 7.0 Pin
led mike16-May-06 8:59
led mike16-May-06 8:59 
QuestionCommand line parameters[modified] Pin
ddmcr16-May-06 7:53
ddmcr16-May-06 7:53 
QuestionRe: Command line parameters Pin
David Crow16-May-06 8:39
David Crow16-May-06 8:39 
AnswerMessage Closed Pin
16-May-06 8:49
ddmcr16-May-06 8:49 
GeneralRe: Command line parameters Pin
David Crow16-May-06 8:58
David Crow16-May-06 8:58 
GeneralMessage Closed Pin
16-May-06 9:50
ddmcr16-May-06 9:50 
QuestionRe: Command line parameters[modified] Pin
David Crow16-May-06 10:26
David Crow16-May-06 10:26 
QuestionHow i create my own graphics for my applications Pin
Immunity1816-May-06 7:20
Immunity1816-May-06 7:20 
QuestionRe: How i create my own graphics for my applications Pin
led mike16-May-06 7:23
led mike16-May-06 7:23 
AnswerRe: How i create my own graphics for my applications Pin
Immunity1816-May-06 7:28
Immunity1816-May-06 7:28 
GeneralRe: How i create my own graphics for my applications Pin
SimonSays16-May-06 7:50
SimonSays16-May-06 7:50 

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.