Hi to all
I have a problem with a third-party com dll.
I have the IDL description of this dll.
I 'm trying to modify this IDL for use dll from vb6.
I have to Get/Set value:
there is no problem to get the values from the dll , but when
I try to set the values , vb raise the error 5:Invalid procedure call or argument (for any datatype)
This is the IDL description: BlockPropertyId are constant
HRESULT SetFlag([in] BlockPropertyId propertyId, [in] BOOL value);
HRESULT GetFlag([in] BlockPropertyId propertyId, [out] BOOL* value);
HRESULT SetInt([in] BlockPropertyId propertyId, [in] LONG value);
HRESULT GetInt([in] BlockPropertyId propertyId, [out] LONG* value);
HRESULT SetFloat([in] BlockPropertyId propertyId, [in] double value);
HRESULT GetFloat([in] BlockPropertyId propertyId, [out] double* value);
HRESULT SetString([in] BlockPropertyId propertyId, [in] BSTR value);
HRESULT GetString([in] BlockPropertyId propertyId, [out] BSTR* value);
Someone have any idea about this error ?
I see in the object browser:
Sub SetString(propertyId As BlockPropertyId, value As String)
In vb6 I use this code:
Object.SetString propertyId, "Hello"Why vb raise the error 5 ?
Thanks for Help