vba - IAccessible type not defined visual basic -


i have old project in vb6

i want use msaa accessebility , error on line:

private declare function accessiblechildren lib "oleacc" (byval pacccontainer iaccessible, byval ichildstart long, byval cchildren long, rgvarchildren variant, pcobtained long) long 

error: type not defined

i think iaccessible type not defined , how correctly define , use in vb6?

according this article on brainbell.com, must add reference oleacc.dll in order able use iaccessible type:

before start building project of course need load microsoft active accessibility sdk (msaasdk). after you've loaded sdk, must create reference in project accessibility dll, oleacc.dll.

select references project menu, click browse button find oleacc.dll file. default file located in \windows\system folder.

once you've created reference, can view accessibility library through object browser in visual basic.

when select accessibility project/library drop-down list in object browser, won't see in classes or member of lists because accessibility settings hidden. need right-click in members of pane , select show hidden members view accessibility classes , members.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -