Jump to content

Using and reading .dll


Bester
 Share

Recommended Posts

Hello, I`ve been using AutoIt for a while now, but this is the first time i`m working with .dlls and i somehow can`t get it working. I`m trying to create some simple CMS for DVR. I got SDK from software i`m using right now, but i`m a bit lost there. 

I`m trying to Initialize and connect to DVR and i got this  "manual" that says: (i`m gonna attach the whole file down below, if anybody got time and will to look at it, this is from page 9)

int SDKi_Initialize (EVENTCALLBACK fnCallback, WORD wEventPort);

- Parameters

EVENTCALLBACK fnCallback

: Event Callback function pointer

WORD wEventPort

: Event Server Port

- Return value

Int

SDVR_ERR_OK

Initialized success

SDVR_ERR_FAIL

unknown error

SDVR_ERR_INITIALIZE_FAIL

Initialized failed

and i`ve tried several time, and out of desperation i`ve end up with:

$initialize = DllCall($dllPath, "int", "SDKi_Initialize", "ptr", "fnCallback", "WORD", "wEventPort")


If @error Then
SetError(1)
Return 0
Else
Return String($initialize)
EndIf


MsgBox(0, "something", $initialize)

and i know the whole thing is totaly wrong right now, so if someone would have time and be willing to help me out a bit i would be really thankful.

Also excuse my poor english and thank you again in advance.

 
 

SDK_Reference Manual_v3.2.0.7.doc

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...