January 10, 2005 at 7:32 am
hi
Answer please
what type of mode available for running a DLL
if two processes are executing same DLL,
Ok if one process say A1 changed global variable will it see by other process say A2
January 10, 2005 at 9:56 am
I don't think this will work, but I'm not a deep enough thread programmer to know. Better to store the value in a db, like SQL Server
January 10, 2005 at 1:02 pm
Since your question is not directly related to SQL Server, but rather general Windows programming, you are likely to find excellent information on MSDN or TechNet. Have you searched there already?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 10, 2005 at 2:36 pm
You can create shared namespaces I beleive or as more commonly done you create a signaling method for all processes to transfer the data thru for each to see. The DLL itself will just be duplicated for each process and they will not talk to each other unless you do something to move data to shared locations (text file, memory address (buffer), database, something else). Might want to check out http://www.codeguru.com or http://www.codeproject.com which I know had some example code on them of various methods.
January 11, 2005 at 10:30 am
Two processes executing the same DLL means two instances of the same DLLs running on separate threads. Each instance is an isolated process that does not know each other. However, if you instantiate the DLL as A1 and A2 in your application that has a global variable, when A1 overwrites the variable, A2 will see the new value. For example, let’s say you created a calendar control or DLL that has Start Date as its property. You can pass the global variable as its starting date to the DLL. When you create another instance of the calendar control it will have the value of the global variable as its starting date.
January 12, 2005 at 2:21 am
It depends on how the dll has been written, registered and called. You need to check with the author / documentation.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply