
Array of Fixed Length Strings...
Thanks Joe,
I have attempted to do this with the MarshalAs functions for the size of the
string, but still having problems getting all the values from the list?
Would you happen to have an example?
I have tried:
[MarshalAs(UnmanagedType.ByValArray,SizeConst=SIZE_SECURITY_NAME)]
But have problems when you specify that it is an Array that needs to be
returned...
Thanks for the help...
_______________________________________
Mark Bappe
S and T Software
Quote:
> Structures do not allow you to set an initial size of an array.
> When you initialize the structure, you can set the Security item to the
size
> you wish.
> > Type TUser
> > Status As Long
> > Info As TUserInfo
> > From As String * SIZE_USER_FROM
> > password As String * SIZE_PASSWORD
> > Security(1 To NUM_USER_SECURITY) As String * SIZE_SECURITY_NAME
> > Reserved1 As Long
> > AllowMultipleLogins As Long
> > Reserved2 As Long
> > RealName As String * SIZE_USER_NAME
> > PhoneNumber As String * SIZE_USER_PHONE
> > Company As String * SIZE_USER_ADDRESS
> > Address1 As String * SIZE_USER_ADDRESS
> > Address2 As String * SIZE_USER_ADDRESS
> > City As String * SIZE_USER_ADDRESS
> > state As String * SIZE_USER_STATE
> > Zip As String * SIZE_USER_ZIP
> > Country As String * SIZE_USER_ADDRESS
> > Sex As Long
> > Editor As Long
> > HelpLevel As Long
> > Protocol As Long
> > TerminalType As Long
> > FileDisplay As Long
> > MsgDisplay As Long
> > PacketType As Long
> > LinesPerPage As Long
> > HotKeys As Long
> > QuoteOnReply As Long
> > SortedListings As Long
> > PageAvailable As Long
> > EraseMorePrompt As Long
> > Reserved3 As Long
> > Language As String * SIZE_LANGUAGE_NAME
> > LastCall As FileTime
> > LastNewFiles As FileTime
> > ExpireDate As FileTime
> > FirstCall As FileTime
> > BirthDate As FileTime
> > conference As Long
> > MsgsWritten As Long
> > Uploads As Long
> > TotalUploadKbytes As Long
> > Downloads As Long
> > TotalDownloadKbytes As Long
> > DownloadCountToday As Long
> > DownloadKbytesToday As Long
> > TimesOn As Long
> > TimeLeftToday As Long
> > MinutesLogged As Long
> > SubscriptionBalance As Long
> > NetmailBalance As Long
> > AccountLockedOut As Long
> > PreserveMimeMessages As Long
> > ShowEmailHeaders As Long
> > Reserved(1 To 36) As Byte
> > End Type