Link to home
Start Free TrialLog in
Avatar of manx
manx

asked on

Win CGI or Std CGI ?

I am currently developing an CGI application for Win NT in VC++.

The app can write correctly, however when it tries to get any enviroment strings it seems to hang and later times out.

An example of the enviroment string is       EnvBlock.strReqProtocol      = GetEnviroment("SERVER_PROTOCOL");

where the GetEnviroment function is defined as

char* GetEnviroment(CString EnvStr)
{
      char* sOut = "";
      
      //      Actually get the variable value
      GetEnvironmentVariable(EnvStr,sOut,GetEnvironmentVariable(EnvStr, NULL, 0));
      
      //      Return the enviroment variable to calling function
      return(sOut);
}

Is this correct ?

Regards

ManX
Avatar of manx
manx

ASKER

Just a comment on the error message:

A dialog box apperas on the IIS server saying that the app instr XXXX is trying to read/write to a illegal mem location XXX.

Regards

ManX
Avatar of manx

ASKER

Would there be any diference in the enviroment for GET and POST methods ?
Avatar of manx

ASKER

Would there be any diference in the enviroment for GET and POST methods ?
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial