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. Building a statically linked MFC-App with VC7

Building a statically linked MFC-App with VC7

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 2 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.
  • R Offline
    R Offline
    Rainer Mangold
    wrote on last edited by
    #1

    Using VC6 it was easily possible to create a MFC-VC6 appl. and link MFC statically. The apps only depended on Kernel32.dll, User32.dll,... :) Doing the same with VC7 or even converting such a project from VC6 to VC7 results in additional dependencies to SHLWAPI.dll, OELAUT.dll and OLEACC.dll. :(( How can I remove the dependencies to these DLLs, even linking with /opt:ref /opt:noicf doesn't help.:confused: Any idea on howto make VC7 work like VC6 in this aspect is very much appreciated. Rainer

    L 1 Reply Last reply
    0
    • R Rainer Mangold

      Using VC6 it was easily possible to create a MFC-VC6 appl. and link MFC statically. The apps only depended on Kernel32.dll, User32.dll,... :) Doing the same with VC7 or even converting such a project from VC6 to VC7 results in additional dependencies to SHLWAPI.dll, OELAUT.dll and OLEACC.dll. :(( How can I remove the dependencies to these DLLs, even linking with /opt:ref /opt:noicf doesn't help.:confused: Any idea on howto make VC7 work like VC6 in this aspect is very much appreciated. Rainer

      L Offline
      L Offline
      lbc
      wrote on last edited by
      #2

      Rainer i too have noticed those dependencies, but don't think shlwapi and oleaut create particular problems as far as oleacc.dll i suggest you to check out: http://www.codeproject.com/cpp/oleaccproxy.asp[^] basically an oleproxy or, better, a delayed loading dll, seems to be a recommended practice maybe you could use this way also with the other 2 dlls hope this helps best regards

      R 1 Reply Last reply
      0
      • L lbc

        Rainer i too have noticed those dependencies, but don't think shlwapi and oleaut create particular problems as far as oleacc.dll i suggest you to check out: http://www.codeproject.com/cpp/oleaccproxy.asp[^] basically an oleproxy or, better, a delayed loading dll, seems to be a recommended practice maybe you could use this way also with the other 2 dlls hope this helps best regards

        R Offline
        R Offline
        Rainer Mangold
        wrote on last edited by
        #3

        This helps thank you :):) Rainer

        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