SHCreateStreamOnFileW() problem
-
This is a code I use in my app:
IStream* data = NULL; HRESULT hr = S_OK; hr = SHCreateStreamOnFileW(name,STGM_READ | STGM_SHARE_DENY_WRITE,&data);
When I compile i get error saying: error LNK2001: unresolved external symbol __imp__SHCreateStreamOnFileW@12 fatal error LNK1120: 1 unresolved externals What to do?! Thanks -
This is a code I use in my app:
IStream* data = NULL; HRESULT hr = S_OK; hr = SHCreateStreamOnFileW(name,STGM_READ | STGM_SHARE_DENY_WRITE,&data);
When I compile i get error saying: error LNK2001: unresolved external symbol __imp__SHCreateStreamOnFileW@12 fatal error LNK1120: 1 unresolved externals What to do?! ThanksHi link with shlwapi.lib
tanvon malik http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055
-
Hi link with shlwapi.lib
tanvon malik http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055
I added:
#include shlwapi.h
in my code,also added: ShLwApi.Lib in project settings link input category and put lib path 'D:\VistaSDK\Lib' in additional library path (also in setings). Now when build error: uuid.lib(oaidl_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module ??? THX -- modified at 6:26 Friday 20th July, 2007 -
This is a code I use in my app:
IStream* data = NULL; HRESULT hr = S_OK; hr = SHCreateStreamOnFileW(name,STGM_READ | STGM_SHARE_DENY_WRITE,&data);
When I compile i get error saying: error LNK2001: unresolved external symbol __imp__SHCreateStreamOnFileW@12 fatal error LNK1120: 1 unresolved externals What to do?! ThanksSee the FAQ 2.3 I'm trying to call a Windows API, but the linker gives an unresolved external error (LNK2001) on the API name. Why?[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.