login about faq

I bought a 1-developer-bundle and i can use the components successfully in my developer ambient. But When build a vb6 solutions that uses one or more of the components and install in a client machine i receive a error "Crypt component unlock failed" . I don't know what'ś wrong, i'm using the correspondent permanent unlock code for every component. Thank you Rogerio.

asked Jul 04 '14 at 14:15

rogerioneri's gravatar image


edited Jul 07 '14 at 10:10

If the library weren't registered, wouldn't it throw an error when the crypt object was instantiated?


answered Jul 04 '14 at 15:51

jfoulk's gravatar image


Possibly not if On Error Resume Next is used somewhere further up the code (not sure about the case of New in the Dim statement though, I always create my objects outside the Dim statement, so maybe it would fail in this case?).

(Jul 04 '14 at 16:08) jpbro ♦

I use the Chilkat components with VB6, and have not experienced this problem.

Can you post the full contents of the LastErrorText property immediately after you call UnlockComponent and it fails? Please put the contents in <pre></pre> tags.

Also maybe post a code snippet that fails? make sure you don't include your unlock code though.


answered Jul 04 '14 at 14:25

jpbro's gravatar image

jpbro ♦

I'm using this code to verify:

230     Dim crypt As New ChilkatCrypt2

'  Any string argument automatically begins the 30-day trial.
240     Dim success As Long
250     success = crypt.UnlockComponent("UOLCOMCrypt_xxxxxxxxxxxzzx")
260     If (success <> 1) Then
270         MsgBox "Crypt component unlock failed"
            MsgBox crypt.LastErrorText
280         If vbwProtector.vbwTraceProc Then vbwProtector.vbwProcOut VBWPROCNAME
290         Exit Function
300     End If

I can't obtain the last error in a client machine because a can't use the crypt activex control. Thank you rogerio


answered Jul 04 '14 at 14:42

rogerioneri's gravatar image


edited Jul 04 '14 at 20:13

Hard to say without the LastErrorText (the code itself looks okay assuming that your unlock code is correct). A couple of thoughts:

Are you using On Error Resume Next before you try to call UnlockComponent?

Did you distribute and register (regsvr32) the chilkat library on the client computer?


answered Jul 04 '14 at 14:51

jpbro's gravatar image

jpbro ♦

See the various posts under the "UnlockComponent" category in the Chilkat blog here: http://www.cknotes.com/category/unlockcomponent/


answered Jul 05 '14 at 09:48

chilkat's gravatar image

chilkat ♦♦

Hi Jfoulk ! You are alright. My setup was wrong and was missing the information to registry that activex. When I registered it its function! Thank you.


answered Jul 07 '14 at 10:09

rogerioneri's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 04 '14 at 14:15

Seen: 3,105 times

Last updated: Jul 07 '14 at 10:10

powered by OSQA