All I've done so far is declared a method with CBString arguments in my header file, and added a basic implementation of that method in my main .cpp file. In the header file, I've got the following:
#include "bstrlib\bstrwrap.h"
I'm sure this is something stupid on my part.
Thanks. :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You'll need to link the functions in bstrlib.c and bstrwrap.cpp into your program. The easiest way is just to add those two files to your project's source files, but you could also build them into a library and link that separately.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I'm trying to use CBString in a C++ project (Visual C++ 2005), and I'm getting this when I try to build:
error LNK2019: unresolved external symbol "public: virtual __thiscall Bstrlib::CBString::~CBString(void)" (??1CBString@Bstrlib@@UAE@XZ) ...
All I've done so far is declared a method with CBString arguments in my header file, and added a basic implementation of that method in my main .cpp file. In the header file, I've got the following:
#include "bstrlib\bstrwrap.h"
I'm sure this is something stupid on my part.
Thanks. :)
You'll need to link the functions in bstrlib.c and bstrwrap.cpp into your program. The easiest way is just to add those two files to your project's source files, but you could also build them into a library and link that separately.
Thanks, that was it.