CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending Arrays through Active X Automation objects



I have an object that holds an array of unsigned chars( fixed size) that
I want to retrieve by calling a function in the object. However, I can't
get this to work. I've tried several different approaches, but none of
them seem to work. Is there anybody that can help me out on this one?

First try:

In object
Method Test( Array unsigned char ** [out] )

This gives me an error when creating the object : Incorrect
variabletype.

Second try:

In object:
Method Test( Array unsigned char * [out] )

In user process:
unsigned char[128] the_array;
ComObject->Test( the_array );

This works, but only for the first position in the array:
the_array = [1, 0, 0, 0...]
when it should be
the_array = [1, 2, 3, ...]


/Fredrik


W Komornicki's Home Page | Main Index | Thread Index