Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object doesn't support this property or method

Status
Not open for further replies.

asd78fg

Programmer
Oct 21, 2004
13
US
I'm developing a DLL in C++ that is accessed from an ASP page. When running the page this error is thrown:

Object doesn't support this property or method: 'ldap_obj.objectVersion'

The method objectVersion() does exist; as I browse component services I can see that method for my object. Plus, all other methods in the object work perfectly. I am at a loss as to what may be causing this error. Does anyone have any suggestions?

The C++ code:
STDMETHODIMP Cuserinfo::eek:bjectVersion(long *versionNumber)
{
*versionNumber = 2;
return S_OK;
}

The line in the ASP file that is throwing the error:
versionNumber = ldap_obj.objectVersion()
 
Maybe try passing the required variable?

barcode_1.gif
 
The long variable versionNumber is an [out, retval] variable in this object -- a long value is used similarly in other methods of this object without requiring a value to be passed in (as a value is passed out through it). Theoretically, versionNumber() should be the correct way of calling this function, then.

Besides, even when I try passing a value, it throws the same error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top