I thought something like this:
TestParms * testParmsPtr = &myStruct;
Last question: For my second try, would my constructor set all parms to 0 (memset)? Is this correct how I did it?
And do you know anything about MQ data types? I am not sure whether this would work:
memcpy(myStruct.parm4, dataLength, sizeof(myStruct.parm4)); as the data type of dataLength is MQLONG (32-bit integer) and parm4 is char[8].