WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE COM ADO CDO ADSI LDAP
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Passing an Array as a Parameter to an OLE Method

 Keywords:  Passing  Array Parameter OLE Method

Question:

I am assuming, perhaps incorrectly, that WinBatch arrays are "abstract data objects", rather like arrays in AWK or Perl, and unlike those in C or assembly. So, it is unclear to me how Microsoft's OLE engine will interpret a WinBatch array passed to it? Or, am I wrong, and it is just contiguous storage like it would be in C or assembly?

Answer:

You cannot pass an Winbatch array as paramater to an OLE Method, using WinBatch.

WinBatch arrays are simply byte arrays. The developers claim we cannot pass arrays as paramters to OLE methods. When an array is passed as a parameter to a method, it gets ignored. What Winbatch does is pass that parameter as a Vt_Error


Article ID:   W15585
File Created: 2003:05:13:11:29:08
Last Updated: 2003:05:13:11:29:08