Delphi “Could not load ssl libray”

เมื่อเราใช้ Component ชื่อ IdHTTP ใน Delphi เพื่อใช้ Web Service ก็จะเดี้ยง (Error ดังภาพ) ทันที

วิธีแก้ก็หาไฟล์ “ssleay32.dll” , “libeay32.dll” มาวางใน Directory ที่ Build ไฟล์ แค่นี้ก็จะ ใช้งานได้แล้วครับ

ส่วนไฟล์นั้นหาได้จากที่ไหน ก็ลองค้นหา Google ดูก็ได้ครับ หรือจะลองหาจากในเครื่องก่อนก็ได้ครับ

มีคำแนะนำมาฝากครับ

ไฟล์ทั้งสองตัวนั้นมีทั้งแบบ 32 bit และ 64 bit บางทีที่ไม่ได้อาจเป็นเพราะไฟล์ตัวนั้นเป็น 64 bit ก็ได้

การใช้งาน dll ทั้งสองตัวขึ้นอยู่กับ Version ของ Indy Component ใน Delphi ถ้าเป็น Delphi ก็จะใช้ Indy 9 ถ้าใหม่ๆหน่อยก็จะใช้เป็น Indy 10
ดังนั้นและ DLL ที่ใช้ได้กับ XE10 ก็จะใช้ไม่ได้กับ Delphi 7 ต้องลอง download จาก Link ที่ให้ไปดูครับ กรณีที่ท่านใช้ Delphi 7 แล้วติดต่อพวก API ใหม่ๆลำบากเนื่องจาก Version ของ Indy component V.9 นั้น ลองรับแค่ Dll รุ่นเก่าทำให้ ติดต่อพวก api ที่ใช้ Protocal ใหม่ๆไม่ได้ ให้ลองย้ายไปใช้ Component ที่ชื่อว่า

ดูนะครับผมลองแล้วสามารถใช้ได้ ไม่ว่าจะส่ง line notify หรือ api Tracking ไปรษณีย์

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response

More from Piyanat Nimkhuntod