At 12:25 AM 12/19/2002 -0500, you wrote:
>I would have added it long ago... except that handling COM
>from C/C++ is, strangely enough, _very_ tricky. I really
>don't know why this is so; I've seen ASCOM used from other
>languages with just a few lines of easily-understandable code.
>Examples I've seen from C/C++ run to hundreds of lines of
>gibberish. (Incidentally, I'm only using WATCOM for the DOS
>software; the Windows version uses Microsoft Visual C++.)
Hi Bill,
This is good to hear. I agree that COM object programming with C++ is a
pain, much worse than it should be based on my rather thin experience. But
it seems far more painful to code a COM server than a COM client, which I
think is all you should need.
Another option would be to hook a DLL that provides the access to ASCOM
methods and properties. I'm no expert in DLL programming but I've put
together a few in VB6 that are accessed within C++ applications (written by
others). Probably too clunky for your use, but if there is anything I can
do....
--
Jeff Medkeff
Sierra Vista, Arizona
http://www.roboticobservatory.com/jeff/