It seems there are two HLLAPI connections in your case. One is from bzhao.Connect method in your script, which is COM interface, another is from your .exe application the Run method launches. Are you saying the second is also COM interface? As "
Unable to attach to Emulator application" isn't the error information from BlueZone, could you share your code piece in the .exe application? so that it will be clear which one interface. In particular, if it's HLLAPI interface, can you check if your application loads whlapi32.dll in 10.1 install directory? If it's COM, can you re-add reference that points to 10.1 bzwhll.dll to your application?
By the way, it looks that the first connection has nothing to do with the second, so not sure why your above script doesn't call Run method directly.
------------------------------
Zhi Li
Rocket Software
------------------------------
Original Message:
Sent: 05-13-2021 11:31
From: Kristi Robinson
Subject: Error: Unable to attach to Emulator application
I believe it's COM, as I saw an error on my v6.1.9 when I didn't have the correct mainframe screen opened, it was a COM error.
Kristi Robinson
Technology Consultant
Original Message:
Sent: 5/13/2021 11:19:00 AM
From: Mike Jones
Subject: RE: Error: Unable to attach to Emulator application
Do you know if the exe application uses COM or HLLAPI to interface with the emulator?
------------------------------
Mike Jones
Rocket Software
Original Message:
Sent: 05-13-2021 10:11
From: Kristi Robinson
Subject: Error: Unable to attach to Emulator application
Yes "Allow Multiple Simultaneous Connections" is checked "on" in Options > API
Thank you,
Kristi Robinson
Technology Consultant
Original Message:
Sent: 5/13/2021 9:56:00 AM
From: Mike Jones
Subject: RE: Error: Unable to attach to Emulator application
Is the option "Allow Multiple Simultaneous Connections" enabled in your config? It's found in the API Properties dialog (Options::API from the menu).
------------------------------
Mike Jones
Rocket Software
Original Message:
Sent: 05-13-2021 09:24
From: Kristi Robinson
Subject: Error: Unable to attach to Emulator application
I was so hopeful that whitelisting the application would be the solution. Unfortunately, it has not allowed the application to "find" the emulator.
I whitelisted the application and tested, not fixed. I edited the global.ini in v10.1 to match that in v6.1.9, not fixed. Also, the global.ini in v6.1.9 does not have a Security section, no applications whitelisted....but I tried that anyway – no fix.
I'm going to extract the .exe application file today and see if there is anything that is pointing to "BlueZone" vs "Rocket" emulator.
Thank you for the suggestions, and if you think of something, please let me know.
Kristi Robinson
Technology Consultant
Original Message:
Sent: 5/12/2021 4:00:00 PM
From: Mike Jones
Subject: RE: Error: Unable to attach to Emulator application
I'm not sure if you meant bzhao.Run vs just Run. If the BBS script is using "bzhao.Run" then the program needs to be whitelisted in the global.ini [Security] section. Compare your v6.1 global.ini to the v10.1 global.ini found in their respective installation directories.
------------------------------
Mike Jones
Rocket Software
Original Message:
Sent: 05-12-2021 11:52
From: Kristi Robinson
Subject: Error: Unable to attach to Emulator application
Thank you for your response:
We were able to run this .bbs macro to launch the .exe file using O365 x64 bit prior to our upgrade. It is a BlueZone Basic Script – and I have registered the .dll for BZBasic.dll.
So, O365 x64 bit prior to upgrade was working. Both versions of Emulator are 32-bit.
We were running BZ v6.1.9 32-bit – and upgraded to TE v10.1 32-bit.
The .exe launches a program to copy paste certain text from the Emulator into some Word Docs, for printing and mailing out.
Kristi Robinson
Technology Consultant
This message and accompanying documents are covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and contain information intended for the specified individual(s) only. This information is confidential. If you are not the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, copying or the taking of any action based on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the original message
Original Message:
Sent: 5/12/2021 11:39:00 AM
From: Son Pham
Subject: RE: Error: Unable to attach to Emulator application
Hi Kristi,
I haven't seen this error myself but I do have some additional questions for you.
Is this a VBA macro? If yes, what bitness of Microsoft Office were you running against BluZone v6.1.9? After upgrading to Rocket TE v10.1, did you install the 32-bit version or 64-bit version?
In this line, Run "C:\<pathc to executable file>.exe", are you trying to launch / open a Rocket TE session?
Thanks,
Son
------------------------------
Son Pham
Senior Support Engineer
Rocket Software
Original Message:
Sent: 05-12-2021 09:36
From: Kristi Robinson
Subject: Error: Unable to attach to Emulator application
We upgraded from BlueZone v6.1.9 to Rocket Terminal Emulator v10.1 - using old script below and getting error: Unable to attach to Emulator application
Wondering if anyone has seen this before and can offer any assistance.
Script:
Sub Main
set bzhao = CreateObject("BZWhll.WhllObj")
bzhao.Connect "A"
Run "C:\<pathc to executable file>.exe"
End Sub
------------------------------
Kristi Robinson
Technology Support Consultant
------------------------------