Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS Service Pack Pin
Steve S24-Feb-04 5:38
Steve S24-Feb-04 5:38 
GeneralDisabling a Service Pin
Monty223-Feb-04 23:12
Monty223-Feb-04 23:12 
GeneralRe: Disabling a Service Pin
Balkrishna Talele24-Feb-04 0:47
Balkrishna Talele24-Feb-04 0:47 
GeneralRe: Disabling a Service Pin
Mike Dimmick24-Feb-04 1:51
Mike Dimmick24-Feb-04 1:51 
GeneralRe: Disabling a Service Pin
Monty224-Feb-04 2:17
Monty224-Feb-04 2:17 
GeneralDLL and process Pin
amar_shinde23-Feb-04 22:49
amar_shinde23-Feb-04 22:49 
GeneralRe: DLL and process Pin
Prakash Nadar24-Feb-04 0:48
Prakash Nadar24-Feb-04 0:48 
GeneralRe: DLL and process Pin
Mike Dimmick24-Feb-04 2:00
Mike Dimmick24-Feb-04 2:00 
You might have been correct in 16-bit Windows; in 32- and 64-bit Windows, you should treat them as separate copies. Behind the scenes, Windows maps read-only pages to the same physical memory and maps writeable pages as copy-on-write (i.e. a copy is made the first time the page is written to). The programmer shouldn't worry about this.

If you need to share data between different copies of a DLL, you should either mark a section of the image as shareable and ask the compiler to store your shared data there, or use memory-mapped files. Memory-mapped files are generally easier to understand.

The DllCanUnloadNow entry point is only relevant to, and called by, COM. The COM runtime calls it when releasing an object instance or calling IClassFactory::UnlockServer (not necessarily immediately). If it returns TRUE, COM will eventually call FreeLibrary to unload the DLL.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: DLL and process Pin
Prakash Nadar24-Feb-04 5:00
Prakash Nadar24-Feb-04 5:00 
GeneralGlobal Variable Problem Pin
Caoimh23-Feb-04 22:44
Caoimh23-Feb-04 22:44 
GeneralRe: Global Variable Problem Pin
Manfred Staiger23-Feb-04 23:16
Manfred Staiger23-Feb-04 23:16 
GeneralRe: Global Variable Problem Pin
Robert A. T. Káldy24-Feb-04 0:29
Robert A. T. Káldy24-Feb-04 0:29 
GeneralRe: Global Variable Problem Pin
Manfred Staiger24-Feb-04 1:10
Manfred Staiger24-Feb-04 1:10 
GeneralRe: Global Variable Problem Pin
BIG_MG24-Feb-04 2:09
BIG_MG24-Feb-04 2:09 
GeneralRe: Global Variable Problem Pin
Tim Smith24-Feb-04 4:12
Tim Smith24-Feb-04 4:12 
GeneralRe: Global Variable Problem Pin
Tim Smith24-Feb-04 4:14
Tim Smith24-Feb-04 4:14 
QuestionHow to show a menu? Pin
BoudewijnEctor23-Feb-04 22:38
BoudewijnEctor23-Feb-04 22:38 
AnswerRe: How to show a menu? Pin
Roger Allen24-Feb-04 3:39
Roger Allen24-Feb-04 3:39 
AnswerRe: How to show a menu? Pin
amar shinde10-Mar-04 23:51
sussamar shinde10-Mar-04 23:51 
QuestionHow to get listing of all files used Pin
Member 33502223-Feb-04 22:28
Member 33502223-Feb-04 22:28 
AnswerRe: How to get listing of all files used Pin
David Crow24-Feb-04 3:03
David Crow24-Feb-04 3:03 
GeneralScan PCI slot Pin
earslan23-Feb-04 22:20
earslan23-Feb-04 22:20 
GeneralVBS files vs C++ files Pin
davrodriguez23-Feb-04 22:08
davrodriguez23-Feb-04 22:08 
GeneralRe: VBS files vs C++ files Pin
David Crow24-Feb-04 3:11
David Crow24-Feb-04 3:11 
GeneralError..Inno..Vc++..Setup Pin
rasha200323-Feb-04 22:07
rasha200323-Feb-04 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.