Page 1 of 1

PCOMM is not responding to calls from VBA.

PostPosted: Tue Apr 30, 2013 8:39 pm
by PuddinPie
Hello I have some VBA coding that works fine in XP but in Win 7 it does not work. It's happening after the PCOMM window object call which opens a mainframes window but fails when waiting for ready.

Set autECLPSObj = CreateObject("PCOMM.autECLPS")
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
Set objECLConnMgr = CreateObject("PCOMM.autECLConnMgr")
Set autECLOIAObj = CreateObject("PCOMM.autECLOIA")
autECLOIAObj.SetConnectionByName ("T")
objECLConnMgr.StartConnection ("Profile=C:\EU_APP\CLCAPSummary\CLCAPSummary ConnName=T WinState=Min")
autECLPSObj.SetConnectionByName ("T")

autECLConnList.Refresh

' Checks to see if a mainframe window is open.
Do While strReadyResault = 0
If autECLPSObj.Started = False Then
  WaitTime (2)
Else
    If autECLPSObj.Ready Then
    strReadyResault = 1
    WaitTime (1)
    Else
        WaitTime (2)
    End If
End If

Loop

' Access's CICS and checkes that its on the correct screen.
autECLOIAObj.WaitForInputReady
autECLPSObj.SetCursorPos 22, 2
autECLPSObj.SendKeys "CICS"
autECLOIAObj.WaitForInputReady
autECLPSObj.SendKeys "[enter]"
autECLOIAObj.WaitForInputReady


It stops at
autECLOIAObj.WaitForInputReady


If I REM that out and let it continue it set the cursor position but then stops again at
autECLPSObj.SendKeys "CICS"
.

Any help would be greatly appreciated.

Thank you.

Re: PCOMM is not responding to calls from VBA.

PostPosted: Tue Apr 30, 2013 10:23 pm
by dick scherrer
Suggest you open an issue with PCOMM support.

Re: PCOMM is not responding to calls from VBA.

PostPosted: Wed May 01, 2013 6:06 pm
by Ed Goodman
Do you see the emulator start up? I'm trying to figure out if the object is actually being created.

Win 7 does some 'look aside' protection of programs, so the object may be manipulating something that the actual running program isn't using. More likely, you'll need a new object definition for Win7.

Found this:
http://social.technet.microsoft.com/For ... 3dc0c53bc/

Re: PCOMM is not responding to calls from VBA.

PostPosted: Thu Jan 30, 2014 10:41 pm
by PuddinPie
This was actualy a version issue which has been resolved in 6.0.6

Re: PCOMM is not responding to calls from VBA.

PostPosted: Fri Jan 31, 2014 12:44 am
by dick scherrer
Thanks for the update - i'm sure others will have the same "opportunity" :)

d