Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

Win32 DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ramialhasan - 07 Feb 2005 08:34 GMT
I have good experience with COM ATL object, but recently I needed to
deal with Win32 DLLs.

I have some question relating to their model of work. In COM objects
every client of the com server will have a special instance that may
include local variables visible to that instance only.

In Win32 DLL, does every client have his own instance with some local
variables that are only updated by him? Or Do all clients handle the
same instance of the DLL?

If all clients have to deal with single instance, where are the data
related to certain client stored as e.g open handles,..

If I have two different EXEs(processes), and both open the same DLL,
are the DLL global data shared between the two processes or every
processs has its own global data?

Thanks for help.
Rami.
David Lowndes - 07 Feb 2005 09:51 GMT
>If I have two different EXEs(processes), and both open the same DLL,
>are the DLL global data shared between the two processes or every
>processs has its own global data?

Rami,

Unless you specifically create shared variables, any global variables
in a DLL are per-process (each process that loads the DLL has its own
global variables).

Dave
ramialhasan - 07 Feb 2005 10:11 GMT
Severian - 09 Mar 2005 16:57 GMT
>I have good experience with COM ATL object, but recently I needed to
>deal with Win32 DLLs.
[quoted text clipped - 13 lines]
>are the DLL global data shared between the two processes or every
>processs has its own global data?

It takes special work, and special requirements, for sharing data
between processes through DLLs. Most DLLs do not.
--
Sev

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.