Hi, I am getting linker error while working on SHCreateStreamOnFileEx. Please help me to find out the problem.
IStream* replace::GetStream()
{
LPCWSTR pszFile=L"D:\\Test\\output.txt";
IStream* dataStream = NULL;
if (dataStream == NULL)
{
SHCreateStreamOnFileEx(pszFile,
STGM_READ|STGM_SHARE_DENY_NONE|STGM_DELETEONRELEASE,
FILE_ATTRIBUTE_NORMAL,
FALSE,
NULL,
&dataStream);
}
return dataStream;
}
Error: error LNK2019: unresolved external symbol _imp_SHCreateStreamOnFileEx@24 referenced in function "public: void __thiscall replace::GetStream(void)" (?GetStream@replace@@QAEXXZ) replace.obj replace