Solved

How to make a CGI using C++?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

896 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now