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_PROT OCOL");
where the GetEnviroment function is defined as
char* GetEnviroment(CString EnvStr)
{
char* sOut = "";
// Actually get the variable value
GetEnvironmentVariable(Env Str,sOut,G etEnvironm entVariabl e(EnvStr, NULL, 0));
// Return the enviroment variable to calling function
return(sOut);
}
Is this correct ?
Regards
ManX
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_PROT
where the GetEnviroment function is defined as
char* GetEnviroment(CString EnvStr)
{
char* sOut = "";
// Actually get the variable value
GetEnvironmentVariable(Env
// Return the enviroment variable to calling function
return(sOut);
}
Is this correct ?
Regards
ManX
ASKER
Would there be any diference in the enviroment for GET and POST methods ?
ASKER
Would there be any diference in the enviroment for GET and POST methods ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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