The setData method is provided to offer a simple method of passing the barcode data from VB6 or VBA to the string member of the BARCODE2D structure without requiring Basic string to C string translations.
int WINAPI setData(LPBAR2D bc, LPCSTR data)
or in VB
Private Declare Function setData Lib “dls2d4” (ByRef bc As BARCODE2D, ByVal data as String) As Long
The method fills the string member of the BARCODE2D structure with the characters from the data string, and places the length of the data string in the c_number member.
The return value is always 0.
More: