Can someone please explain to me.... I'm having a ***** of a time... sure it's something totally lame.
First things first, I can't create a _bstr_t and initialize it:
Code:
//throws compiler error
//id3 error LNK2019: unresolved external symbol "void __stdcall
//_com_issue_error(long)" (?_com_issue_error@@YGXJ@Z) referenced in
//function "public: __thiscall _bstr_t::_bstr_t(unsigned short const *)"
//(??0_bstr_t@@QAE@PBG@Z)
_bstr_t bstrTest = "c:\\test.mp3";
next... can't get it work with cout
Third, can't seem to pass _bstr_t as a parameter
Code:
//proto
BOOL fileExists(_bstr_t bstrFileName);
//call
if(id3.fileExists(_bstr_t(L"")))
{
//cout << "file c:\\test.mp3 exists\n";
}
What am I doing wrong?
I have the correct h files included I am sure:
#include <iostream>
#include <tchar.h>
#include <comutil.h>
#include <atlbase.h>
#include <atlcom.h>
pleh!