Такую объявил и добавил пока два элемента
typedef struct {
int Num;
AnsiString Mesg;
} TErrorMsg;
TErrorMsg ErrorMsgs[ErrorMsgCt] = {
ERROR_SUCCESS , "Operation was successful",
ERROR_INVALID_FUNCTION, "Invalid Function"};
Компилятор каждый элемент хочет "засунуть" в TErrorMsg
[C++ Error] Unit1.cpp(77): E2034 Cannot convert 'int' to 'TErrorMsg'
[C++ Error] Unit1.cpp(77): E2034 Cannot convert 'char *' to 'TErrorMsg'
[C++ Error] Unit1.cpp(78): E2034 Cannot convert 'long' to 'TErrorMsg'
[C++ Error] Unit1.cpp(78): E2034 Cannot convert 'char *' to 'TErrorMsg'
Как правильно объявить инициализированую структуру?
Спасибо.