Cryptoki in Visual Basic net

9/23/2010 10:33:04 AM
Gravatar
Total Posts 26

Cryptoki in Visual Basic net

I have tried to use you dll in Visual Basic 2008:

Imports Cryptware.NCryptoki

'This is the line I write in a button

Dim Crypto as New Cryptoki("aetpkss1.dll")

I get an error "Object reference not stablished as object Instance"

The dll name is correct because it works in Visual Basic 6.

In Solutions Explorer I have stablished the Reference to NCryptoki.dll

What´s wrong?

Thank you very much in advanced.

9/23/2010 4:16:22 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Cryptoki in Visual Basic net

Hi fcifera,

you have to add a reference to NCryptokiMngd.dll too, unless you register it in the global assemlby cache with gacutil.

 

Regards,

Ugo Chirico
http://www.ugosweb.com

9/23/2010 4:22:35 PM
Gravatar
Total Posts 26

Re: Cryptoki in Visual Basic net

Thank you very much, Ugo.