Reputation: 27
While building a project , I am seeing an error message like
:ReadFromStream' : function does not take 4 arguments
Can you please suggest me what could be the error.
Below is the line , it is showing the error exits:
hr = var.ReadFromStream(pStm, pMap[i].vt, pMap[i].rgclsidAllowed, pMap[i].cclsidAllowed);
I would appreciate any help .Thanks in advance.
Upvotes: 0
Views: 4976
Reputation: 49251
:ReadFromStream' : function does not take 4 arguments Can you please suggest me what could be the error.
That means that ReadFromStream doesn't take 4 arguments.
That means you can't pass 4 objects into it.
(pStm, pMap[i].vt, pMap[i].rgclsidAllowed, pMap[i].cclsidAllowed)
pStm
Map[i].vt
pMap[i].rgclsidAllowed
pMap[i].cclsidAllowed
Upvotes: 1
Reputation: 370
Check the definition of the function, usually this occurs when you are missing a parameter (or have one too many)
If it is supposed to take four of them, make sure one of your parameters isn't the wrong type for the overload you are attempting to use. Sometimes that can make it think you are trying to use a different overload that doesn't use that number.
Upvotes: 1
Reputation: 4546
I think in the definition of ReadFromStream, the method does not have 4 parameters as arguments. Please revisit that.
Upvotes: 0