Message <Context> , an array designator cannot be used with an object of struct or union type. Description An initialization designator must match the type of the object being initialized. In this initialization, the current object is a struct or union, so an array designator is not allowed. User Action Correct the initialization.