Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SHCreateStreamOnFileW() problem

SHCreateStreamOnFileW() problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    josip cagalj
    wrote on last edited by
    #1

    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

    T M 2 Replies Last reply
    0
    • J josip cagalj

      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

      T Offline
      T Offline
      tanvon malik
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • T tanvon malik

        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

        J Offline
        J Offline
        josip cagalj
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J josip cagalj

          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

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          See 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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups