Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct tagTPCANMsg
- {
- DWORD ID; // 11/29-bit message identifier
- // TPCANMessageType MSGTYPE; // Type of the message
- BYTE MSGTYPE; // Type of the message
- BYTE LEN; // Data Length Code of the message (0..8)
- BYTE DATA[8]; // Data of the message (DATA[0]..DATA[7])
- } TPCANMsg;
- TPCANMsg trcanmsg;
- result = CAN_Write(PCAN_USBBUS1,&trcanmsg); // всё ок
- QVector <TPCANMsg> vector_trcanmsg; // задаём вектор в который складываем структуру
- result = CAN_Write(PCAN_USBBUS1,&vector_trcanmsg.at(i)); // всё не ок :(
- result = CAN_Write(PCAN_USBBUS1,*vector_trcanmsg.at(i)); // ошибка
Add Comment
Please, Sign In to add comment