Code: Select all
MsgBox, % xdoc2txt("d.doc")
MsgBox, % xdoc2txt("d.doc") ; <------- fail
xdoc2txt(fileName) {
fileText := 0
fileLength := DllCall("xd2txlib\ExtractText", "Str", fileName, "Int", False, "Int", &fileText)
Return, StrGet( NumGet(fileText), fileLength )
}
Download: xd2txlib test.7z | xdoc2txt 2.00 ( xd2tx200.zip )
Thanks.