PDA

Click to See Complete Forum and Search --> : what?


nabeels786
Mar 10th, 2002, 10:29 AM
I'm using VS.NET


heres the code


string challenger;
challenger = cgi.GetValueFromName("challenger");


here's the error i get:
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)


I'm using the CGI class parksie uploaded a while ago. Any ideas?

parksie
Mar 10th, 2002, 12:58 PM
As soon as I get a compiler installed I can re-do that entire class for you since I've got loads of things I know need doing with it (i.e. a rewrite! :D)

But I think GetValueFromName returned a string, so it looks like an error in the standard library there :confused:

nabeels786
Mar 10th, 2002, 03:08 PM
:) thanks

i fixed it. i didnt include the cpp file into the project, i just did '#include "libcgi.h"'