manasa
manasa

Reputation: 27

function does not take 4 arguments

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

Answers (4)

GregC
GregC

Reputation: 8007

Related bug on Microsoft Connect

Upvotes: 0

Yochai Timmer
Yochai Timmer

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

Lunin
Lunin

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

Shankar Raju
Shankar Raju

Reputation: 4546

I think in the definition of ReadFromStream, the method does not have 4 parameters as arguments. Please revisit that.

Upvotes: 0

Related Questions