[BRLTTY] using BrlAPI and speech API in one program

Samuel Thibault samuel.thibault at ens-lyon.org
Sat Jul 31 08:40:54 EDT 2010


marquats at studi.informatik.uni-stuttgart.de, le Sat 31 Jul 2010 12:46:54 +0200, a écrit :
> Thank you! Now I managed to created the brlapi.lib file and compiled my
> test program with Visual C++ 2008.

Ok, good.

> But it doesn't work properly with the xwindow diver (brltty -b xw):
> The program enters TTy mode (brlapi_enterTtyMode (BRLAPI_TTY_DEFAULT,
> NULL);) and outputs text onto the braille terminal (brlapi_writeText (0,
> txt);). This works only if the text contains only one character, but if it
> contains two or more characters, then only a '?' appears on the virtual
> braille display.
> 
> If I compile the essentially same program with MinGW, it works as it should.

Mmm, this looks like Visual is set up in unicode mode, but does #define
UNICODE, please do (and I'd be happy to know what Visual #defines to
announce it wants to use unicode variants of functions).

> BTW, I'd like to know:
> Against what have I linked the program when I used brlapi.lib? If I want
> to distribute the program later, what must be included?

As I said, brlapi0.5.dll.  I've now added that to the documentation for
the next upload.

Samuel


More information about the BRLTTY mailing list