Start OI via StartOI using Visual Basic (OpenInsight 32-bit Specific)
At 17 MAY 2005 01:46:49PM Ray Chan wrote:
To all,
We are calling StartOI from a VB program. However, it isn't working, i.e., OI doesn't start.
We protyped RDKINSTP as:
Public Declare Function StartOI Lib "c:\Work\Single User\Oinsight\Develop\RDKINSTP.dll" (ByVal RSHwnd As Long, ByVal RSApp As String, ByVal RSLoc As String, ByVal RSUser As String, ByVal RSPassword As String) As Boolean
Below is our VB test code to start OI:
Function Update_openinsight()
Dim hInstallWindow As LongChDir ("c:\Work\Single User\Oinsight")a=StartOI(hInstallWindow, "SYMMETRY", "c:\Work\Single user\Oinsight\dEVELOP", "SYMMETRY", ")MsgBox (a)End Function
* end of code ***
Any comments/suggestions would be welcome,
Ray Chan
At 18 MAY 2005 08:46AM Colin Rule wrote:
We have a VB exe (with form being the splash screen) with the following code, to launch an OI app.
Private Sub Form_Load()
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2Me.ShowDoEventsShell "OINSIGHT /ap=icepac /un=ripac"EndEnd Sub