bostjan35 Posted July 30, 2018 Posted July 30, 2018 Hey all, newbie here:) First of all, thanks for all the info you provide here. Without it, I'd be even more lost than I already am, hehe. Now, I have a little problem. Please help, if you can, ok? Here's my code snippet and the SciTe's error below: (33,108) : error: _CryptUnprotectData() called with Const or expression on ByRef-param(s). $data = $data & "url: "& $r[0] & @crlf &"usr: "& $r[3] & @crlf &"pwd: "& _CryptUnprotectData($r[5], "") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ Any ideas? Thanks and take care!
AutoBert Posted July 30, 2018 Posted July 30, 2018 (edited) I think func _CryptUnprotectData, needs no second param, so try without. If this is not the solution, post the function header of _CryptUnprotectData and a small reproducer script which throws error also, please. Edited July 30, 2018 by AutoBert
bostjan35 Posted July 31, 2018 Author Posted July 31, 2018 Thanks for reply, but could you please clarify about the 2nd param, please? Is it the ,"" in the end? Because I've tried just about everything and nothing worked. And what's the function header please? Sorry, but I'm really a n00b
AutoBert Posted July 31, 2018 Posted July 31, 2018 (edited) On 7/31/2018 at 4:39 AM, bostjan35 said: Is it the ,"" in the end? Expand Yes, try without or with keyword Default. On 7/31/2018 at 4:39 AM, bostjan35 said: And what's the function header please? Expand This Quote Func functioname ( [Const] [ByRef] $param1, ..., [Const] [ByRef] $paramN, $optionalpar1 = value, ...) #cs Maybe some Description #ce Expand isnamed (i hope not only from me) the function header Edited July 31, 2018 by AutoBert
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now