[plt-scheme] Using mzCOM in VB

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Mar 2 07:37:25 EST 2006

At Tue, 21 Feb 2006 13:36:57 -0700, ndpmcintosh at mac.com wrote:
> Can someone point me to a
> good explanation (preferable step-by-step) of how to call a Scheme file and
> pass it a variable all from within a VB program and have the output of the
> Scheme program display in a text box in VB?


I know very little about either MzCOM or VB, so I'm reduced to reading
the MzCOM documentation and trying to find out where it might be
improved. Let's take it from the top...

The MzCOM docs say:

  In the Visual BASIC 6 environment, from the menu 
  Project|References (VB6), check "MzCOM 1.0 Type Library".  
  In Visual BASIC .NET, choose Project|Add Reference,
  and from the COM tab, select "MzCOM 1.0 Type Library".
  In your code, declare a variable, then assign to it:

    DIM schemeObject AS MzObj
    SET schemeObject = NEW MzObj

Does this much work? If so, are you able to call one of the three
methods About(), Eval(), or Reset()?


Posted on the users mailing list.