midi::CShortMsg doesn't have a default constructor. So in your struct you'll need to initialize it.
struct Records
{
midi::CShortMsg Message;
public:
Records(void);
Records(unsigned char Command, unsigned char Channel,
unsigned char Data1, unsigned char Data2, DWORD TimeStamp);
};
inline Records::Records(void)
: Message(midi::NOTE_ON, 0, NoteId, 127, 0)
{
}
inline Records::Records(unsigned char Command, unsigned char Channel,
unsigned char Data1, unsigned char Data2,
DWORD TimeStamp)
: Message(Command, Channel, Data1, Data2, TimeStamp)
{
}