MuaazH / ZKTeco_PULLSDK_Wrapper

A wrapper for ZKTeco's pullsdk & ZKFinger
53 stars 32 forks source link

DllRegisterServe dll Com interface ! #9

Closed Arsiprog closed 4 months ago

Arsiprog commented 4 months ago

Can I use your DLL files as com interfaces for interaction in other programs? I tried to register your libraries via regsvr32 but I always get the DllRegisterServer error. I also tried to register libzkfp.dll and libzkfpcsharp.dll but without success, even though they are in the C folder: \Windows\SysWOW64

Arsiprog commented 4 months ago

Or can I use native api?

MuaazH commented 4 months ago

Why would you register anything?

You just place the dlls in path where your programs can find them. that would be:

  1. in C:\Windows\System32 for system wide usage, since they are all x86. Or
  2. in the same folders as your executables, to avoid filling System32 with more rubbish

All dlls in "lib" are native, but the dll from "release" is not native, since it's source is in C# To use native api, you have to read the C# code and understand how it works

Arsiprog commented 4 months ago

You didn’t understand me, for example I used zkemkeeper.dll Screenshot_10

Arsiprog commented 4 months ago

This is 1C language

Arsiprog commented 4 months ago

I'll show you an example of how people make dlls for 1C

https://habr.com/ru/articles/666718/

to make it clearer for you

Arsiprog commented 4 months ago

Using zkemkeeper.dll I was able to integrate getting users, creating users, generating a report!

Arsiprog commented 4 months ago

Now I want to register my fingers!

MuaazH commented 4 months ago

You didn’t understand me, for example I used zkemkeeper.dll Screenshot_10

No, I did understand you. So I ask, why would I make this wrapper into a ComObject that has to be registered instead of a simple library that can be included with any project? Your answer is: "because that's the only way I know how to call it from 1C"

This is 1C language

1C is something very specific, 1C:Enterprise platform is not supported by this repository.

I'll show you an example of how people make dlls for 1C

https://habr.com/ru/articles/666718/

to make it clearer for you

Why would you assume I speak русский?

Using zkemkeeper.dll I was able to integrate getting users, creating users, generating a report!

What kind of device do you have? is it an access control panel?

Now I want to register my fingers!

The example is in README.MD, but make sure you have the right setup first, a fingerprint reader and an access-control panel.

Arsiprog commented 4 months ago

Here

Изображение WhatsApp 2024-07-06 в 23 06 20_eec26dd2 Изображение WhatsApp 2024-07-06 в 23 06 20_064e310e

Arsiprog commented 4 months ago

maybe you can do something like AddIn.libzkfp Native API ?

MuaazH commented 4 months ago

That device is not an access-control panel, The main library will not work with it. The fingerprint device howerver is supported, but it only has C# API, but they are calling native dlls that come with its driver software.

maybe you can do something like AddIn.libzkfp Native API ?

I have no plans of working on native apis to support any ZKTeco device at the moment.

Arsiprog commented 4 months ago

ok