tag:blogger.com,1999:blog-20155610.post7164688907399467365..comments2024-03-06T02:46:19.929+00:00Comments on Translation Tribulations: Fun with the memoQ 6 Client API!Kevin Lossnerhttp://www.blogger.com/profile/14727800526216764023noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-20155610.post-62815507428056527032015-09-11T10:03:08.107+01:002015-09-11T10:03:08.107+01:00For the record...
Kilgray support replied that the...For the record...<br />Kilgray support replied that they "have managed to find the root cause of the JScript problem, and fixed our client API. The next version of the memoQ client will contain the modified API dll."<br /><br />For the VBScript problem there is "workaround" in using different construct for the array variable:<br /><br />Dim Files(1)<br />Files(0) = "D:\test\foo.mqxlz"<br />Files(1) = "D:\test\bar.mqxlz"<br />...<br />Set result = service.GetStatusReport(Files)<br /><br />This works as well:<br />Set result = service.GetStatusReport(Array("D:\test\foo.mqxlz", "D:\test\bar.mqxlz"))<br /><br />They still have to investigate why the following construct doesn't work:<br />Files = Array("D:\test\foo.mqxlz", "D:\test\bar.mqxlz")<br />Set result = service.GetStatusReport(Files)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-20155610.post-69021238254363063912015-08-28T22:17:44.185+01:002015-08-28T22:17:44.185+01:00Well, if you know the backstory to this one, it...Well, if you know the backstory to this one, it's almost forgivable. Kilgray never wanted to make a client API, but it was required for that EU tender a few years ago, and its scope is tailored to that of the tender requirements at the time. However, now that it exists, I think it is worth improving, expanding and making available for the TP edition for reasons that are fairly obvious I think. Start campaigning and maybe in a few years we'll see a result....Kevin Lossnerhttps://www.blogger.com/profile/14727800526216764023noreply@blogger.comtag:blogger.com,1999:blog-20155610.post-74731933364483582562015-08-28T21:33:17.541+01:002015-08-28T21:33:17.541+01:00Yes, I have contacted support, but they have not r...Yes, I have contacted support, but they have not replied yet... and god knows how long it will take them to reply.<br />Regarding the documentation - that's the point, I've been through the doc completely, but as I said, it's so freaking .NET-ish that for us oldschool batch scripting guys it's totally useless. All those classes and interfaces and sh*t... it's all Greek to me :(<br />Just look in %ProgramData%\MemoQ\SDK\ and see for yourself...<br /><br />Another thing I contacted support with is that the COM API doesn't work in JScript :(<br />Even the example code from the memoQ.ClientService.Guide PDF converted to JScript doesn't work...<br />It shows exactly the same symptoms as this guy describes: http://stackoverflow.com/questions/3712005/why-is-this-c-sharp-com-class-usable-from-vbscript-but-not-jscript<br />But unlike him, we can't make change to the MemoQ source code, so we are screwed...<br /><br />It all looks to me that the Kilgray devs did a VERY poor job here...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-20155610.post-88670780705419585832015-08-28T20:41:13.601+01:002015-08-28T20:41:13.601+01:00Haven't look at this stuff in a while so I'...Haven't look at this stuff in a while so I'm a bit rusty. With the new scripting features of memoQ 2015 some of what I used to do with this API is no longer necessary. Have you contacted Support? Rattling the cage a bit over the API documentation and examples is not a bad idea, as they do need attention.....Kevin Lossnerhttps://www.blogger.com/profile/14727800526216764023noreply@blogger.comtag:blogger.com,1999:blog-20155610.post-7146109461525963532015-08-28T20:22:00.139+01:002015-08-28T20:22:00.139+01:00I realize this is pretty old post, but I'm pre...I realize this is pretty old post, but I'm pretty desperate...<br />I'm experimenting with MemoQ 2015 client API and I'm stuggling with using methods requiring "array of strings" as parameter, e.g. the "sourceFiles" parameter for GetStatusReport or Analyze methods.<br />I simply don't understand how should this parameter look like... :(<br />Standard VBScript array (e.g. Files = Array ("C:\foo\bar.mqxlz") ) doesn't work.<br />Simple string (Files = "C:\foo\bar.mqxlz") doesn't work either...<br />I always get Microsoft VBScript runtime error: Invalid procedure call or argument: 'GetStatusReport'<br /><br />The client API documentation is useless, it's apparently written for .NET developers... it seems to me that Kilgray developers didn't test the COM scripting in real life scenarios at all :(Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-20155610.post-4758397356551754712014-05-20T14:18:22.784+01:002014-05-20T14:18:22.784+01:00Hi, How did you manage to register the dll? I trie...Hi, How did you manage to register the dll? I tried regasm.exe, which seemed succesful, but then again, I receive an error "Can't add reference to the specified dll". Thanks in advance,budapest-apartment-vacation-rentalhttps://www.blogger.com/profile/01301032048953016617noreply@blogger.com