I attempted to use the code sample in my VB.net project without success. I want the Encrypt function to return encrypted text. I’m setting the value returned by the Encrypt function to variable. I declared the variable as the VariantType and that did not work. I declared variable as an object and that did not work.
When I copy the sample code into my VB.net project the variant variable (vaDest) is converted to an object.
Imported from legacy forums. Posted by Michael (had 455 views)