Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thanks for a great forum. My problem was answered just by scrolling through previously solved problems. Great service!!..."

Geography

Where in the world do Tek-Tips members come from?
benaam (Programmer)
30 Jan 01 16:22
HI,
Whats the configuration file called in C++ to get runtime parameters? For eg its called properties file in JAVA with extension .properties. This properties file is used to get run time parameters to be specified by the client. What is it in C++? And how to read from this configuration File.
I want this in pure C++. No VC++ or MFC.
Some sample code would be really helpful

Thanx in Advance
zBuilder (MIS)
30 Jan 01 20:34
Unless you are talking about the config file for the compiler then no, there is no configuration file in C++ to get runtime parameters. You can get command line parameters passed via argc and *argv[] from main.

 
Kim_Christensen@telus.net
http://www3.bc.sympatico.ca/Kim_Christensen/index.html
 
benaam (Programmer)
31 Jan 01 0:54
Are there any ways of reading the config file from my program at runtime?
2ffat (Programmer)
31 Jan 01 7:23
I'm a little confused. Are you taking about a compiler or a program you wrote? An easy way to pass options to a compiler is to use a makefile. To use a config file in your program, you have to open the file and read it.

James P. Cottingham
www.ivcusa.com

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close