Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with DLL Instancing 1

Status
Not open for further replies.
Oct 21, 2002
22
US
Hi peeps,

I have a DLL I created in VFP 9.0 SP2. I added some public properties that I would like to be able to monitor/adjust from a VFP form that resides in the Systray. My question is how do I insure that they app in the systray is accessing the same instance of the DLL that may be called by other apps? These are all on the same local machine.

Right now I can load the monitor app and monitor/adjust the properties, however when I run an app that actually uses the DLL for its intended purpose it seems that it is another instance of the DLL rather than the first one loaded with the applet.

I am compiling the DLL as a mtdll and have the server instancing (Project Info - Server tab) set to Multi Use.

Any help would be most appreciated.
 
Multi Use does reuse the object instance, but each instance nevertheless has it's own Appartment if you compile as multi threadedd DLL, so each instance has it's own set of Properties.

Bye, Olaf.
 
Thanks Olaf. I figured out what I needed was an EXE server. Compiling that way and using CREATEOBJECT() and GETOBJECT() allowed me to get done what I needed.

Gwen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top