How a dll will be sharable by more than one exe?
Answers were Sorted based on User's Feedback
Answer / nagapradeep
Dll can be shared by more than one exe by placing that dll in
'C:\WINDOWS\system32' folder.
| Is This Answer Correct ? | 2 Yes | 1 No |
If a dll is Sharable, all the functions are set in global
data segment, when ever a exe is called the SCM (Service
control Manager ) will increment reference count by 1, if
the second exe is called the same dll, SCM will increment
by 2, if first exe is unloaded or terminatred it decrements
the count by 1.
And finally if reference count is 0, the dll will unloaded
from the memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / leossk
For each exe...dll will come and sit in its private memory
so that the global variables of dll won?t be updated for
each exe
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / karthikeyan
Generally, the global variables declared in a dll is
maintained uniquely for each process. If you want to share
the same variable for all the process, then it needs to be
placed within the data segment of the dll.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is vc++ programming?
What is ole? How do you handle drag and drop in ole?
What is cwinthread class? Explain its advantages.
What is microsoft visual c++ 2013 redistributable package x64?
#include<stdio.h>int(){int a,*b,**c,***d,****e; a=10;b=&a;c=&b;d=&c;e=&c;printf("a=%d b=%u c=%u d=% e=%u",a,b,c,d,e);printf ("%d%d%d\n",a,a+?*b,**c+***d+,****e);return0;}
Do I need microsoft visual c++ 2005 redistributable on my computer?
What function is used to trap all mouse messages?
How many time DLLMain gets called?
What is the difference between Undo and Redo?
What is the difference between an MLE and an SLE?
Do I need ms visual c++ on my computer?
What is vcredist_x86 exe?