none
Outlook 2007 extension in vc++ RRS feed

  • Question

  • Hi,

    I am working on outlook extension. the outlook extension DLL is created and working fine for interface IExchExtMessageEvents.

    Now I want to access outlook items. and adding this statement:

    #import "C:\\Program Files\\Microsoft Office\\Office12\\msoutl.olb" no_namespace
    but receiving the error:

    c:\dev\outlookext\debug\msoutl.tlh(1252) : error C2146: syntax error : missing ';' before identifier 'MouseIcon'
    c:\dev\outlookext\debug\msoutl.tlh(1252) : error C2501: 'PicturePtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1252) : error C2501: 'MouseIcon' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1274) : error C2146: syntax error : missing ';' before identifier 'Font'
    c:\dev\outlookext\debug\msoutl.tlh(1274) : error C2501: 'FontPtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1274) : error C2501: 'Font' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1313) : error C2146: syntax error : missing ';' before identifier 'GetFont'
    c:\dev\outlookext\debug\msoutl.tlh(1313) : error C2501: 'FontPtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1329) : error C2146: syntax error : missing ';' before identifier 'GetMouseIcon'
    c:\dev\outlookext\debug\msoutl.tlh(1329) : error C2501: 'PicturePtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1558) : error C2146: syntax error : missing ';' before identifier 'Font'
    c:\dev\outlookext\debug\msoutl.tlh(1558) : error C2501: 'FontPtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1558) : error C2208: 'struct Font' : no members defined using this type
    c:\dev\outlookext\debug\msoutl.tlh(1576) : error C2146: syntax error : missing ';' before identifier 'MouseIcon'
    c:\dev\outlookext\debug\msoutl.tlh(1576) : error C2501: 'PicturePtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1576) : error C2501: 'MouseIcon' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1613) : error C2146: syntax error : missing ';' before identifier 'GetFont'
    c:\dev\outlookext\debug\msoutl.tlh(1613) : error C2501: 'FontPtr' : missing storage-class or type specifiers
    c:\dev\outlookext\debug\msoutl.tlh(1617) : error C2146: syntax error : missing ';' before identifier 'GetMouseIcon'
    c:\dev\outlookext\debug\msoutl.tlh(1617) : error C2501: 'PicturePtr' : missing storage-class or type specifiers

    .

    .

    fatal error C1003: error count exceeds 100; stopping compilation
    Error executing cl.exe.

    outlookext.dll - 102 error(s), 1 warning(s)

    Any idea?

    Saturday, June 9, 2012 1:31 PM

Answers