Is there a way to get the sizeof a structure with only the pointer to the structure?
Thanks
Try print str$(RECT), " bytes", 13, 10
Otherwise, many windows structures have a cbSize member.
Quote from: xroot on July 18, 2010, 03:19:59 PM
Is there a way to get the sizeof a structure with only the pointer to the structure?
Generally no, if you just have an address to something you can't infer any size or dimension. Typically if you are passing structures you either know the size, of have a field/record within the structure, or passed as a calling parameter, containing the size information.