I do not know much cpp, so this is getting beyond me. Perhaps someone else can jump in here? On 9/16/10, QuentinC <webmaster@xxxxxxxxxxxx> wrote: > Hello Alex, > To create a COM object in C/C++, I need a serie of codes and a class header > or a C style structure definition defining the accessible methods. > Where could I find those for jaws ? > > Here is for example what I do to open SAPI5 : > > BOOL sapiInit () { > if (FAILED(CoInitialize(NULL))) return FALSE; > HRESULT hr = CoCreateInstance(&CLSID_SpVoice, NULL, CLSCTX_ALL, > &IID_ISpVoice, (void **)&pVoice); > //... doing something with pVoice > } > > where the first, third and fourth parameters are constants which can be > found in sapi.h headers, and fifth is a reference to a pointer which will > receive the object instance. > If I want to create a jaws or a windows eye object, I have to know the first > three constants, and have a class definition or a C style structure to know > which methods are available... > > Maybe you know an easier way to create a COM object ? I don't know COM very > well. > Note : the above snippet is taken and adaptated from MSDN, copy/past, I > don't understand the four first parameters at all. > > My compiler is MinGW with GCC 3.4.5 > > > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > -- Have a great day, Alex (msg sent from GMail website) mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind