QR Code DLL API pointer and Power Builder
13 posts • Page 2 of 2 • 1, 2
Re: QR Code DLL API pointer and Power Builder
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.
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
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,
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.
-
glitch - Support Engineer
- Posts: 198
- Joined: Wed May 14, 2008 2:42 pm
Re: QR Code DLL API pointer and Power Builder
now it's ok. thanks a lot.
- nadcha
- Posts: 2
- Joined: Tue May 17, 2016 8:54 am
13 posts • Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 2 guests