Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2005

Tip: Looking for answers? Try searching our database.

HELP -- Good way to read "fielded" fixed-lenth records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee Gillie - 22 Sep 2005 00:01 GMT
In other forms of BASIC and even other languages, we have been able to
read X byte fixed length records over a field record layout. It seems
very problematic in VB.NET.

What we are trying is to have a 750 element byte array into which we
read with a FileStream. Then we Marshal.PtrToStructure. The trick seems
to be finding the exact element properties to map out the various length
ansi character fields. These strings have no prefix length, and no
terminator. They are just like: a 5 character field followed by a 3
character field, followed by a 1 character field, and so on. There are
so dogged many different types of records we have, and so many layouts,
if we can get a layout kind sequential to do this, it will make
maintenance a huge help.

Last type we tried was ByValTStr with SizeConst for the field length,
and ansi for the record type. This seems to drop the last character of
each field.

Please help!!!!
Lee Gillie - 22 Sep 2005 15:44 GMT
> In other forms of BASIC and even other languages, we have been able to
> read X byte fixed length records over a field record layout. It seems
[quoted text clipped - 15 lines]
>
> Please help!!!!

Through another source of help we found that using any type of string
results in loss of data within the field. One must map an array of char
to get back every single character. What a pain!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.