> Not sure when you find time to do your 'day job'
Ugh! Yesterday I got to sit in front of a computer for seven hours feeding
it CDs. It hasn't been very intellectually taxing lately.
> BTW, I tried the various asVariant(asInt16()) castings plus every other
> permutation I could think of to no avail.
Bummer. This can only mean VEE doesn't do SAFEARRAY. This has to go on the
list of things to check out.
> write a simple dll to convert the data from VEE into the required
> type for the OCX.
That works wonderfully. Check out SafeArrayCreateVector,
SafeArrayPutElement, SafeArrayDestroy and VariantInit, all in the Automation
SDK.
-SHAWN-
P.S. I knew a Mike Watts about 25 years ago. Does OHS mean anything to you?
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Ugh! Yesterday I got to sit in front of a computer for seven hours feeding
it CDs. It hasn't been very intellectually taxing lately.
> BTW, I tried the various asVariant(asInt16()) castings plus every other
> permutation I could think of to no avail.
Bummer. This can only mean VEE doesn't do SAFEARRAY. This has to go on the
list of things to check out.
> write a simple dll to convert the data from VEE into the required
> type for the OCX.
That works wonderfully. Check out SafeArrayCreateVector,
SafeArrayPutElement, SafeArrayDestroy and VariantInit, all in the Automation
SDK.
-SHAWN-
P.S. I knew a Mike Watts about 25 years ago. Does OHS mean anything to you?
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
I know there have been discussions on this forum before regarding
ActiveX and variants - maybe I missed the particular point but here is my
problem:
1. a manufacturer has provided an ActiveX [Control] interface to a data acq
card
2. some methods work very nicely
3. one particular method ( sending a digital output stream ) keeps
returning a type mismatch error - I have tried all sorts of types including
int16 ( which is what I would expect ) and forcing using asVariant()
4. the prototype that is provided by VEE's function & object browser is:
<objectname>.StartContDO(ByRef Buffer)
5. I contacted the manufacturer who did some investigation ( to their
credit ) and pointed out a part of the VEE documentation that says "variant
type of VEE only supports call by reference".
6. the manufacturer also provided the declaration for the method:
boolean StartContDO(VARIANT* Buffer)
which, to me, looks like a pointer i.e. a reference to the variable.
I suspect that I may be able to use some technique like the VB script
control as a wrapper ( I will try this anyway ).
Any bright ideas?
Regards to all,
Mike Watts
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".