Export DLL to two processes
-
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
-
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
Your thought is absolutely vaild becasue each application loads the dll in its process space. I think it will work. jitendra:-O
-
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
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...