<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe RoboHelp 2019" />
<title>OpenApplication</title>
<link rel="StyleSheet" href="../../../ms_help.css" type="text/css" />
 <script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reDo;
}
onerror = null; 
//]]>
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
p.WebHelpNavBar { text-align:right; }
-->
</style>

<script type="text/javascript" src="../../../template/scripts/rh.min.js"></script>
<script type="text/javascript" src="../../../template/scripts/common.min.js"></script>
<script type="text/javascript" src="../../../template/scripts/topic.min.js"></script>
<script type="text/javascript" src="../../../template/scripts/constants.js"></script>
<script type="text/javascript" src="../../../template/scripts/utils.js"></script>
<script type="text/javascript" src="../../../template/scripts/mhutils.js"></script>
<script type="text/javascript" src="../../../template/scripts/mhlang.js"></script>
<script type="text/javascript" src="../../../template/scripts/mhver.js"></script>
<script type="text/javascript" src="../../../template/scripts/settings.js"></script>
<script type="text/javascript" src="../../../template/scripts/XmlJsReader.js"></script>
<script type="text/javascript" src="../../../template/scripts/loadparentdata.js"></script>
<script type="text/javascript" src="../../../template/scripts/loadscreen.js"></script>
<script type="text/javascript" src="../../../template/scripts/loadprojdata.js"></script>
<script type="text/javascript" src="../../../template/scripts/mhtopic.js"></script>
 <link rel="stylesheet" type="text/css" href="../../../template/styles/widgets.min.css">
 <link rel="stylesheet" type="text/css" href="../../../template/styles/topic.min.css">
<script type="text/javascript" >
gRootRelPath = "../../..";
gCommonRootRelPath = "../../..";
gTopicId = "5.2.2.0_2";
</script>
 <meta name="brsprev" value="sdk/component_object_model/function_reference/error_code.htm">
 <meta name="brsnext" value="sdk/component_object_model/function_reference/close_application.htm">
 <meta name="topic-breadcrumbs" content="C-WaveformGenerator SDKについて > Component Object Model > 関数リファレンス" />
</head>

<body>
<script type="text/javascript" src="../../../ehlpdhtm.js"></script>

<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P45RPFN" style="width: 0px; 
		 height: 0px; display: none; visibility: hidden;">
 <p>&#160;</p>
</iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<div><script type="text/javascript" language="javascript">//<![CDATA[
document.write("<p  style=\"text-align:left;\" class=\"breadcrumbs\">");
AddMasterBreadcrumbs("../../../c_waveformgenerator.htm", "breadcrumbs", " &gt; ", "ホーム", "../../../welcome/c_waveformgenerator.htm");
document.write("<a class=\"breadcrumbs\" href=\"../../welcome/c_waveformgenerator_sdk.htm\">C-WaveformGenerator SDKについて<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../component_object_model.htm\">Component Object Model<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"function_list.htm\">関数リファレンス<\/a>  &gt;  OpenApplication<\/p>");
//]]></script>
</div>

<h1 style="font-size: 18pt; font-family: メイリオ, monospace; color: 透明;">OpenApplication</h1>
<hr align="center" />
<h2 style="color: 透明;">機能</h2>
<p style="margin-left: 24px; color: 透明;">アプリを起動し、アクセスを可能にします。</p>
<h2 style="color: 透明;">書式</h2>
<p class="code" style="margin-left: 24px; color: 透明;">Ret = <span style="font-weight: bold;">OpenApplication</span> 
 (OpenMode, DeviceName, Arg1)</p>
<h2 style="color: 透明;">引数</h2>
<p style="margin-left: 24px; margin-bottom: 0pt; color: 透明;"><span style="font-weight: bold;">OpenMode</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET:  Short ] </span><span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++:  short ]&#160;</span><span style="font-size: 13.3333px; 
													 font-variant-ligatures: normal; 
													 font-variant-caps: normal; 
													 orphans: 2; widows: 2; 
													 -webkit-text-stroke-width: 0px; 
													 background-color: #ffffff; 
													 text-decoration-thickness: initial; 
													 text-decoration-style: initial; 
													 text-decoration-color: initial;">[ 
 C#:  short ]</span><span style="font-size: 13.3333px; font-variant-ligatures: normal; 
						 font-variant-caps: normal; orphans: 2; widows: 2; 
						 -webkit-text-stroke-width: 0px; background-color: #ffffff; 
						 text-decoration-thickness: initial; text-decoration-style: initial; 
						 text-decoration-color: initial; display: inline	 ! important ; 
						 float: none;"> </span></p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt; color: 透明;">画面の起動状況を指定します。</p>
<table style=" margin-top:14px; margin-left:24px; width:100%; max-width:600px;">
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col />
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px; color: #ffffff;">値</p>
		<p style="margin-top: 0px; margin-bottom: 0px; color: #ffffff;">[Dec]</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">マクロ</font></p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">内容</font></p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">0</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_WINDOW_OFF</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">最小化</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">1</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_WINDOW_NORMAL</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">各アプリの通常サイズ</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">2</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_WINDOW_MAX</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">最大化</p></td>
	</tr>
</table>
<p style="margin-left: 24px; margin-bottom: 0pt; color: 透明;"><span style="font-weight: bold;">DeviceName</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET:  String&#160;] </span>[ 
 C++: BSTR ] <span style="font-size: 13.3333px; font-variant-ligatures: normal; 
					 font-variant-caps: normal; orphans: 2; widows: 2; 
					 -webkit-text-stroke-width: 0px; background-color: #ffffff; 
					 text-decoration-thickness: initial; text-decoration-style: initial; 
					 text-decoration-color: initial;">[ C#:  string]</span> 
 </p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt; color: 透明;">デバイス名を指定します。</p>
<p style="margin-left: 24px; margin-bottom: 0pt; color: 透明;"><span style="font-weight: bold;">Arg1</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET: String &#160;] </span>[ 
 C++: BSTR ]<span style="font-size: 13.3333px; font-variant-ligatures: normal; 
					 font-variant-caps: normal; orphans: 2; widows: 2; 
					 -webkit-text-stroke-width: 0px; background-color: #ffffff; 
					 text-decoration-thickness: initial; text-decoration-style: initial; 
					 text-decoration-color: initial;">&#160;[ C#:  string]</span></p>
<p style="margin-left: 24px; margin-bottom: 0pt; margin-top: 0pt; color: 透明;">&quot;&quot;固定とします。（予約）</p>
<h2 style="color: 透明;">戻り値</h2>
<p style="margin-bottom: 0; margin-left: 24px; color: 透明;"><span style="font-size: 13.3333px; 
	 font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; 
	 widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; font-weight: bold;">Ret</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial;">[ VB.NET:  Integer ]</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++:  long ] </span><span style="font-size: 13.3333px; 
												 font-variant-ligatures: normal; 
												 font-variant-caps: normal; 
												 orphans: 2; widows: 2; 
												 -webkit-text-stroke-width: 0px; 
												 background-color: #ffffff; 
												 text-decoration-thickness: initial; 
												 text-decoration-style: initial; 
												 text-decoration-color: initial;">[ 
 C#:  int ]</span><span style="font-size: 13.3333px; font-variant-ligatures: normal; 
						 font-variant-caps: normal; orphans: 2; widows: 2; 
						 -webkit-text-stroke-width: 0px; background-color: #ffffff; 
						 text-decoration-thickness: initial; text-decoration-style: initial; 
						 text-decoration-color: initial; display: inline	 ! important ; 
						 float: none;">&#160;</span></p>
<table style="margin-top: 14px; margin-left: 24px;" width="95%">
	<tr>
		<td style="vertical-align: TOP; width: 15%;" bgcolor="#808080"><p 
			 style="text-align: center; margin-top: 0px; margin-bottom: 0px; 
			 color: #ffffff;">戻り値</p></td>
		<td style="vertical-align: TOP; width: 80%;" bgcolor="#808080"><p 
			 style="text-align: center; margin-top: 0px; margin-bottom: 0px; 
			 color: #ffffff;">内容</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p>0</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>正常終了</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p>102</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>他アプリケーションが該当アプリケーションを使用しているため、実行できません。</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p>10000</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>画面サイズの指定ができません。</p></td>
	</tr>
</table>
<p style="margin-left: 24px; color: 透明;">その他のエラー（参照：<a href="error_code.htm" 
														 style="color: 透明;">エラーコード一覧</a>）</p>
<h2 style="color: 透明;">説明</h2>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt; color: 透明;">アプリを起動し、アクセスを可能にします。</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt; color: 透明;">&#160;C-WaveformGeneratorがインストールされていない場合、この関数は使用できません。</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt; color: 透明;">デバイスの設定はC-WaveformGenerator 
 で対応しているデバイスを設定してください。</p>
<h2 style="color: 透明;">使用例</h2>
<p style="margin-left: 40px;">アプリの通常サイズでAIO000 を指定して起動します。</p>
<table style="margin-top: 14pt; margin-left: 24px;" cellspacing="0" width="90%">
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">VB.NET</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">Dim Ret As Integer</p>
		<p class="code" style="color: 透明;">Ret = c_fgen.OpenApplication(1, 
		 &quot;AIO000&quot;, &quot;&quot;)</p>
		<p class="code" style="color: 透明;">&#160;</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">C++</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">long Ret; </p>
		<p class="code" style="color: 透明;">ICWaveformGeneratorPtr c_fgen;</p>
		<p class="code" style="color: 透明;">Ret = c_fgen-&gt;OpenApplication(1, 
		 L&quot;AIO000&quot;, L&quot;&quot;);</p>
		<p class="code" style="color: 透明;">&#160;</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">C#</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">int Ret;</p>
		<p class="code" style="color: 透明;">Ret = c_fgen.OpenApplication(1, 
		 &quot;AIO000&quot;, &quot;&quot;);</p>
		<p class="code" style="color: 透明;">&#160;</p></td>
	</tr>
</table>
<h2 style="color: 透明;">関連項目</h2>
<p style="margin-left: 40px; color: 透明;"><a href="close_application.htm" 
											 style="color: 透明;">CloseApplication</a></p>
<p style="margin-left: 40px; color: 透明;">&#160;</p>
<p>&#160;</p>
<div style="width: 100%; position: relative;" id="footer">
	<hr align="center" />
	<p>当サイトでは、お客様の利便性向上のために、Cookieを使用しています。<a href="https://www.contec.com/jp/privacy#anc-01">詳細はこちら。</a></p>
</div>
</body>
</html>
