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. Export DLL to two processes

Export DLL to two processes

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

    Hi, I am totally new to creating dlls . I've one doubt to be solved urgently -- For Windows - There is a application which loads a dll, calls the dll's entry points and puts some data into the dll's data structures. Now there is another application which again loads the same dll and calls the dlls' entry point. Is it possible to do the above in VC++. I am not aware so I may have put some terms very wrong. Pls correct me for that.. Any response greatly appreciated... Regards

    J J 2 Replies Last reply
    0
    • A Anonymous

      Hi, I am totally new to creating dlls . I've one doubt to be solved urgently -- For Windows - There is a application which loads a dll, calls the dll's entry points and puts some data into the dll's data structures. Now there is another application which again loads the same dll and calls the dlls' entry point. Is it possible to do the above in VC++. I am not aware so I may have put some terms very wrong. Pls correct me for that.. Any response greatly appreciated... Regards

      J Offline
      J Offline
      Jitendra gangwar
      wrote on last edited by
      #2

      Your thought is absolutely vaild becasue each application loads the dll in its process space. I think it will work. jitendra:-O

      1 Reply Last reply
      0
      • A Anonymous

        Hi, I am totally new to creating dlls . I've one doubt to be solved urgently -- For Windows - There is a application which loads a dll, calls the dll's entry points and puts some data into the dll's data structures. Now there is another application which again loads the same dll and calls the dlls' entry point. Is it possible to do the above in VC++. I am not aware so I may have put some terms very wrong. Pls correct me for that.. Any response greatly appreciated... Regards

        J Offline
        J Offline
        jetournier
        wrote on last edited by
        #3

        I'm not sure to understand what you want to do. Do you want 2 programs to use the same function of a dll at the same time or do you want the first program to modify datas that the second will use ? The first is always possible. The second is possible if: - you use global variables (to stock your datas) - the dll must "stay alive": you have to run the second program before the first one unloads the dll.It is very important otherwise your datas will be lost. There must be another way to do it better, but I know it works as I did it this way... If the question was something else :(( , then tell it...

        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