Hi there people,
i was experimenting a bit with the sdk.
i have the following code:
std::string MsgStr;
PixelBufferInterface *pixelBuffer=static_cast<PixelBufferInterface*>(GE T_INTERFACE(vrayVFB, EXT_PIXEL_BUFFER_INTERFACE));
if (pixelBuffer) {
int width=pixelBuffer->getWidth();
int height=pixelBuffer->getHeight();
//printf("Image size is %i x %i\n", width, height);
MsgStr += "Image width is :";
MsgStr += width;
//CString cs(MsgStr.c_str());
MessageBox(NULL,MsgStr.c_str(),"Warning",MB_OK);
}
it all compiles fine, but when i try to build the project i get an error:
error LNK2019: unresolved external symbol "class ClassDesc2 * __cdecl GetInterfaceToolDesc(void)" (?GetInterfaceToolDesc@@YAPAVClassDesc2@@XZ) referenced in function "class ClassDesc * __cdecl LibClassDesc(int)" (?LibClassDesc@@YAPAVClassDesc@@H@Z)
the only thing i change in this code (what was taken from the help file) was :EXT_PIXEL_BUFFER_INTERFACE
the helpfile it says without EXT_ and that i not working.
Perhaps you c++ guru's know why i get this error ?
i added a couple of lib files to my project but that does not seem to solve it.
ps: there is a little typo error in the help by getting the width
i was experimenting a bit with the sdk.
i have the following code:
std::string MsgStr;
PixelBufferInterface *pixelBuffer=static_cast<PixelBufferInterface*>(GE T_INTERFACE(vrayVFB, EXT_PIXEL_BUFFER_INTERFACE));
if (pixelBuffer) {
int width=pixelBuffer->getWidth();
int height=pixelBuffer->getHeight();
//printf("Image size is %i x %i\n", width, height);
MsgStr += "Image width is :";
MsgStr += width;
//CString cs(MsgStr.c_str());
MessageBox(NULL,MsgStr.c_str(),"Warning",MB_OK);
}
it all compiles fine, but when i try to build the project i get an error:
error LNK2019: unresolved external symbol "class ClassDesc2 * __cdecl GetInterfaceToolDesc(void)" (?GetInterfaceToolDesc@@YAPAVClassDesc2@@XZ) referenced in function "class ClassDesc * __cdecl LibClassDesc(int)" (?LibClassDesc@@YAPAVClassDesc@@H@Z)
the only thing i change in this code (what was taken from the help file) was :EXT_PIXEL_BUFFER_INTERFACE
the helpfile it says without EXT_ and that i not working.
Perhaps you c++ guru's know why i get this error ?
i added a couple of lib files to my project but that does not seem to solve it.
ps: there is a little typo error in the help by getting the width
Comment