Hi
I am trying to make a kind of screen reader using gcc (mingw) Wxwidgets in windows 7
To start, I am trying to use and test AccessibleObjectFromWindow win function like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
#include <Oleacc.h>
#include <OleAuto.h>
//Also included the related libs on the project
void testDialog::OnButton1Click(wxCommandEvent& event)
{
IAccessible* accessibleFrame = NULL;
if (S_OK != AccessibleObjectFromWindow((HWND) GetHWND(), OBJID_CLIENT,IID_IAccessible, (void**) & accessibleFrame))
{
return;
}
}
|
Then I will call get_accName..
But compiler says this:
C:\test\testMain.cpp|96|undefined reference to `IID_IAccessible'|
I already tried to use &IID_IAccessible instead but compiler says:
C:\test\testMain.cpp|96|error: invalid initialization of reference of type 'const IID& {aka const _GUID&}' from expression of type 'const IID* {aka const _GUID*}'|
c:\mingw\include\oleacc.h|219|error: in passing argument 3 of 'HRESULT AccessibleObjectFromWindow(HWND, DWORD, const IID&, void**)'|
Please, could you help me?
Many thanks
Alex