QR Code DLL API pointer and Power Builder

PDF417, Data Matrix, Maxicode, QR Code... 2D bar code formats

Re: QR Code DLL API pointer and Power Builder

Postby nadcha on Tue May 17, 2016 9:30 am

Hello,

I am French then sorry for the spelling mistakes!

My problem is the same with powerbuilder 11.5 :
I get
㡆䉂㡂う䙃䙁い㡆䉂㡂െ㉅䅁㉁ぅㅆㄷぁ㉅䅁㉁൅㡅㕁䘳㉁䅁㡅㠹㡁㌹䄲൅䄳㈲䄲あ㡄㝂㜲㍄䘳㑁െう䕅ぅう〳㠷㠹ㅁ䐲㉁ു㠸㠸㠸〸〸〸〰〸㠰〸8상邑֊缼ᡁ
on my document.

DLL declaration :
Function ulong QRCodeEncode2 (ref string dataToEncode, int versionRequested, int ecLevel) Library "MoroviaQRCodeFontEncoder5.dll"
Function string QRCodeResultGetBarcodeString2 (ulong pEncodeResult, ref string eol) Library "MoroviaQRCodeFontEncoder5.dll"

the call :
lu_encoded_msg = QRCodeEncode2('01B051052192', li_version, li_level)
IF lu_encoded_msg <> 0 THEN
ls_eol = Char(13) + Char(10)
ls_encoded_msg = QRCodeResultGetBarcodeString2(lu_encoded_msg, ls_eol)
END IF

the font for my computed field in PB : MRV QRCode

I think a stage is missing to obtain the definitive QR Code.

Thanks for help me.
nadcha
 
Posts: 2
Joined: Tue May 17, 2016 8:54 am

Re: QR Code DLL API pointer and Power Builder

Postby glitch on Tue May 17, 2016 9:48 am

nadcha,

See this post: http://www.morovia.com/forums/qr-code-d ... bf4b#p1342

You need to change the function prototype in PB10 and above.

>>
Note that if you are on Powerbuilder 10 and above, the string type is Unicode not the traditional single byte. Functions must be declared with 'ansi' on functions that accepts single-byte string. For example,

Code: Select all
    Function string QRCodeResultGetBarcodeString2 (ulong, ref string)  &
    library "MoroviaQRCodeFontEncoder5.dll" Alias For " QRCodeResultGetBarcodeString2;Ansi"
The information above is provided "AS IS", with no warranties, and confers no rights.
User avatar
glitch
Support Engineer
 
Posts: 198
Joined: Wed May 14, 2008 2:42 pm

Re: QR Code DLL API pointer and Power Builder

Postby nadcha on Tue May 17, 2016 10:02 am

now it's ok. thanks a lot.
nadcha
 
Posts: 2
Joined: Tue May 17, 2016 8:54 am

Previous

Return to 2D symbologies

Who is online

Users browsing this forum: Google [Bot] and 1 guest