[Gambas-devel] Re: QMap<QString,QString> my implementation in DCOP class file.

Benoit Minisini gambas at ...1...
Wed Mar 2 11:33:12 CET 2005


On Thursday 24 February 2005 19:07, Carlo Sorda wrote:
> Thanks a lot!!!
>
> I have compiled this:
>
> else if (type == QT_T_QMAP_QSTRING)
>    {
>      GB_COLLECTION aCollection;
>      GB_VARIANT aValue;
>
>      QMap<QString,QString> r;
>      reply >> r;
>
>      GB.Collection.New(&aCollection,GB_COMP_BINARY);
>
>      QMap<QString,QString>::Iterator it;
>      aValue.type = GB_T_VARIANT;
>
>      for (it =r.begin() ;it != r.end();it++)
>      {
>        GB.NewString(&aValue.value._string.value,it.data().utf8().data(),0);
>
>        GB.Collection.Set(aCollection,it.key().utf8().data(),0,&aValue);
>      }
>
> and I haved an error like this:
> Type mismatch: wanted Void, got Variant instead!!!
> What can I do??
>
> Tank you , see you soon.
>
>

By comparing with other similar datatype, I think a 
'GB.ReturnObject(aCollection)' is missing...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list