Hi, all, i want to define my own application layer message, here is the code:
cplusplus {{
#include <string>
#include "ApplPkt_m.h"
}};
class ApplPkt;
message NewApplPkt extends ApplPkt
{
fields:
string fragment;
};
when i compile it, the compiler keeps giving these errors:
NewApplLayer.cc(134) : error C2664: 'NewApplPkt::setFragment' : cannot convert p
arameter 1 from 'std::string' to 'const char *'
No user-defined-conversion operator available that can perform this conv
ersion, or the operator cannot be called
NewApplLayer.cc(155) : error C2664:
'NewApplPkt::setFragment' : cannot convert p
arameter 1 from 'std::string' to 'const char *'
No user-defined-conversion operator available that can perform this conv
ersion, or the operator cannot be called
please help, thanks a lot!