Loading & Instantiating Foreign Library

20 views
Skip to first unread message

Amol Taralkar

unread,
Jul 21, 2016, 6:18:33 AM7/21/16
to Python Pune
Dear All,

Thank you for such a wonderful and useful forum/ group.

I am new member to our group and Python as well.

I reached here while searching the answer to subject question.

Following is my code and not able successfully run it.

I am getting WinError 126.


import ctypes
import os
from _ctypes import *

ha = LibraryLoader("winDLL")

ha.LoadLibraryW("C:\\Program Files\\SProV8i SS5\\OpenSTAAD\\openstaad.dll")




openstaad.dll is a Dll file of open functions of Staad.Pro software.

This software is used in civil and structural engineering for design of buildings.

I am trying to extract the design results from my python code.

Looking forward for help from experts members of this group.

Best Regards,
Amol Taralkar
98500 36032


Rahul K P

unread,
Jul 21, 2016, 6:28:27 AM7/21/16
to pytho...@googlegroups.com
Hi Amol Taralkar,

I think this error belongs to Windows Operating system. I am using linux only but when i searched about the error. I found some clear solution in stackoverflow. 


--
You received this message because you are subscribed to the Google Groups "Python Pune" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonpune+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards
Rahul K P

Python Developer
Uniserved
Mumbai
+919895980223

Amol Taralkar

unread,
Jul 26, 2016, 7:36:59 AM7/26/16
to Python Pune
Thanks Rahul,

I had gone through the link you have provided.

It may be OS error. But my question is there must be some working way to instantiate the library.

Regards,
Amol
Reply all
Reply to author
Forward
0 new messages