1. SHAMEEM KAKKAD
  2. PowerBuilder
  3. Friday, 22 October 2021 08:45 AM UTC

Dear Appeon team,

I imported QR Code Generator DLL and successfully imported.

But, While I read the function getting like error :-

 

 

Cammand button script

---------------------------------

string text_
string base64_
blob qrcode_
int aa

qrc = create nvo_class1

CoderObject co
text_ = sle_1.Text
base64_ = qrc.of_generateqrcode( text_ )
co = create CoderObject
qrcode_ = co.base64decode(base64_)

destroy co
p_1.setpicture(qrcode_)

integer li_FileNum
li_FileNum = FileOpen("C:\Shade\test101offline.png",StreamMode!,Write!)
filewrite(li_filenum, qrcode_)
fileclose (li_filenum)

 

 

Snapdevelop...

-----------------

 

 

Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 22 October 2021 11:58 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi,

You should do something like this:

DotNetAssembly lnv_assembly
lnv_assembly = Create DotNetAssembly
ll_status = lnv_assembly.LoadWithDotNetFramework(This.is_AssemblyPath) // is_assemblyPath is where your DLL is located

I highly recommend you use the DLL importer tool, setting these options:

This will create a of_createOnDemand() function, which should be called from the constructor object in the generated nvo.

regards.

BTW: when you are debugging, make sure to "skip" the calls to these functions as it will blow-up for some obscure reason.

Comment
  1. SHAMEEM KAKKAD
  2. Friday, 22 October 2021 15:22 PM UTC
Thanks Miguel....
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 22 October 2021 16:08 PM UTC
Yw, please mark as resolved if you have no further questions.
  1. Helpful
  1. SHAMEEM KAKKAD
  2. Friday, 22 October 2021 16:11 PM UTC
Done
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.