Sunday, 15 July 2012

visual c++ - Error "signature of public member contains native type" in WinPRT -



visual c++ - Error "signature of public member contains native type" in WinPRT -

i'm trying create runtime component supports windows phone 8. had c++ source, @ nowadays won't back upwards windows phone 8, i'm converting them windows phone runtime component create work windows phone.

now problem i'd created them shows error in following,

#pragma 1 time #include "encoder.h" namespace yakprt { public ref class yakprtcomponent sealed { public: yakprtcomponent(); void yakencode(patestdata *yakdata, uint8_t *rawdata, int rawdatasize); void encodedata(patestdata *yakdata, uint8_t *rawdata, int rawdatasize); void signalhandler( int signum ); int yakrecordcallback( const void *inputbuffer, void *outputbuffer, unsigned long framesperbuffer, const streamcallbacktimeinfo* timeinfo, streamcallbackflags statusflags, void *userdata ); paerror yakaudiostreamopen(patestdata *yakdata); paerror yakaudiostreamstart(patestdata *yakdata); paerror isyakaudiostreamnotstopped(patestdata *yakdata); paerror yakcloseaudiostream(patestdata *yakdata); private: encoder *_encoder; }; }

the next errors coming above code,

error c3987: 'yakencode': signature of public fellow member contains native type 'patestdata *'

error c3992: 'getyakcodec': signature of public fellow member contains invalid type

note: patestdata structure,

typedef struct { int frameindex; /* index sample array. */ file *recfilestream; /* record stream file */ uint8_t *encoderoutput; int allocoutputsize; /* memory size allocated */ int encoderoutputsize; pastream *recordstream; /* pastream opened record sound callback. */ avcontext *c; } patestdata;

i'm not c++, please me error, , how rectify this. .

i got link

it usefull while creating winodws phone runtime component. . .

visual-c++ windows-phone-8 windows-phone winprt

No comments:

Post a Comment