Solved

How to make a CGI using C++?

Posted on 1998-06-18
2
213 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

738 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