AnsweredAssumed Answered

How to start MGC BCD CMD shell from inside Xpedition

Question asked by peter_festesen on Oct 1, 2019
Latest reply on Oct 23, 2019 by s.t.

Hi - I have the need to be able to start a MGC version specific shell (the MGC BCD CMD or MGC EBS CMD (for EEVX.2.6)) from an efm that is triggered from Xpeditition. 

 

My test case is as follows (in case you have other ideas to solve this) 

I have multiple versions of EEVX registered simultaneously (Currently VX.2.4/2.5/2.6) 

 

When I start a vba-based xls file (as the DisplayControl.xls in the Mentor-provided examples) - it tries to connect to a running instance of Xpedition, but fails if I work in VX.2.4 and VX.2.6 is the default (last registered) version. 

 

So I want to make sure that Excel connects to the correct Xpedition session. 

The xls uses 

GetObject(, "MGCPCB.Application")

 

and my thinking is that I should just call it with the proper ProgId, so 

GetObject(, "MGCPCB.Application.76") for VX.2.5 (which I have found to work). 

 

I can call the xls as it is done in the AATK, but I cannot for my life figure out how to start the  VX-specific shell from the .efm. 

 

The AATK uses 

filename = FindFileInWdir("vbs\excel\DisplayCoNtrol.xls" )
Dim sh
Set sh = CreateObject("Shell.Application")
Dim exestring
sh.ShellExecute "excel.exe", fileName
Set sh = Nothing

 

Which gives me a standard Windows shell. 

 

I am looking forward to your feedback ;-) 

 

All the best,

Peter 

Outcomes