Re: No more Foxpro



Exactly. In c, your main() function gives you to paramters. The first, argc,
is a parameter count. We have that already. The second, argv[] is an array
of string pointers that point to the various paramters. We don't have
anything like that. Coding for a variable number of parameters is not
difficult.

Jeff
"RobertVanGeel" <robert@xxxxxxx> wrote in message
news:%23Cg3AvqcHHA.4188@xxxxxxxxxxxxxxxxxxxxxxx
I guess with argv[] you mean feeding an unlimited number of parameters to a
function, right?

Robert

"Zootal" <Don't send me any freaking spam at zootal dot com remove the don't
send me any freaking spam> wrote in message
news:eLmHHUocHHA.984@xxxxxxxxxxxxxxxxxxxxxxx
Now our beloved fox may be quite the high level but as I've said in other
threads, I'd love to have an argc and argv[]. I also would like it if
pointers could be stored in a database field while the thing that they
point to is alive.
<snip>

I'm not sure what we would gain from storing pointers in a database. The
object/memory the pointer points to would not persist from one app
instance
to another, and would be useless once the application terminated. What did
you have in mind when you said that?





.



Relevant Pages

  • Re: int main (int argc, char **argv)
    ... > I just wanted to say that the first element of argv is the path of the ... In the latter form argc shall be the number of arguments passed to the ... pointers to the initial characters of null-terminated multibyte strings ...
    (alt.comp.lang.learn.c-cpp)
  • Re: No more Foxpro
    ... I guess with argv[] you mean feeding an unlimited number of parameters to a function, ... I'd love to have an argc and argv. ... pointers could be stored in a database field while the thing that they ... I'm not sure what we would gain from storing pointers in a database. ...
    (microsoft.public.fox.programmer.exchange)
  • C multi-dimensional arrays and pointers
    ... int main(int argc, char** argv) { ... pointers to arrays of pointers? ...
    (comp.lang.c)
  • Re: Command line arguments
    ... argc is guaranteed to be non-negative ... If your OS cannot give you both upper- and lower-case strings, ... argc and argv, being normal function arguments, can be modified (but ... strings these pointers point to are, again, writable. ...
    (comp.lang.c)
  • SOLVED: need to call managed code from unmanaged c++ code !
    ... Public Function(ByVal argc as Int32, ... SizeParamIndex:=0)> ByVal argvas string) as Int32 ... I tried the "Public Function(ByVal argc as Int32, ByVal/byRef argv as ...
    (microsoft.public.dotnet.languages.vb)