Home » Community » Newbie corner » [HttpRequest] undefined identifier
[HttpRequest] undefined identifier [message #37488] |
Wed, 10 October 2012 22:22  |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
I am new to U++ but I already understand many of the basic things. Now I am working on a class that retrieves a webpage. I followed multiple examples, which all ofcourse use HttpRequest. Whatever I do, I always get the error that HttpRequest is an undeclared identifier. I searched my uppsrc directory for a header file, but it doesn't even seem to have that one. What is wrong here? I have the latest stable build of U++. Everything I use is working so far, except for this...
#include "Imdb.h"
#include <Core/Core.h>
using namespace Upp;
bool ImdbManager::GetPage(const char *pUrl)
{
HttpRequest mHttpRequest; // error C2065: 'HttpRequest' : undeclared identifier
return true;
}
What am I doing wrong?
[Updated on: Wed, 10 October 2012 22:26] Report message to a moderator
|
|
|
|
Re: [HttpRequest] undefined identifier [message #37494 is a reply to message #37488] |
Thu, 11 October 2012 07:38   |
|
Hi crydev,
As Pavel said, this seems like you are using older version of code. My guess: Are you using the stable release (4193)? If so, it would explain everything, since HttpRequest is newer than this release 
Best regards,
Honza
|
|
|
Re: [HttpRequest] undefined identifier [message #37497 is a reply to message #37494] |
Thu, 11 October 2012 10:38  |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
Thanks for your responses! Well I found out some details by trial and error. After I included <Web/Web.h> the HttpRequest class worked. However, every function used in the examples resulted in an error from the compiler. I now used an HttpClient which does work.
I will try to update my code if I cannot get my program working with this way.
|
|
|
Goto Forum:
Current Time: Mon May 12 15:40:17 CEST 2025
Total time taken to generate the page: 0.02939 seconds
|