{"size": 2833, "ext": "scrbl", "max_stars_repo_path": "scribblings/overview.scrbl", "max_stars_repo_name": "LiberalArtist/mysterx", "max_stars_repo_stars_event_min_datetime": "2018-07-29T04:13:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T16:11:17.000Z", "max_issues_repo_path": "scribblings/overview.scrbl", "max_issues_repo_name": "LiberalArtist/mysterx", "max_issues_repo_issues_event_min_datetime": "2017-08-25T20:26:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T17:48:40.000Z", "max_forks_repo_path": "scribblings/overview.scrbl", "max_forks_repo_name": "LiberalArtist/mysterx", "max_forks_repo_forks_event_min_datetime": "2017-06-08T20:38:42.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-09T05:02:52.000Z"}
{"max_stars_count": 10, "max_issues_count": 15, "max_forks_count": 2, "avg_line_length": 32.5632183908, "max_line_length": 77, "alphanum_fraction": 0.6978468055}
#lang scribble/doc
@(require "common.rkt")

@title[#:tag "overview"]{Overview}

@section{Installation}

MysterX requires Internet Explorer (IE) 4 or later to be installed.
Distributed COM (DCOM) for your version of Windows is also required.
Recent versions of Windows come with DCOM; DCOM packages for Windows
95 and 98 are made available separately.

Two Windows DLLs support low-level operations in MysterX:
@filepath{myspage.dll} and @filepath{myssink.dll}.  Both are installed
in the registry (using @exec{regsvr32.exe}) when @exec{raco setup} runs the
MysterX post-installer. If you move the location of your Racket
installation, you may need to re-run @exec{raco setup} to make MysterX
work. Neither of these DLLs is specific to a Racket version, so
it's ok for one version of Racket to use the DLLs registered by
another.

@margin-note{Prior to version 369.4, @filepath{myssink.dll} was
version-specific. Its GUID was changed when it was made
version-independent.}

If you build a stand-alone executable that uses MysterX, you need to
specifically include @filepath{myspage.dll} and @filepath{myssink.dll}
with your distribution, and the DLLs will need to be registered on the
end user's machine. One way to do that is to include the following
little setup program (as an executable) in your distribution:

@racketblock[
  (module setup scheme/base
    (require mzlib/runtime-path
             mzlib/process)

    (code:comment @#,t{Ensure that DLLs are included with the distribution:})
    (define-runtime-path myspage-dll '(so "myspage"))
    (define-runtime-path myssink-dll '(so "myssink"))

    (code:comment @#,t{Register the DLLs:})
    (define regsvr32 
      (path->string (find-executable-path "regsvr32.exe" #f)))
    (system* regsvr32 (path->string myspage-dll))
    (system* regsvr32 (path->string myssink-dll)))
]

@; ----------------------------------------------------------------------

@section{Running a Demo}

Try 

@racketblock[
  (require mysterx/mxdemo)
]

The demo requires the MSCal Calendar control.  The calendar control is
normally installed with Microsoft Office, but it can also be
downloaded from elsewhere; look for @filepath{mscal.ocx}.

@; ----------------------------------------------------------------------

@section{Loading}

Load the MysterX module with 

@racketblock[
  (require mysterx)
]

Because some MysterX code relies on the @racketmodname[scheme/class]
class system, you may also need

@racketblock[
  (require mzlib/class)
]

Several MysterX procedures take HTML strings as input.  The
@racketmodname[xml] library provides procedures that convert Racket
syntax into XML strings.  You may find using these procedures useful
in creating HTML strings for use by MysterX.

@; ----------------------------------------------------------------------

@include-section["dcom.scrbl"]
