When I am trying to load dll using cffi I am getting this issue,
here what I am doing
lib = ffi.dlopen("libzsfc.dll")
but same error I'm facing.
What is the error you get?
Ah, sorry, you mention it in the title: "error 0xc1". That's a Windows error code and I have no clue what it means. Your only way forward is to google around for "error 0xc1" until you get a hint.
This error code returns when you try to load a 32bit dll to 64bit Python or vice versa. And it seems the OP has found the solution as well,