Thread: get_accName is not a member of 'IAccessible'

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    get_accName is not a member of 'IAccessible'

    Hi All,

    I'm trying to read the url of my firefox/Mozilla window, so far I have the IAccessible object that I obtained with :

    IAccessible *ac =0 ;
    AccessibleObjectFromWindow( hwnd,OBJID_CLIENT ,&IID_IAccessible , (void **)&ac );

    where hwnd is the handle to the window of the address bar.
    This seems to be working correctly
    Now when I do : ac.get_accName(myVariant) and try to compile, I get the following:
    'get_accName' : is not a member of 'IAccessible'

    I have included oleacc.h and linked the oleacc.lib, could please anyone help?
    Thanks a lot

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Code:
    ac->get_accName(myVariant)
    Perhaps?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    2
    still not it, same error produced : error C2039: 'get_accName' : is not a member of 'IAccessible'
    Thanks anyway

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I should at least be:
    Code:
    ac->get_accName(myVariant, pszName);
    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Replies: 2
    Last Post: 04-19-2008, 12:06 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  5. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM