1. Aswin Kumar Madabushi
  2. PowerBuilder
  3. Monday, 25 October 2021 18:28 PM UTC

Hi all,

 

Im getting the below error 

 

---------------------------
System Error
---------------------------
Error Number 14.

Error text = Error opening DLL library zlibwapi.dll for external function at line 18 in function of_zipopen of object n_zlib..

Window/Menu/Object = n_zlib.

Error Object/Control = n_zlib.

Script = of_zipopen.

Line in Script = 18.
---------------------------
OK
---------------------------

 

I have tried to replace zlibwapi.dll and regenerated the n_zlib also, still no luck. 

Need help in urgent bases. 

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 25 October 2021 20:18 PM UTC
  2. PowerBuilder
  3. # 1

Hi Aswin;

   The "zlibwapi" DLL is not part of PB. Please contact the vendor of this utility DLL for a more up-to-date version.

Regards ... Chris

Comment
  1. Aswin Kumar Madabushi
  2. Monday, 25 October 2021 20:27 PM UTC
Hi Chris,

Thanks for your suggestion , we have downloaded latest dll from google, still no luck we are facing the same issue
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Monday, 25 October 2021 21:00 PM UTC
The other issue could be in the coding used in the "N_ZLIB" NVUO - which again is not part of the PB IDE.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 25 October 2021 20:18 PM UTC
  2. PowerBuilder
  3. # 2

The error message indicates that the DLL cannot be found by the compiled application.

Is the zlibwapi.dll present in the same folder as the compiled application? This is not a Windows-supplied DLL, so it needs to be present with the compiled application, or in one of the folders listed in your PATH environment variable. 

Comment
  1. Aswin Kumar Madabushi
  2. Monday, 25 October 2021 20:24 PM UTC
How to compile the dll ? or pls suggest how to list in PATH environment variable. i never face this type issue. so i dont have an idea
  1. Helpful
  1. John Fauss
  2. Monday, 25 October 2021 20:53 PM UTC
You cannot compile the DLL unless you have the source code. It appears the n_zlib object you are using is from the zlibwapi free code example from Roland Smith's TopWizProgramming web site. Roland includes a 32-bit and 64-bit version of the DLL in the download. The 32-bit version is what is in the same folder as the PB workspace, target and library. The 64-bit version resides in a sub-folder named "64 bit".

Copy the 32-bit version of the DLL to the same folder where your compiled PB application resides. That's all you should need to do.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 25 October 2021 19:49 PM UTC
  2. PowerBuilder
  3. # 3

Greetings, Aswin - 

Can you please tell us:

Does this fail when running the application from within the PowerBuilder IDE and/or from the compiled app?

If it fails only when running from the compiled application, is it compiled as 32-bit app or 64-bit?

Can you please show us the External Function Declaration in object n_zlib and the code in the of_zipopen function within object n_zlib?

Best regards, John

 

Comment
  1. Aswin Kumar Madabushi
  2. Monday, 25 October 2021 20:04 PM UTC
Hi John,



Issue is with compiled app only and it compiled as 32-bit app



Local external function :

Function ulong zipOpen ( &

Ref string filename, &

int append &

) Library "zlibwapi.dll" Alias For "zipOpen;Ansi"



ULong lul_zipFile



// of_zipopen function

lul_zipFile = zipOpen(as_filename, 0)

If lul_zipFile < 0 Then

MessageBox("ZLib Error in of_zipOpen", &

"The zip file could not be opened!", StopSign!)

End If



Return lul_zipFile

  1. Helpful
  1. René Ullrich
  2. Tuesday, 26 October 2021 05:22 AM UTC
If Issue is with compiled app only and it is compiles as 32 bit I guess the application can't find the zlipwapi.dll
  1. Helpful
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.