認識したバーコード文字列の取得

Namespace: fvalgcli
Assembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)

Syntax

C#
public static int fnFIE_barcode_query_msg(
	FHANDLE fBOObj,
	int iBarcodeNo,
	ref UCHAR_PTR ppcMsg
)
Visual Basic
Public Shared Function fnFIE_barcode_query_msg ( 
	fBOObj As FHANDLE,
	iBarcodeNo As Integer,
	ByRef ppcMsg As UCHAR_PTR
) As Integer

Parameters

fBOObj
Type: fvalgcli..::..FHANDLE
バーコードオブジェクトのハンドル
iBarcodeNo
Type: System..::..Int32
バーコード番号
ppcMsg
Type: fvalgcli..::..UCHAR_PTR%
指定したバーコード番号で得られた認識文字列。(IntPtr.Zero で初期化してください。ASCII文字列の先頭アドレスを返します。取得したアドレスは解放しないでください。)

Return Value

Type: Int32
以下のエラーコードを返します。

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_PARAM 異常終了(パラメータが不正)
F_ERR_INVALID_OBJECT 不正なオブジェクトハンドルが渡されたため、異常終了。
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Remarks

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        public void fnFIE_barcode_query_msg(FHANDLE hBarcode, int iBarcodeNo)
        {
            try
            {
                UCHAR_PTR message = UCHAR_PTR.Zero;
                int status = api.fnFIE_barcode_query_msg(hBarcode, iBarcodeNo, ref message);
                Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_barcode_query_msg: エラーが発生しました。({0})", (f_err)status);

                Console.WriteLine("fnFIE_barcode_query_msg({0})={1}", iBarcodeNo, (string)message);
            }
            finally
            {
            }
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli

Public Partial Class FIE
    Public Sub fnFIE_barcode_query_msg(hBarcode As FHANDLE, iBarcodeNo As Integer)
        Try
            Dim message As UCHAR_PTR = UCHAR_PTR.Zero
            Dim status As Integer = api.fnFIE_barcode_query_msg(hBarcode, iBarcodeNo, message)
            Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_barcode_query_msg: エラーが発生しました。({0})", CType(status, f_err))

            Console.WriteLine("fnFIE_barcode_query_msg({0})={1}", iBarcodeNo, CType(message, String))
        Finally
        End Try
    End Sub
End Class

See Also