Description: This tutorial will show you how to use the WIndows API function CopyMemory to populate Class data using a string as input.
In my line of work, I have to deal with several file formats that contain fixed length records. This is probably the fastest, most straight-forward way to read those files because the data is a 'known size'. CopyMemory is ideal for this because parsing data is virtually eliminated.
I'm going to walk you through the entire process and explain as I go, starting with a new ConsoleApplication. You should follow the article using .NET on your own machine. I try to avoid straying from the topic at hand, so when you get to the bolded sections of code, just copy and paste them into your program...
To read more, click the 'visit' link above.
Resource Specification
Date Added:
01/03/2004
tr>
Last Updated:
01/03/2004
Author:
James Mimeault
Average Visitor Rating:4 (out of 5) Number of Ratings: 2 Votes
Tutorial Maniacs - C#, PHP, ASP, .NET, Photoshop, Flash, Fireworks, & other design and programming tutorials... The most comprehensive collection of QUALITY hand picked design and programming tutorials and articles...(C) 2003