Forwarded from the TEA mailing list...

-----Original Message-----
From: David Gravereaux [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 07, 2000 2:38 PM
To: TEA mailing list
Subject: RFC: Standardized method for bootstraping a Stubs application
(draft)


[I refer to windows filenames for simplicity, but the scope is for all
platforms]


-- What is a Stubs application?

  An .exe (or a .dll) that was compiled with USE_TCL_STUBS #defined and
linked
  with tclstubXX.lib instead of the import library tclXX.lib.  At run-time,
it
  will necessary to:

    #1) Discover where and which tclXX(d).dll to use.

    #2) LoadLibrary() it.

    #3) Grab the location of Tcl_CreateInterp from the export table with
        GetProcAddress().

    #4) Create an interp using that function pointer.

    #5) Tcl_InitStubs() the interp* to set the local tclStubsPtr value.



This draft concerns step #1.  Pseudo logic proposed is the following:

A) Check for the existence of a TCL_SHLIB environment variable.  If it
exists,
it will contain either:

        [1] a fully qualified path to a tclXX(d).dll to try (versioning rules
            will NOT apply until Tcl_StubsInit)
        or [2] a path to where a suitable tclXX(d).dll can be found (versioning
            rules for sorting apply).  Jump to version testing of the filenames
            available there that match the mask "tcl*.dll".

B) Check in the same directory as the .exe.  Jump to version testing of the
filenames available there that match the mask "tcl*.dll".

C) On windows, read the registry key HKLM\Software\BSD\Tcl for sub keys.
This a
new departure from HKLM\Software\Scriptics\Tcl that currently is what our
installer is doing.  Versioning rules apply to both the sub-keys (ie 8.2,
8.6,
etc..).  Jump to version testing of the filenames available there.



Please add your comments to complete step #1 :)
--
  David Gravereaux <[EMAIL PROTECTED]>      Yet Another Tcl Guy
  Sustaining Engineer (Tech Support)                  Ajuba Solutions
  (650) 230-4079

  [S.R introducing me to Eva]:
      "Dave is our tech in tech support."
  [me]:
      "So, i'm kinda of like the DOT in .com, huh?"

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to