I found a freeware library for generate 2d Barcode DataMatrix Encode SDK here:
http://intbusoft.com/solutions/barcode/DataMatrixEncodeSDK/Example of use is in C. I Try to convert to Vb6 but 'RuntimeError 6 - overflow appear
Can someone help?? Please
Public Declare Function EncodeDataMatrix Lib "DataMatrixEncode.dll" _
(ByVal EncodeText As String, ByVal EncodeSize As Integer, _
ByVal out_bitmap As String, ByVal buffer_size As Integer, _
ByVal SizeCell As Long, ByVal Code As Long, _
ByVal Mode As Long, ByVal SizeNum As Long) _
As Integer
s = 1000000
buf = "Test"
out_bitmap = Space(s)
lenbuf = Len(buf)
en = EncodeDataMatrix(buf, lenbuf, out_bitmap, s, 4, 0, 5, 0)
'Write out_bitmap to a BMP file. How??
Function declare is corect?.
In C++ is declare:
int EncodeDataMatrix(
char* EncodeText,
int EncodeSize,
unsigned char* out_bitmap,
int *bufer_size,
int SizeCell,
int Code,
int Mode,
int SizeNum
);out_bitmap is declare as u
nsigned char* i declare as string . This is corect.