Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
returning an assoc from a dropin-method
Kai-Uwe_Schmidt_(kus_-_(deleted))
Hi folks,i have a drop in where i want to return an assoc. my function looks like this:extern "C" LLSTATUS SAWLdap_Search( LPLLVOID thisInstance, LLVALUE returnValue, LPLLVALUE args, LLLONG nArgs );extern "C" LLSTATUS SAWLdap_Search( LPLLVOID thisInstance, LLVALUE returnValue, LPLLVALUE args, LLLONG nArgs ) { SAWLdap* s = (SAWLdap*) thisInstance; LLSTATUS status = LL_OK; long a=666; LLDropinEcho( "SAWLdap_Search" ); s->Search(); if (status == LL_OK) status = LL_ValueAlloc( &returnValue ); if (status == LL_OK) status = LL_ValueSetAssoc( returnValue ); if (status == LL_OK) status = LL_AssocSetInteger( returnValue, "X", 12 ); if (status == LL_OK) status = LL_AssocSetString(returnValue, "A", "a"); LL_AssocGetInteger(returnValue,"X",&a);/* char* c=NULL; strcpy(c,"DDDDkkkkkkkkkkkkkkkkkkkkkkkk");*/ return LL_OK;}but when i call the function with e.g.:SAWLdap es = SAWLdap.new("")Assoc searchresult=Assoc.CreateAssoc()searchresult = es.search()searchresult turns after the search into a ? (something like undefined ??!)has anyone a hint what i am doing wrong ?regardsKai-Uwe
Find more posts tagged with
Comments
Kai-Uwe_Schmidt_(kus_-_(deleted))
if (status == LL_OK) status = LL_ValueAlloc( &returnValue );this was the devil, a little C for beginners
Janusz_Frydecki
Do you have any idea where I could find documentation on how to build drop-ins?