--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
> I have none...
Sorry about that, misread your last reply.
Here's a small problem. Take for example
DWORD GetPrivateProfileString(
LPCTSTR lpAppName,
LPCTSTR lpKeyName,
LPCTSTR lpDefault,
LPTSTR lpReturnedString,
DWORD nSize,
LPCTSTR lpFileName
);
lpReturnedString has to point to a char* at least nSize long.
How does one communicate that fact to the plugin service?
(a) don't: have a fixed length for all such strings, and a
special code in the parameter type string to say so.
Limiting.
(b) make the information part of the parameter type string; maybe
an integer following the code in the parameter type string for
a char*, byte* or any such.
(c) require that the variable named passed in through
the service parameter list be of the required length.
(You'd use repeat to make it so). Plugin wouldn't use
the actual reserved space used by the string, just do
strlen to find out how long it was and then malloc or alloca
it's own lpReturnedString of that size.
Or any other suggestions?
I'm also thinking that if one has to smersh args to service together,
could as easily be the detailed params, not the lead args:
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. Service would just
concatanate all params from 4 on together separated by # or whatever
separator character was.
On, yeah, separator character. Could deauflt to something unusual
and there could be another form of call
something.callDll(alt_sep_char, dllname, funcname, param_types,
param1#param2#param3)
which service would notice because first arg would be one char long.
What anyone think?
------------------------ 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/