In message <S7tUd.18663$yr.6821@okepread05>, DHOLLINGSWORTH2
<> writes
>
>"DTO" <> wrote in message
>news: oups.com...
>> Oh my god, I have seen that "int main (int argc, char** argv) many
>> times before, didn't know what is was.
>> Anyway, I put that in my program, works flawless.
>> Thanks Rennie, I had no idea it could be that easy.
>>
>
>You can use that to verify that the file has not been moved or renamed since
>installed. This helps a lot when trouble shooting apps on Customers
>computers. Seems thay aren't satisfied leaving it alone.
1. The C++ Standard gives very little guarantee about the content of
argv[0], assuming that's what you're talking about. It merely says it's
"the name used to invoke the program".
2. If your program cares that much about where the user puts it, or what
they call it, then you're using some highly non-robust techniques, and I
wouldn't care to be one of your customers.
--
Richard Herring
|