SetStoragePath 

Syntax:             void SetStoragePath (LPCTSTR sPath);

Return Value:    None.

Parameter:        sPath           Pointer to a string that specifies the absolute storage path value.If NULL removes all connections of ELS-QB component.

Remarks:

This method sets the directory path of ELS-QB component storage for the instance of QB-object.

Example:

This sample code shows how may be used  SetStoragePath() and GetStoragePath() methods in ELS_QBDemo project during  aNew project creation.

void CELS_QBDemoView::OnFileNew()

{

// This will open New Project dialog and

// then, if Okayed, will create a new project.

CNewProjectDlg dlg;

if (dlg.DoModal() == IDOK)

{

      if(!CloseCurrentProject())

      {

            AfxMessageBox(IDS_NEW_PROJECT_CANCELED,MB_ICONWARNING);

            return;

      }

      if(m_QBCtrl.GetStoragePath() != _T(“”))

m_QBCtrl.SetStoragePath(NULL);

      GetParentFrame()->ActivateFrame();

      if(CreateProject(dlg.m_strDirLocation,dlg.m_strProjectName, dlg.m_strStoragePath))

            m_QBCtrl.SetStoragePath(dlg.m_strStoragePath);

}          

}