構文
BSTR GetCurrentVersion();
アプリケーションのバージョンを取得します。
戻り値
バージョン文字列を返します。
使用例
// C++ sample // 間取りアプリケーションへ接続 CMadoriApp * m_MadoriApp= new CMadoriApp(); CLSIDFromProgID (L"MyHomeDesignerMadori.MadoriApp", &clsid); GetActiveObject (clsid, NULL, &pUnk); pUnk->QueryInterface (IID_IDispatch, (void**)(&pDisp)); m_MadoriApp->AttachDispatch (pDisp); // バージョン情報取得 CString strVer = m_MadoriApp->GetCurrentVersion();
// JavaScript sample var app = new CMadoriApp(); var version = app.GetCurrentVersion(); alert(version);