Re: BSTR and Allocatable arrays
- From: Steve Lionel <Steve.Lionel@xxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 16:22:59 -0400
On Wed, 28 Sep 2005 15:31:02 -0400, "apm"
<Contributor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>The BSTR (the Microsoft Visual C/C++ name, String in VB) stores its length
>(like the Fortran allocatable array) but it can also be cast to an array of
>two byte elements. Does the Fortran standard specify anything about how the
>allocatable array is implemented in binary? Anyone how it appears in binary?
Just because a BSTR has a separate length that does not make it in any way
similar to a Fortran allocatable array. The Fortran standard says little if
nothing on the machine representation of an allocatable array, but even if it
did, that would not help you at all in accessing BSTRs.
Intel Visual Fortran and Compaq Visual Fortran (and perhaps other compilers)
provide routines for reading and writing BSTRs and SafeArrays. If you'd like
more pointers and an example, ask in our user forum (link below).
My recollection is that the data in a BSTR is UNICODE.
Steve Lionel
Software Products Division
Intel Corporation
Nashua, NH
User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://developer.intel.com/software/products/support/
.
- References:
- BSTR and Allocatable arrays
- From: apm
- BSTR and Allocatable arrays
- Prev by Date: Re: declaring array arguments in subroutines
- Next by Date: Re: BSTR and Allocatable arrays
- Previous by thread: BSTR and Allocatable arrays
- Next by thread: Re: BSTR and Allocatable arrays
- Index(es):
Relevant Pages
|
|