1

I am trying to automate the sending keystrokes to a mainframe application which is being connected using PCOMM iSeries emulator. I am not sure on what I am doing wrong here, as the same code works on a different machine. Below are the configurations,

Working Machine : Windows 10 64 bit, Office 32-Bit

Error Machine : Windows 7 64 bit, Office 64-Bit

Below is the code

On Error Resume Next

Set autECLWinObj = CreateObject("PCOMM.autECLConnList")

Set IA = CreateObject("PCOMM.autECLOIA")
Set PS = CreateObject("PCOMM.autECLPS")

PS.SetConnectionByName (Client)
IA.SetConnectionByName (Client)
autECLWinObj.SetConnectionByName (Client)

Please help, i am new to this and stuck .

P.S : Kindly don't duplicate the question as there are none specific to PCOMM.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Pulkit Shah
  • 81
  • 1
  • 10
  • I'm quite sure this needs a lot more information. Have you tried in other machines with similar setup? Has it worked earlier? Isn't there really any actual error anywhere? – James Z Aug 14 '17 at 14:21
  • Hi @JamesZ, no i wasn't unable to try on other machine with the same configuration. The error is in the line where `Set autECLWinObj = CreateObject("PCOMM.autECLConnList")` would be having **nothing**. Please let me know if you need more inputs. – Pulkit Shah Aug 14 '17 at 14:30
  • well if it works on one version of windows and not another, its a configuration issue of some sort. – SaggingRufus Aug 14 '17 at 16:01

3 Answers3

1

Changed MS Office 64 to MS Office 32 and it worked.

Pulkit Shah
  • 81
  • 1
  • 10
0

PCOMM only provides 32-bit dlls for the automation objects, so those can not be used from a 64-bit process (like 64-bit office).

See also this IBM support entry.

piet.t
  • 11,718
  • 21
  • 43
  • 52
0

You must upgrade you IBM Personal Communications to the new Version 14 (64 bits) since may 2019