Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use existing dll

63 views
Skip to first unread message

astro.del.cielo

unread,
Mar 13, 2015, 5:26:03 PM3/13/15
to
Hi all
I'm very newbe so be patient :P
I have a "simple" question

I have to use a existing dll to comand my ipcam

The dll is ZSightLib.dll and it contain ZSP_SetImageColor that i need to
use
I need to call it
So how can i do?

thanks

--
a.d.c.

Vir Campestris

unread,
Mar 13, 2015, 5:32:36 PM3/13/15
to
They should have supplied you with instructions on how to call the
interface. Ideally a .h file - but something else that tells you what
parameters and what return codes are expected would do.

You've not given enough information.

Imagine you want to call fopen - you need to know the name of the file,
the mode to open it in, and the type of the return data. That's all
documented - but this DLL isn't on the net. I looked.

Andy

Paavo Helde

unread,
Mar 13, 2015, 5:45:53 PM3/13/15
to
"astro.del.cielo" <ve...@lasignature.com> wrote in news:mdvkks$cgo$1
@speranza.aioe.org:
Normally the vendor of the library would give you at least a SDK package
with header files and .lib files to link to, but as you have stated you
have only the dll file this seems to be not the case.

If so, you will probably need to use LoadLibrary() and GetProcAddress().
And then you have to know the exact parameter types and calling conventions
for your function, write them down in a function pointer typedef, cast the
pointer you got from GetProcAddress() to that type and call it! Profit!

hth
Paavo

astro.del.cielo

unread,
Mar 13, 2015, 5:49:30 PM3/13/15
to
You can find it here:
http://surveillance.zmodo.com/support-software
Zviewer for PC => Zviewer2.0.0.9_Setup.exe
Installing program you can find ZSightLib.dll

I don't have any .h file
I only inspect ZSightLib.dll with dllexp.exe (NIRSOFT)
I don't know if there is a way to interface with it..

Thanks ;)

--
a.d.c.

astro.del.cielo

unread,
Mar 13, 2015, 5:54:37 PM3/13/15
to
I'm not a programmer (just on school)
So my level is poor
I only use ZSP_SetImageColor so i can make a script to invoke color with
my ipcam.
I think the solution is to make a small program that invoke
ZSP_SetImageColor

thanks

--
a.d.c.

Christopher Pisz

unread,
Mar 13, 2015, 5:59:09 PM3/13/15
to
Looks to me that ZViewer is an application and the dll you speak of is
used by that application. There is nothing on that site, that I saw, to
indicate that they want to allow you to program anything using their dll
as a dependency. What information led you to the conclusion?

Or are you just mistaken in thinking you can link with any old dll?

If that is the case. No you can't. You can only program against dlls
that the author created with that intention...easily anyway.



--
I have chosen to troll filter/ignore all subthreads containing the
words: "Rick C. Hodgins", "Flibble", and "Islam"
So, I won't be able to see or respond to any such messages
---

astro.del.cielo

unread,
Mar 13, 2015, 6:05:28 PM3/13/15
to
Il 13/03/2015 22:58, Christopher Pisz ha scritto:
> Looks to me that ZViewer is an application and the dll you speak of is
> used by that application.

Yes!

> There is nothing on that site, that I saw, to
> indicate that they want to allow you to program anything using their dll
> as a dependency. What information led you to the conclusion?
> Or are you just mistaken in thinking you can link with any old dll?
>
> If that is the case. No you can't. You can only program against dlls
> that the author created with that intention...easily anyway.

You are say that i can use dll only if the autor allow to use.
I understand right?

I don't know this

--
a.d.c.

Christopher Pisz

unread,
Mar 13, 2015, 6:37:54 PM3/13/15
to
Tis true.

Jorgen Grahn

unread,
Mar 14, 2015, 1:48:07 AM3/14/15
to
On Fri, 2015-03-13, Christopher Pisz wrote:
> On 3/13/2015 5:05 PM, astro.del.cielo wrote:
>> Il 13/03/2015 22:58, Christopher Pisz ha scritto:
>>> Looks to me that ZViewer is an application and the dll you speak of is
>>> used by that application.
>>
>> Yes!
>>
>>> There is nothing on that site, that I saw, to
>>> indicate that they want to allow you to program anything using their dll
>>> as a dependency. What information led you to the conclusion?
>>> Or are you just mistaken in thinking you can link with any old dll?
>>>
>>> If that is the case. No you can't. You can only program against dlls
>>> that the author created with that intention...easily anyway.
>>
>> You are say that i can use dll only if the autor allow to use.
>> I understand right?
>>
>> I don't know this
>
> Tis true.

99% true. If you have a hacker mind (which you can have without being
an actual programmer) you can try to work around the obstacles and
using trial and error and, using all kinds of ugly tricks, accomplish
what you want.

It's nothing I can help with, but I wanted to point it out since
astro.del.cielo seems to show some trace of promise. Great things
sometimes start with someting absurd.

Linus Torvalds: "Hey, I have a PC with a MMU here. I could
theoretically write a Unix clone for it. I'd probably have to learn
C programming first ..."

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Paavo Helde

unread,
Mar 14, 2015, 2:28:46 AM3/14/15
to
"astro.del.cielo" <ve...@lasignature.com> wrote in
news:mdvmad$gac$1...@speranza.aioe.org:
Yes, in order to invoke some function there must be a program that does
the invoking.

There are actually numerous existing programs which can load arbitrary
dll-s and call arbitrary functions in them. For example LabView, but I
think many script language interpretators can do this as well. You still
need to write something resembling a program, but not in C or C++.

Now if what you actully want is to attach to an already running program
and call a function in this running process, then this is already much
harder (but also doable in principle).

hth
Paavo

astro.del.cielo

unread,
Mar 16, 2015, 5:52:16 PM3/16/15
to
Il 14/03/2015 06:47, Jorgen Grahn ha scritto:
> 99% true. If you have a hacker mind (which you can have without being
> an actual programmer) you can try to work around the obstacles and
> using trial and error and, using all kinds of ugly tricks, accomplish
> what you want.

I wrote to zmodo support and it tell to me they add my request "to to do
thing"

I found a solution.
Not very elegant but i think it solve 99,9%
Record mouse moviment (and reaplay) in a wm machine that every minute
click on color button
I must only have time to trye, but it for me is not difficult

> It's nothing I can help with, but I wanted to point it out since
> astro.del.cielo seems to show some trace of promise. Great things
> sometimes start with someting absurd.

astro.del.cielo not indicate Christmas
It mean something like: a object of the sky
a small (small) point of the universe

bye ;)

--
a.d.c.

Cholo Lennon

unread,
Mar 17, 2015, 9:35:38 AM3/17/15
to
Just curiosity, is Spanish your main language?

Regards

--
Cholo Lennon
Bs.As.
ARG

astro.del.cielo

unread,
Mar 17, 2015, 10:56:06 AM3/17/15
to
No, i'm italian
Why? My english is poor? :)

--
a.d.c.

Cholo Lennon

unread,
Mar 17, 2015, 12:55:14 PM3/17/15
to
No, but "astro del cielo" is a valid expression in Spanish (It has the
the same meaning that you have explained in English)

Best regards

Jorgen Grahn

unread,
Mar 19, 2015, 3:19:59 AM3/19/15
to
On Mon, 2015-03-16, astro.del.cielo wrote:
> Il 14/03/2015 06:47, Jorgen Grahn ha scritto:
...
>> It's nothing I can help with, but I wanted to point it out since
>> astro.del.cielo seems to show some trace of promise. Great things
>> sometimes start with someting absurd.
>
> astro.del.cielo not indicate Christmas
> It mean something like: a object of the sky
> a small (small) point of the universe

I was not commenting on your name ... but I see what you mean.
I think we're all small objects.
0 new messages