
receiving parameters help
Quote:
> Hi,
> Im new to VC++, I have created a small C .exe to set up an ODBC, driver no
> problems there but I now want to be able to pass parameters from the calling
> program to the C .exe. (database name etc..) I not sure how to set up my C
> program to receive
> parameters. Can anyone help??
> DD
The simplest would be to pass these parameters on the command line.
Inside the recipient you can get your argc/argv or __commandline
variable (perhaps misspelled.) There's also something like
GetCommandLine() function.