[Accessibility-ia2] IAccessible2::windowHandle

Alexander Surkov surkov.alexander at gmail.com
Mon Feb 19 08:08:41 PST 2007


So, Can anybody fix IAccessible2 interface at 
http://accessibility.freestandards.org/a11yspecs/ia2/api/ ?

Alexander.

Cohrs, Christian пишет:
> Hi Alexander,
>
> you are right about that. HWND is not an OLE automation compatible data
> type. OLE_HANLDE should work, it's just an int.
>
> Best regards,
> Christian 
>
> -----Original Message-----
> From: accessibility-ia2-bounces at lists.freestandards.org
> [mailto:accessibility-ia2-bounces at lists.freestandards.org] On Behalf Of
> Alexander Surkov
> Sent: Freitag, 16. Februar 2007 19:35
> To: accessibility-ia2 at lists.freestandards.org
> Subject: [Accessibility-ia2] IAccessible2::windowHandle
>
> I try to create marshaling proxy for IA2 interfaces. I get linking
> errors:
>
>    Creating library IA2Marshal.lib and object IA2Marshal.exp
> Accessible2_p.obj : error LNK2001: unresolved external symbol 
> _HWND_UserFree at 8
> Accessible2_p.obj : error LNK2001: unresolved external symbol 
> _HWND_UserUnmarsha
> l at 12
> Accessible2_p.obj : error LNK2001: unresolved external symbol 
> _HWND_UserMarshal@
> 12
> Accessible2_p.obj : error LNK2001: unresolved external symbol 
> _HWND_UserSize at 12
> IA2Marshal.dll : fatal error LNK1120: 4 unresolved externals
>
> These errors are involved with IAccessible2::windowHandle property that 
> is defined as
>
> [propget] HRESULT windowHandle
> (
>   [out, retval] HWND *windowHandle
> );
>
> It looks it isn't correct to use HWND type in COM interfaces. After some
>
> investigation I find out I should use OLE_HANDLE instead. Also I should 
> import "ocidl.idl" additionally. I'm not big guy in MS COM programming. 
> So, please advise me. Am I right about OLE_HANDLE or what do I do wrong?
>
> If you need any additional information please let me know.
>
> Thank you.
> Alexander Surkov.
>
> _______________________________________________
> Accessibility-ia2 mailing list
> Accessibility-ia2 at lists.freestandards.org
> http://lists.freestandards.org/mailman/listinfo/accessibility-ia2
>
>   




More information about the Accessibility-ia2 mailing list