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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. mfc dll and IWebBrowser2 questions

mfc dll and IWebBrowser2 questions

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionannouncement
3 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.
  • S Offline
    S Offline
    Spiritofamerica
    wrote on last edited by
    #1

    hello 1. I tried putting some of my code that uses MFC inside a ordinary WIN32 dll and I get an error like this nafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in otherdll.obj Release/otherdll.dll : fatal error LNK1169: one or more multiply defined symbols found this error I get whenever I try to #include some mfc headers that I need. is there anyway to make a win32 dll accept MFC or do I have to make a mfc dll? 2.I dwd some sources of mfc dll and it seems like you can only import functions from them from MFC apps can you not do the same from win32 apps? and if so how? 3.I may need to send to the function I call from the dll a pointer to a IWebBrowser2 object Is this possible? does the dll know about IWebBrowser2? or does this not matter because pointer is pointer? please reply to these questions thank you in advance

    D 1 Reply Last reply
    0
    • S Spiritofamerica

      hello 1. I tried putting some of my code that uses MFC inside a ordinary WIN32 dll and I get an error like this nafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in otherdll.obj Release/otherdll.dll : fatal error LNK1169: one or more multiply defined symbols found this error I get whenever I try to #include some mfc headers that I need. is there anyway to make a win32 dll accept MFC or do I have to make a mfc dll? 2.I dwd some sources of mfc dll and it seems like you can only import functions from them from MFC apps can you not do the same from win32 apps? and if so how? 3.I may need to send to the function I call from the dll a pointer to a IWebBrowser2 object Is this possible? does the dll know about IWebBrowser2? or does this not matter because pointer is pointer? please reply to these questions thank you in advance

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Spiritofamerica wrote: nafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in otherdll.obj See here for possibilities.


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      A 1 Reply Last reply
      0
      • D David Crow

        Spiritofamerica wrote: nafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in otherdll.obj See here for possibilities.


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        to lazy to log on anyone have anything on the third issue????

        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