This could probably be simplified... again because we typicall don't do "(*var).", but "var->", so it should be
Code:((strMyStruct*)ptr)->a = 10;This one is horrible.Code:((myStruct *)((int *)p + 56))->fps = 30.0f;
So much easier to read.Code:int* pTemp = (int*)p + 56; ((strMyStruct*)pTemp)->fps = 30.0f;