[fpc-pascal] File Association and opening with already running app
    Graeme Geldenhuys 
    graeme at geldenhuys.co.uk
       
    Thu Apr  4 12:39:49 CEST 2013
    
    
  
On 2013-04-04 10:45, Mark Morgan Lloyd wrote:
> 
> So far I've had no success porting that to Windows using named pipes,
Ah, thanks for the idea. SimpleIPC should be able to do the trick -
similar to how apps communicate to a DebugServer (using dbugintf and
SimpleIPC units).
First instance will search for a known IPC server, if none exist, start
the Simple IPC server. Second instance will first see if a existing IPC
server exists, and if so, send the open command to it, then quit.
That should work in a cross-platform way too.
Regards,
  - Graeme -
-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
    
    
More information about the fpc-pascal
mailing list