Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / rockey2.dll help.

Author
Message
lms
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 28th Jan 2010 10:50
hi i ll go straight to the point
the general idea is to
find hasp
1.open hasp
2.send seed that generates the userid (this action takes place in the hasp)
3.close hasp

step 2 is RY2_GenUID function
retcode = call dll(12,"RY2_GenUID",handle,*uid,seed$,0)
it takes handle,uid and seed$ and write protection off

I manage to pass my seed$ to to the function and write the generated uid inside hasps memory all done and is working perfect

the problem is that *uid has the generated userid and i must somehow read it - pass it to a string variable while calling the ry2_genuid
i cant figure out the way....
there is no other function than this to open hasp and read the uid*






visual basic example


thanks in advance

all os break
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 28th Jan 2010 19:22

You'll naturally have to convert the memory pointer if you want a native DBP string.
Basically, you don't use the * symbol when specifying the adress, only when reading from it.

lms
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 28th Jan 2010 20:35 Edited at: 28th Jan 2010 20:57
thanks i made it work but still have one issue of the generated uid
i get a 353915239 instead of -75581457 a put a seed "11111" which i know it produces the second one.
I get different results when i change the seed but the strings are wrong.
where is my fault and cant see the GeneratedUID right?
retcode = call dll(12, "RY2_GenUID", handle, uid, seed$,0)
aa$=str$(*uid) <<<< aa$ is not correct

p.s. the uid that is written is the correct but the one that i use to print/see is not
thanks in advance


JUST DID IT THANKS FOR UNSTUCKING
it should go like this

retcode = call dll(12, "RY2_GenUID", handle, uid, seed$,0)
aa=*uid
aa$=str$(aa)
u have to pass it first to other variable and then string it

all os break

Login to post a reply

Server time is: 2024-04-19 20:06:34
Your offset time is: 2024-04-19 20:06:34