Advertisement
6_2008-2009 Data Structures #208540

UDT Calculator

Calculates the length of a UDT (User Defined Type) required to store it in a String using CopyMemory, MoveMemory or any simular API. (So you can easily save it or transfer it over Internet.) NEVER use Len() or LenB() for this, they both return the incorrect length. (Len often returns less bytes, LenB often returns way more)   The code of this application is not impressive at all. The thing is, no-one ever seemed to have found a way to get the exact string length to store a UDT in, until now :D Usage: Just add the types with their sizes to the list in the same order as your UDT is and the length is displayed below in a textbox. Note: I will work on a UDT Calculator that can analyze your code pasted in a textbox later. You vote would be nice, but never mind if you're short on time :P

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine