Re: IDLDrawWidget component function documentation [message #14058] |
Sat, 16 January 1999 00:00 |
Reinhold Schaaf
Messages: 10 Registered: March 1998
|
Junior Member |
|
|
Mark,
the documentation in IDL's online-documentation is broken, at least in
Version 5.1, and as far as I know in 5.2 too. But on RSI's website you
can find a pdf-document "External Development Guide" (file name
edg.pdf), that contains a chapter "IDL ActiveX Control Command
Reference", which is quite complete.
Also, the IDL distribution contains an example C++ project (path is
external\activex\vc in the IDL-directory), which I found _very_
helpfull. I think, the methods
COCXOneDlg::OnCppScalarToIDLClick()
COCXOneDlg::OnIDLScalarToCppClick()
COCXOneDlg::OnCppArrayToIDLClick()
COCXOneDlg::OnIDLArrayToCppClick()
should point you the way to the answer of your question in your other
posting. However, the program is written in Visual C++, and I am not
shure whether it can be used with the C++Builder.
I have written some C++-classes to transfer ints, floats, doubles, and
arrays of floats from C++ to IDL and vice versa (well, arrays only from
C++ to IDL, not back, sorry!), using the recipies from these examples. I
can mail them to you, if you want. They are written in Visual C++, but
it should be no problem to convert them to your compiler. Also, the
transfer of arrays is not (yet?) completely clean, I get unhandeled
exceptions, but the result is ok. Probably some problem with releasing
the variant. But this is in the present context of my project a minor
problem, so I will not try to solve it within the next two months.
Hope, this helps
Reinhold
Mark McGillion wrote:
>
> Hi all,
>
> Does anyone know if there exists any documentation on the IDLDrawWidget
> component functions such as ExecutrStr(), GetNamedData(),
> SetNamedData().
>
> I can see the prototypes for these functions, but I do not have an
> explanantion of their functionality or return values.
>
> Regards,
>
> Mark
--
************************************************************ *
Reinhold Schaaf
Ettighofferstr. 22
53123 Bonn
Germany
Tel.: (49)-228-625713
Email: schaaf@astro.uni-bonn.de
************************************************************ *
|
|
|
Re: IDLDrawWidget component function documentation [message #14067 is a reply to message #14058] |
Fri, 15 January 1999 00:00  |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
There is a tiny bit in the online External Development Guide,
under "IDL ActiveX Control Reference", "Methods". Doesn't
really *explain* anything about what's going on, though.
About your problem with GetNamedData(), have you tried
upper-casing your variable names?
I'm not on a Windows box, so I have no experience in this
field. If the online stuff is all the documentation there is on
this subject, I'm surprised anyone gets done anything useful at
all... though the idea behind it seems very good.
Regards,
Stein Vidar
|
|
|