|
-
Oct 26th, 2007, 02:52 PM
#1
getting the size of a structure?
what if you have a structure like this:
struct foo
{
public int A;
public char[] B;
}
the size of the structure obviously changes depending on the size of the char array inside it. Is there a "correct" way to get the size of the struct so that it would include the size of the character array?
sizeof() obviously will not work... i could check the length of the array at runtime to get the size of the struct, but i was just wondering if there is a function for doing this already
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|