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
Is this correct ?