-
Size of an object
Guys, its 1:52 AM here in India and I am awake for the Nth night. Don't laugh at me if I sound silly.
How do I get the size of my object? Like you can always do a Len(TypeInstance) to get the length of a structure. Like sizeof(Object) tells a C++ proggy his object size. I want the size of my object (no pun intended).
Dim a As Class1
Set a = New Class1
MsgBox Len(a)
Secondly, can I transfer my object to a byte array using CopyMemory without worrying about Unicode to ANSI conversions for the BSTRs?