SHCreateStreamOnFileEx linker error

Posted by sijith on Stack Overflow See other posts from Stack Overflow or by sijith
Published on 2010-05-04T09:20:14Z Indexed on 2010/05/04 9:38 UTC
Read the original article Hit count: 237

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about MSDN

Related posts about mvc