Solved

How to make a CGI using C++?

Posted on 1998-06-18
2
215 Views
Last Modified: 2010-05-18
I need some help about how i can get the environment and how to organize these data.
0
Comment
Question by:chuckwicked
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Expert Comment

by:trestan
ID: 1166135
I would like to suggest you to find sth. readly available at:
http://geocities.com/SiliconValley/Network/9353/

0
 
LVL 2

Accepted Solution

by:
kellyjj earned 50 total points
ID: 1166136
You can retrieve any enviroment var by using the command  
getenv()   You  pass it the var you want.  For example, if you wanted the path,  

char *ptr;
ptr=getenv(PATH);

If there is an error the ptr is NULL.

This will also work for any env var, even if it is a software kind.  

To set it, you use the putenv()

you pass it the value you want to set.

for example,

ptr="PATH=C:\dos"

putenv(ptr);


I hope this helps.

0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question