I need to save an application handle to a file in visual basic and then load/read it later. Just as an example, consider the following VB lines in which the server is Matlab:
Dim Mathandle As Object
Mathandle = CreateObject("matlab.application")
I would like to save Mathandle to a file so that another vb script might load/read and use it later. I would appreciate a sample code for this purpose.