Hello all,

I am working on a project which requires me to write a .dll with Window-Eyes
functionality.  To do this, I'm using C++.  While I'm not new to the
standard C++ language, I am quite new to how C++ interacts with com objects
and have to admit, it is a humbling experience to find out how little I
know.  I was hoping to find a resource online that has all the visual C++
and com information in one place.  However, so far I have only found various
different resources which are not very cohesive, and documentation varies on
different topics.  So, I have a few questions.

1.  How do you know when to use the get keyword?  For example, in the
external Window-Eyes scripting examples, I will often see lines such as the
following:
hr = application->get_Speech( &speech );
if ( SUCCEEDED(hr) && speech ) {
            // blah
}
I'm wondering why this line is written as get_speech instead of just Speech,
since there is a speech property in the Window-Eyes TLB and no get_Speech.
When do you know when to use get and put?

2.  Are there any good resources for learning about VARIANT types?  Same for
DISPID and the like.  Actually, any explanation about how Window-Eyes events
are handled in C++ would be nice.  I can make sense out of the external
examples on the app developer page, but I'm not sure that I'd be able to
write my own event yet.  MSDN documentation doesn't seem to provide a great
simple explanation from start to finish on these topics.  Or, if they do, I
haven't found them.  Anyone else been successful in self teaching on these
topics?

Thanks,
Cory

Reply via email to