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. quesion about link

quesion about link

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpannouncement
2 Posts 2 Posters 1 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.
  • G Offline
    G Offline
    gucy
    wrote on last edited by
    #1

    my regular dll is dynamicly linked to my application.the regular dll is built using the dynamic_link library version of mfc while the application is built using the static_link library version of mfc. when i call AfxGetInstanceHandle() in my regular dll.it caused severe error. then i rebuild my application using dynamic_link library version of mfc.it is ok. i wonder if i must use dynamic_link library of mfc in my application when the application calls a regular dll. gucy

    A 1 Reply Last reply
    0
    • G gucy

      my regular dll is dynamicly linked to my application.the regular dll is built using the dynamic_link library version of mfc while the application is built using the static_link library version of mfc. when i call AfxGetInstanceHandle() in my regular dll.it caused severe error. then i rebuild my application using dynamic_link library version of mfc.it is ok. i wonder if i must use dynamic_link library of mfc in my application when the application calls a regular dll. gucy

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      not necessarily. It could be std itself. Check /MD, /MT compiler flags.

      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