OROS社 OR30シリーズ技術サポート
NVGS_GetComment
Declaration
C++: int NVGS_GetComment(LPTSTR lpszComment);
VB : Function NVGS_GetComment (ByVal lpszComment As String) As Long
Description
コメントを取得します
Parameters
lpszComment :
Return value
成功した場合、0、そうでなければ –1
Examples
Visual C++:
#include "EntryPoint.h” char szComment[_MAX_PATH]; if (NVGS_GetComment(szComment) == -1 ) { return -1; } else { printf (”信号コメント : %s”, szComment); }
Visual Basic
Dim MyComment As String Dim ret As Integer Dim ret2 As Integer ret = NVGS_GetComment(MyComment) If (ret = -1) Then ret2 = MsgBox("コメント取得時にエラー", vbOKOnly, "Error") else ret2 = MsgBox(MyComment, vbOKOnly, "信号ファイルコメント") end if
See also
NVGS_SetComment