Re: Data type byte
- From: erewhon@xxxxxxxxxx (J French)
- Date: Mon, 23 Apr 2007 07:03:09 GMT
On Sun, 22 Apr 2007 22:38:01 -0700, =?Utf-8?B?amVycnlfeXM=?=
<jerryys@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Thanks appreciate your response i have not tried it yet, but previously i did
attempt to change the input buffer to a string (although not by changing the
"any" as you suggest and received run time error 49 bad dll calling
convention.
By the way what is this type "any" in the declaration mean?
'Any' just means that VB will alow you to send any type of variable in
that parameter
The next problem i face is that a type byte array cannot be multidimensional
and i wonder how I can duplicate a read of say 50 fields to a byte array and
make any sense of the data items. With multi dimensional array that can hold
any types of data each field can be easily referenced. Also the receiving
buffer cannot be a
type declaration where each field is identified after a read. Do you know of
any ways to easily identify each field after it is read into a byte type
buffer?
I think I would forget about multi dimensional Byte Arrays here, you
can send them alright, but it is unlikely to help you. A multi
dimensional Byte Array is just one long string of memory.
If you have fixed length records, or know the record layout then you
can read the data into a UDT (User Defined Type) and it will sort out
fixed length strings automatically.
Best you tell us what the data you are trying to read looks like.
.
- References:
- Re: Data type byte
- From: Mike Williams
- Re: Data type byte
- From: J French
- Re: Data type byte
- Prev by Date: Debug VB OCX and DLL
- Next by Date: Re: Dir() question
- Previous by thread: Re: Data type byte
- Next by thread: Re: Data type byte
- Index(es):
Relevant Pages
|