1. Jorge Escobar
  2. PowerBuilder
  3. Saturday, 29 June 2019 16:38 PM UTC

Hi all

  I work with PB 2017-R3. In my application I must generate a report (datawindow) with QR code and for this I use "qrcodelib.dll".
 
  The problem is that when the compilation of the executable is 64 bits it does not create the QR. It only generates when compilation is 32 bits, from what I understand, the DLL is not compatible with 64 bit architecture.

 

CONSTANT	int LEVEL_L	= 0
CONSTANT	int LEVELM	= 1
CONSTANT	int LEVELQ	= 2
CONSTANT	int LEVELH	= 3

li_correctionLevel		= LEVELQ

li_height		= 120
li_width		= 120

TRY
	li_result	= FullQRCode(TRUE,FALSE,RGB(255,255,255),0,as_data,li_correctionLevel,4,5,5,li_height,li_width,as_fileName) 

CATCH (Exception e )
	li_result	= -1
CATCH (RuntimeError re)
	li_result	= -1
END TRY

RETURN li_result

 

Will there be a library, perhaps native of PowerBuilder, that allows to generate QR codes, whether compiling in 32 or 64 bits?

Thanks and regards

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 2 July 2019 14:09 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jorge;

  If you are building a 64bit PB App EXE, you will need to use 64bit external DLL's. So in your case, you would need to have your QR vendor supply a 64bit "qrcodelib.dll" version.

Regards ... Chris 

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Sunday, 30 June 2019 09:04 AM UTC
  2. PowerBuilder
  3. # 2

Hello Jorge,

If clients have basic Internet access, I'd get rid of DLL and use HTTPClient to invoke cloud services like google charts API.

Bruce provided a 2FA example on CodeExchange, where first part shows how to create QR codes:

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/242-two-factor-authentication-using-powerbuilder

Best,

.m 

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Sunday, 30 June 2019 08:54 AM UTC
  2. PowerBuilder
  3. # 3

Hi Jorge,

True, 64-bit process cannot include 32-bit DLL. Here is a good article on how you might solve that issue:
https://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/

Appeon will have to reply regarding future product features.

HTH /Michael

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.