--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote: > > How does one communicate that fact to the plugin service? > > You could force the caller to pre-create variables > returnedstring = repeat("\00",nSize+1) > > Then just pass "returnedstring" as a variable name as the argument. > The plugin will see a string pointer and uses getvaraddr to get > string pointer.
I'm dithering between that and allowing a string size in the param type list. BTW you said in help re getvaraddr "to get the address of the string stored in the variable named in szvar. You should consider the memory at this address to be read-only. If you want to change a variable, use (ppsv->SetVar)." So although I can get address, I can't pass it on to dll? Have to strdup it or some such. > > something.callDll(dllname, funcname, param_types, > > param1#param2#param3) > > > > in fact one could allow caller to use as many of args > > 4 on for his actual param values/var names. > > Yes this would work although you would then have to eval expressions > passed as arguments or force variable names only as arguments. Good point, may go half way and allow only literal strings or numbers, or variable names. No expressions. Hmm. But how do I tell a literal string from a var name? In cases where you're passing a pointer to something (so there's a potential for it to be changed, it will have to be a variable name...but even there user may know that she's not interested in result, so can pass in a literal. Maybe I need yet another modifier in param type list to indicate whether var name or literal. ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/JV_rlB/TM --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
