invoke-dispatch-method exception
Hello,following snippet being loaded to freshly started LispWorks 6.1 Professional causes exception which from my current understanding is not what expected. My OS is Windows 7 x64.
I hope to get something meaningful from the last line of script. I want object corresponding to DOM element at best :-)
(please, ignore TRUE/FALSE errors for the moment)
Any help will be appreciated!
(in-package "CL-USER")
(require "com")
(require "embed")
(COM:CO-INITIALIZE)
(setq pane (make-instance 'capi:ole-control-pane :component-name "Shell.Explorer" :visible-border t))
(capi:contain pane)
(setq disp (capi:ole-control-i-dispatch pane))
(com:invoke-dispatch-method disp "Navigate" "http://www.google.com")
(com:use-type-library "c:/Windows/System32/mshtml.tlb")
(setq doc (com:invoke-dispatch-get-property disp "Document"))
(setq html3 (com:query-interface doc 'I-H-T-M-L-DOCUMENT-3))
(com:invoke-dispatch-method html3 "getElementById" "gbqfq")
Yakov Zaytsev
+7 921 343 4327 (Russia)