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. All in DLLs

All in DLLs

Scheduled Pinned Locked Moved C / C++ / MFC
jsonquestion
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.
  • V Offline
    V Offline
    Venet
    wrote on last edited by
    #1

    Ok this is a simple question. Can you have all DialogBoxes, TextBoxes, resources etc in DLL, and then have .exe file call some kind of initialisation function contained in DLL that would start whatever application is supposed to do. Are there any problems with this. I haven't tried implementing myself. [thinkig in terms of Win32 API] Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)

    E 1 Reply Last reply
    0
    • V Venet

      Ok this is a simple question. Can you have all DialogBoxes, TextBoxes, resources etc in DLL, and then have .exe file call some kind of initialisation function contained in DLL that would start whatever application is supposed to do. Are there any problems with this. I haven't tried implementing myself. [thinkig in terms of Win32 API] Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)

      E Offline
      E Offline
      Emilio Guijarro
      wrote on last edited by
      #2

      No problem, but you have to be careful when loading resources, because you need the instance handle; and a simple call to GetModuleHandle(NULL) will not give it to you (it will return the calling exe), so you need to get it in the DllMain function and use for all resource loading tasks. I can´t see more problems actually... "nobody knows it, but you´ve got a secret smile, and you use it only for me"

      V 1 Reply Last reply
      0
      • E Emilio Guijarro

        No problem, but you have to be careful when loading resources, because you need the instance handle; and a simple call to GetModuleHandle(NULL) will not give it to you (it will return the calling exe), so you need to get it in the DllMain function and use for all resource loading tasks. I can´t see more problems actually... "nobody knows it, but you´ve got a secret smile, and you use it only for me"

        V Offline
        V Offline
        Venet
        wrote on last edited by
        #3

        Thanks :) Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)

        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