Board index » delphi » Multiple use of single instance accross multiple machines
Erik Tamminga
![]() Delphi Developer |
Mon, 08 Apr 2002 03:00:00 GMT
|
Erik Tamminga
![]() Delphi Developer |
Mon, 08 Apr 2002 03:00:00 GMT
Multiple use of single instance accross multiple machines
Hello,
If you don't mind me asking: Is there a way to have one instance of a COM object to be used by multiple My programming environments are Borland Delphi 4 (and VB6) Erik Tamminga |
Nicholas Robinso
![]() Delphi Developer |
Mon, 08 Apr 2002 03:00:00 GMT
Re:Multiple use of single instance accross multiple machinesHi Erik, Do you really mean can you create a singleton COM object? If so then the The long and short of it is that yes you can create a singleton - how you do 1. Override IClassFactory to return the same instance pointer (*not so good) *If you override CreateInstance in the IClassFactory, to return the same Nick. QuoteErik Tamminga <etammi...@starren.nl> wrote in message Quote> Hello, |
Erik Tamming
![]() Delphi Developer |
Mon, 08 Apr 2002 03:00:00 GMT
Re:Multiple use of single instance accross multiple machinesIsn't there a COM way to implement the way MS Word works. When using word, you can say: // Create a word object and later on for example in a VB Application say Set Word = GetObject(, "Word.Application") This returns a pointer to the same instance of word as created in the first Erik QuoteNicholas Robinson <NicholasRobin...@yahoo.co.uk> wrote in message Quote> Hi Erik, |
Nicholas Robinso
![]() Delphi Developer |
Mon, 08 Apr 2002 03:00:00 GMT
Re:Multiple use of single instance accross multiple machinesErik, That does work, but remember it is only for the same machine. It simply Just a thought.... Nick. QuoteErik Tamminga <etammi...@starren.nl> wrote in message Quote> Isn't there a COM way to implement the way MS Word works. |
1. multiple BDE on single machine?
3. Automation Server: Multiple-Single Instance
4. Single or multiple instances of localserver ?
5. multiple transaction using single TDatabase Component
6. file handling accross multiple forms
7. Using multiple application instances
8. Using Multiple Tables on multiple forms