we have a lot of small Visual Basic programs created for Expedition PCB. These are stand alone *.exe programs which connect to the running Expedition application with GetObject(, "MGCPCB.ExpeditionPCBApplication"). They are used e.g. for creating Gerber data or bill of material.
My problem is now: If more than one Expedition application is running, I can't affect the connection.
It always connects to the first running Expedition application. You go mad if you forgot to close the first starting Expedition and you're still working in another 'second' Expedition application. You run the Basic program, but you don't get results from your 'second' application where you are working on.