c++ - "Function does not take 0 arguments" error for IDL-defined propget function (that is given an argument) -
i'm working on c++ dll uses idl file talk program's api. i'm trying call function that's defined in following way in other program's .idl:
[propget, id(1014), helpstring("the user defined attribute on feature using name of attribute")] hresult userattribute([in] bstr attr_id, [out, retval] variant *pval);
this method call in dll:
variant *res = udf->userattribute(bstr("version"));
however, when try compile program, error:
1>applicationsink.cpp(378): error c2660: 'ifmfeature::getuserattribute' : function not take 0 arguments
the line number line quoted above; line quoted above line userattribute method appears anywhere in dll. know error isn't referring place in code call without arguments. also, i'm using many, many other functions api no problem, don't think issue api generally. i've written vb macros have used userattribute function, know works in @ least cases.
i'm calling userattribute, error talking getuserattribute -- because it's doing behind-the-scenes magic related fact userattribute defined propget function? there no getuserattribute function defined in api.
does know what's happening here , how can fix it?
Comments
Post a Comment