N
Nak
Hi there,
I am attempting to make a single instance DLL in C++. This means that I
only want 1 copy to be loaded at any time and the DLL's data is shared
throughout processes.
For example, I have a VB.NET app connecting to my DLL and calling a
function called addOne in the DLL, this then adds 1 to a static integer in
the DLL and returns the value. The problem is that if I load 2 instances of
the VB.NET app then I get 2 instance of the DLL loaded with completely
different values for the "static integer" in the DLL. I know that this was
quite an easy thing to achieve in VB6 via the project properties, but how
would I go about achieving this in Visual Studio .NET 2003 with a C++
project?
Thanks loads in advance!
Nak.
I am attempting to make a single instance DLL in C++. This means that I
only want 1 copy to be loaded at any time and the DLL's data is shared
throughout processes.
For example, I have a VB.NET app connecting to my DLL and calling a
function called addOne in the DLL, this then adds 1 to a static integer in
the DLL and returns the value. The problem is that if I load 2 instances of
the VB.NET app then I get 2 instance of the DLL loaded with completely
different values for the "static integer" in the DLL. I know that this was
quite an easy thing to achieve in VB6 via the project properties, but how
would I go about achieving this in Visual Studio .NET 2003 with a C++
project?
Thanks loads in advance!
Nak.