Handling VARIANT Arrays

T

Thilanga

Hi,

I want to access a VARIANT array returned by a method in VC++, that is
supposed to be a long array.

Can anybody suggest me a way of access this array and get the values
in it.

Following is a sample code:

m_ctrlCashDispenserActX.GetLastDispenseCounts();

The method GetLastDispenseCounts() returns a VARIANT array. So how can
I access those long values given in the array.

Is it possible with Safearrays? Give me some sample codes.

Thanks in advance.

Thilanga.
 
T

Thomas Matthews

Thilanga said:
Hi,

I want to access a VARIANT array returned by a method in VC++, that is
supposed to be a long array.

Can anybody suggest me a way of access this array and get the values
in it.

Following is a sample code:

m_ctrlCashDispenserActX.GetLastDispenseCounts();

The method GetLastDispenseCounts() returns a VARIANT array. So how can
I access those long values given in the array.

Is it possible with Safearrays? Give me some sample codes.

Thanks in advance.

Thilanga.

You need to ask in a Visual C++ newsgroup.
The _standard_ C++ langauge, which is discussed in this
newsgroup, does not have a keyword "VARIANT".

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top