27.3.2.3.1 GetPath

 

Get the relative WebAccess built-in system path according specific mode.

 

Syntax

viewdll.dll

int VD_API VdGetBroadWinPath(int mode, char *path);

Bwdllobj

Public Function GetPath(mode As Integer) As String

C#

String GetPath(Integer mode);

 

Parameters

Mode

[in] Mode 0 indicate the WebAccess main programs installed path.

 

Return Value

Type: String

Return the relative WebAccess built-in system path according correct mode specified. Empty string indicate that specific mode is not supported.

 

Remarks

User may change the installation path during the installation process. Therefore, user should use GetPath() function to make sure the WebAccess installed path to avoid possible problem when running user program on different platform.

 

C# Sample Code

private void btnGetPath_Click(object sender, EventArgs e)

{

    int mode;

    if (!int.TryParse(tbMode.Text, out mode))

    {

        MessageLog("Please input a valid mode number.");

        return;

    }

    tbGetPath.Text = ViewDllWrap.GetPath(mode);

}