[racket] MzCOM

From: murat demirtas (heraklea at gmx.de)
Date: Wed Aug 15 11:01:43 EDT 2012

Ok I try your suggestion: In drRacket I make this:

(require ffi/com)
(define MZCOM (com-create-instance "MzCOM.MzObj"))
(com-invoke MZCOM "eval" 
             (format "~s"
                       (lambda ()
                          (print "hello")))))

This gives me an output like exactly this:"\"\\\"hello\\\"\""

When I create an Com-Object in C++ and eval the expression:
(format "~s" '(with-output-to-string (lambda () (print "hello"))))
I get this: "(with-output-to-string (lambda () (print \"hello\")))"

This is the same output when I eval the expression with my in Drracket created Com-Object:(eval (format "~s" '(with-output-to-string (lambda () (print "hello")))))

So in my opinion the eval method from the Com-Objects created in Drracket and the Com-Object created in c++ have different outputs? Or is it not different ?


Posted on the users mailing list.