(1).h
需要引用其他的.h
extern "C" int32_t __declspec(dllexport) Encode(const General::Protocol::JTT_808_2011::CMsg0001::SMsg &msg, uint8_t *dstData, uint32_t dstDataMaxLen);
(2).cpp
extern "C" int32_t __declspec(dllexport) Encode(const General::Protocol::JTT_808_2011::CMsg0001::SMsg &msg, uint8_t *dstData, uint32_t dstDataMaxLen)
{
int32_t result = General::Protocol::JTT_808_2011::CMsg0001::Encode(msg, dstData, dstDataMaxLen);
return result;
}
时间: 2024-12-18 14:17:30