Необработанное исключение: нарушение доступа место записи 0x00000000
I am doing a simple application to define a structure and place data in tha structure to learn the concept of structures. But when trying to insert data to structure i am getting an access violation. Following is the code portions.
In Test.h file
<pre lang="C++">typedef struct Msg { unsigned char* message_id; unsigned char* message_name; }Msg_t;
In Test.cpp file
Msg_t *new_node[10]; const char *src = "E0"; new_node[0]->message_id = (unsigned char *)_strdup(src); //getting access violation error here.
Я совершенно новичок в этой среде.. Почему я получаю эту ошибку?
Помогите..