Jump to content

Recommended Posts

Posted

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!

Posted (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 by AutoBert
Posted

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 :)

Posted (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 by AutoBert

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...