g4c.gif (4296 bytes)
For Windows 95/98/Me/NT/2000/XP

 
gcLoad is a small executable that can be used to startup Gui4Cli or send command lines to a running instance of Gui4Cli. Because of its small size, its faster than loading scripts through Gui4Cli itself.

Download gcLoad - gcLoad.zip (included also in the main Gui4Cli distribution).
Download source code


What it does:

gcLoad can be given the exact same command line arguments as Gui4Cli:

  • It will parse the command line to see the name of the instance of Gui4Cli wanted and if that instance is running it will pass the command line to it with a WM_COPYDATA message.
  • If Gui4Cli is not running, it will find Gui4Cli.exe by looking in the Registry and start it up with the given command line.
  • If Gui4Cli is not found, it will present a dialog and allow the user to go to the Gui4Cli web site for downloading it.

Since this executable is much smaller than Gui4Cli, it will load much faster and therefore the whole operation of passing a command line to a running instance of Gui4Cli is done much faster.

Normal usage:

To use gcLoad, run the included installation gui. It will copy gcLoad.exe into the Gui4Cli directory and change the ".gui" and ".gc" registry entries to tell the Shell to run gcLoad instead of Gui4Cli.

Bundled usage:

gcLoad can also be included in a bundled "executable", instead of Gui4Cli, making it much smaller. To do this you must use a "Setup.bat" file to launch gcLoad.exe with the command line wanted. The following will, for example, launch the "aviMaker.gui"

gcLoad -instance #NEW aviMaker.gui -NOPREFS -NOICON

This method however, will not automatically clean the unpacked files when Gui4Cli quits, so you must do it yourself. This can be done in the xOnQuit routine:

xOnQuit
  // get path of the directory to delete..  
  path = $$this.path
  // make sure it isn't the current path..
  if $$g4c.dir = $path
    extract path path parent
    cd $parent
  endif
  // delete it, and everything inside it..
  delete $path yestoall
  // quit Gui4Cli
  quit

Home | Description | Download | Beta | Res | DLLs | Gui Galleria
© Dimitris Keletsekis - 2003