If both programs are yours then I would suggest using external program as ActiveX EXE, you can then create an instance of your ActiveX EXE, pass paramters and get the result back..