Re: Data type byte

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
.



Relevant Pages

  • Re: UDP Sending an array possible?
    ... Is it possible to send an array instead of a straight line of text? ... i can make a huge string and send it and then ... Is the receiving application a .NET application? ... Sockets break data up into packets, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: String parsing in VB.net
    ... refactor your code so that myDataBuffer is an array of Byte, ... than a string. ... receives a data buffer. ... encoding - it is only defined for 0-127. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: from array of ints to string and vice versa
    ... I want to convert this string to an array, ... other to generate it, separating them with ", ". ... takes a buffer and returns a size, which you first call with a NULL pointer ...
    (comp.programming)
  • Re: pls help: very odd behaviour when concatenating strings
    ... More then likely you are having a problem because your byte array is ... array to a string. ... // Put some stuff in the buffer. ... > concatenate them some values are missing (I canīt see them in the debugger). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Help With Arrays
    ... > The string to be copied to the buffer is of varying size, ... making the size of the string the same size as the array. ... The way round this is to use malloc(). ...
    (comp.lang.c)