I'm confused. Isn't ComObjDll designed for creating COM Object from a unregistered COM dll?
But below script prompt "0x8002801D - Library not registered" error message.
Code: Select all
hModule := DllCall("LoadLibrary", "Str", "xd2txcom.dll")
obj := ComObjDll(hModule, "{4ECE8E8A-BCC2-4709-BCAE-264210DF321B}") ; Have tried "xd2txcom.Xdoc2txt.1" and "xd2txcom.Xdoc2txt" too.
fileText := obj.ExtractText("sample.doc", False)
MsgBox % fileText
Code: Select all
Set obj = CreateObject("xd2txcom.Xdoc2txt.1")
Dim fileText
fileText = obj.ExtractText("sample.doc",False)
MsgBox fileText